Open Jean-Luc-Picard-2021 opened 2 months ago
I can reproduce the bug with a shorter example:
$ cat foo.pl
/* **/foo.
$ $(go env GOPATH)/bin/1pl
Top level for ichiban/prolog v1.2.1
This is for testing purposes only!
See https://github.com/ichiban/prolog for more details.
Type Ctrl-C or 'halt.' to exit.
?- [foo].
true.
?- foo.
2024/08/14 14:35:25 error(existence_error(procedure,foo/0),root)
?-
Something's wrong in lexer and mishandling the **/
, I guess.
If I use this Prolog text:
Everything works fine:
On the other hand this Prolog text:
Doesn't work ok:
I used top level
['categories.p']
respectively['categories2.p']
with these texts:categories.p.log categories2.p.log