The whole thing is kind of a mess.

This commit is contained in:
Simon Forman
2022-09-20 14:22:47 -07:00
parent d080cd20c7
commit 3f4e9d9fe2
40 changed files with 0 additions and 0 deletions
@@ -0,0 +1,21 @@
?- phrase(joy_parse(Expression), `truedat`).
Expression = [bool(true), symbol(dat)] .
Oops!
I knew about:
?- phrase(joy_parse(Expression), `23dat`).
Expression = [int(23), symbol(dat)] .
should probably fix it too
still want:
?- phrase(joy_parse(Expression), `[2[3]]`).
Expression = [list([int(2), list([int(3)])])] .
?- phrase(joy_parse(Expression), `[true[false]]`).
Expression = [list([bool(true), list([bool(false)])])] .
...to work. That is, you shouldn't need spaces around '[' and ']'.