[antlr-interest] Parse trace?
Tilman Bender
tbender at stud.hs-heilbronn.de
Thu May 14 11:34:07 PDT 2009
Hi Jay,
I am sure what you mean by "annotatin my grammar with trace statements".
If you mean doing this manually for every rule/alternative: you need
not do that.
As far as I see you can have ANTLR add such trace information for you,
so you do not have to do
it manually. I've seen this as a config option in the antlr3-maven-
plugin and I am sure there is a corresponding
ANTLR-Tool option for this.
Another (maybe weird) idea: Isn't this a typical use case for AOP?
Would it be feasible to weave the logging
into the whole thing? Just an idea ;-)
Tilman Bender
Student des Software Engineering
Hochschule Heilbronn
tbender at stud.hs-heilbronn.de
Am 14.05.2009 um 20:07 schrieb West Jay - Toronto-MROC - external:
> So far, the only option I’ve seen is annotating my grammar with
> trace statements that’ll execute during parsing. Ick. Is there not
> a better way?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20090514/7ef94b71/attachment.html
More information about the antlr-interest
mailing list