So the issue I was talking about applies to any file to be honest, the parser does not print back the residue
(1-) (load "simulator.shen")
syntax error here:
...
(2-)
with the fix I applied it prints out the residue
(0-) (load "simulator.shen")
syntax error here:
(define gcd-machine ->
(make-machine
gcd ...
(1-)
it does not point out the exact place of the error which is a missing bracket from a list, but at least
I can just go to the function and check.
it is similar in many ways to shen yacc, but it works on strings not lists, and by default the parser will points out the line and column of the error
and also the message expected "something" the something is taken from the grammar.
(3 + 2Expected ")", "-", "+", "^", "/", or "*"
a next version of the meta ii paper.
in shen yacc, I am not sure if introducing this extra information should be in the reader itself just for the s-expr grammar
or in the yacc file itself for any grammar.