[antlr-interest] Switching keywords
swalton at cs.utah.edu
Tue Sep 5 12:19:00 PDT 2006
Sean Walton wrote:
> I mean "'A' statements are embedded in 'B' programs".
> Thanks for the tip. I am using 3.0 -- would
> "input.LT(1).getText().equals("includes")}?" be a reasonable solution?
Here's a more specific example. Could you help me with the variable?
: (v='target' | v='within' | v='get' | v='set') '(' identifier ')'
-> ^(RULE_MODULE $v identifier)
More information about the antlr-interest