Ico Doornekamp
Ico Doornekamp
> A better alternative to the compiler flag can be: pass a object to the code block where you can set two callback functions. > 1. validate: executed on every...
Thanks for giving this a good think. I'll have to go through this a few times and properly digest it, I'll probably be back with questions.
Hmm, I'll check how line info is exactly propagated at this time; most of the line info should be copied, but I guess there are some points where injected code...
This one is not so easy to fix I'm afraid: NPeg propagates line info at compile time to make sure any compilation or syntax errors end up pointing to the...
Closing this, feel free to reopen if it's still relevant.
Thanks for the note, much appreciated! Marking this issue as "wontfix", though. I guess I'll have to leave it open forever, as we will never be able to fix how...
Hi Rishav, Yes, error handling in PEGs is not trivial, and I do not have any complete examples at hand. Basically, there are two options to handle errors in a...
People much smarter then my have also been thinking very hard about this problem: http://www.inf.puc-rio.br/~roberto/docs/sblp2013-1.pdf
Hmm, I think I see your problem: for example, you want to get a `literal`, which is defined as `litNumber | litBooleanValues`. If you were to add an error to...
Closing this because of inactivity, feel free to reopen if needed.