[antlr-interest] Switching keywords

Sean Walton 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?
> -Sean
Here's a more specific example.  Could you help me with the variable?

rule1
    : (v='target' | v='within' | v='get' | v='set') '(' identifier ')'
            -> ^(RULE_MODULE $v identifier)
    ;


-Sean


More information about the antlr-interest mailing list