Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash when printing syntax trees #25

Open
Kaljurand opened this issue Jul 8, 2018 · 0 comments
Open

Crash when printing syntax trees #25

Kaljurand opened this issue Jul 8, 2018 · 0 comments

Comments

@Kaljurand
Copy link
Member

$ ./ape.exe -text "John waits." -solo syntaxdpp
ERROR: type_error(atom,[]): atom_chars/2:

Also:

sh run.sh
APE> John waits.

ERROR: /home/kaarel/mywork/APE/runape.pl:190:
	atom_chars/2: Type error: `atom' expected, found `[]' (an empty_list)

The crash occurs at:

atom_chars(Atom, AtomChars),

Possibly caused by the fact that [] is not an atom anymore (but is still atomic) in SWI-Prolog. Possible fix: replace the atomic check on line 100 with atom check.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant