[antlr-interest] Memory usage of nilNodes in the C target

Richard Thrippleton richard.thrippleton at progress.com
Wed Apr 1 09:15:42 PDT 2009


Jim Idle wrote:
> This may well be a safe point that I missed and I will look at it,
> but I suspect it only works with your rule formulation.
Thanks.
> It is not a good idea to use backtracking though unless your input is
>  always guaranteed to be correct, as otherwise the ability to give
> good error messages is pretty much destroyed.
Well, we got this even with "backtracking = false;" as a grammar option
(the specific symptom being that some rule functions were being entered,
but not leaving via the codepath that did rulePostProcessing).

Richard


More information about the antlr-interest mailing list