Closed scymtym closed 12 years ago
Many thanks! I've merged something based on this.
Main alterations (aside from missing include/ prefixes these are really just stylistic nits):
whitespace style
use plain ^ for marking the error position instead of V and >< (I find additional markers make things harder for me to read, not easier, and strongly prefer to have the actual error text both pristine and before any markers.)
esrap-parse-error -> esrap-error
use print-object for error reporting instead of a format function
don't expose the simple-esrap-error
manual fixes
Thanks.
ESRAP-ERROR
is the superclass for esrap conditionsESRAP-PARSE-ERROR
is the superclass for parse errorsSIMPLE-ESRAP-PARSE-ERROR
is aSIMPLE-ERROR
andESRAP-PARSE-ERROR
LEFT-RECURSION
is aESRAP-PARSE-ERROR
that is signaled when left recursion is detectedPARSE
signals these errors failed parse ->SIMPLE-ESRAP-PARSE-ERROR
rule not active ->SIMPLE-ESRAP-PARSE-ERROR
incomplete parse ->SIMPLE-ESRAP-PARSE-ERROR
left recursion ->LEFT-RECURSION