2011/11/3 Ryan Mohr <ryan...@gmail.com>:
I was thinking about more structured approach that would be suitable
for machine processing. I'd like to extend the error object with the
following properties:
* The list of expectations (an array).
* What was found (a string).
* Name of the rule the error was triggered in (a string).
Would that solve your needs?
--
David Majda
Entropy fighter
http://majda.cz/
I am somewhat reluctant to adding this because this information would
have to be computed and maintained dynamically, slowing down the whole
parser even when no error occurs. In contrast, name of the rule the
error was triggered in (= last item on the stack) can be computed
statically.