scryer-prolog
scryer-prolog copied to clipboard
[user]. Strange end_of_file
?- [user].
en dof ile.
?- % unexpected.
Wow, I can't imagine how you found this, great catch! It seems it exits for any "terms" with spaces:
?- [user].
a b.
?- [user].
asdf asdf.
?-
I guess the expected behavior is a syntax error.
Yes(as long as there is no op):
?- op(1,xf,b).
true.
?- [user].
a b.
?- X b.
X = a.
nospace example:
?- [user].
""().
?- % unexpected
Ideally we could write a fuzzer for this.
This is specific to [user]. read/1 does not seem to have this problem. The shortest example is
?- [user].
.
?- % unexpected