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
List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe:
http://www.antlr.org/mailman/options/antlr-interest/your-email-address
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"il-antlr-interest" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/il-antlr-interest?hl=en
-~----------~----~----~----~------~----~------~--~---