[antlr-interest] a quick question from a novice
Yi Huang
eerieelf at yahoo.com
Wed Apr 15 21:10:46 PDT 2009
Hi folks,
I am new to ANTLR and I have a problem in understanding an ANTLR
grammar fragment developed by others. I skimmed "The Definitive ANTLR
Reference" but could not find an answer immediate. I hope somebody here
could help me out.
The question is how to interpret "i:" and "#i" in the following fragment. I
know ':' represents rule definition, but what does it mean here? Also, I cannot
find the meaning of the symbol '#' anywhere in the book. Any hint or reference
to useful materials would be appreciated.
token
:
i:"keyword"^ anotherToken {#i.func(IMPORT_DEF);}
;
Thanks in advance,
--Yi
More information about the antlr-interest
mailing list