aarroyoc/scryer-playground

#\ is not parsed correctly

Closed this issue · 3 comments

triska commented

With the following program:

:- use_module(library(clpz)).

I get:

?- #\ 0.
error(syntax_error(missing_quote),read_term/3:3), unexpected.
true. % expected
triska commented

I think the issue is the backslash (\). For example, with:

:- use_module(library(lists)).
:- use_module(library(lambda)).

I get:

?- maplist(\a^true, Ls).
 error(syntax_error(unexpected_char),read_term_from_chars/3:0).

Expected:

?- maplist(\a^true, Ls).
   Ls = []
;  Ls = "a"
;  Ls = "aa"
;  Ls = "aaa"
;  ... .

Sorry for the delay. This should be fixed now

Thank you a lot!