[antlr-interest] Token enumeration values

Pete Forman pete.forman at westerngeco.com
Thu Sep 30 01:47:30 PDT 2004


At 2004-09-29 22:31 +0000, hero_onethousand wrote:
>Is there an easy way to change the final value of a token declared
>in the tokens section of the parser definition?

Put your token enumeration in a separate ...TokenTypes.txt file and
use importVocab to reference it.

   http://www.antlr.org/doc/options.html#importVocab

-- 
Pete Forman                -./\.-  Disclaimer: This post is originated
WesternGeco                  -./\.-   by myself and does not represent
pete.forman at westerngeco.com    -./\.-   opinion of Schlumberger, Baker
http://petef.port5.com           -./\.-   Hughes or their divisions.



 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/antlr-interest/

<*> To unsubscribe from this group, send an email to:
    antlr-interest-unsubscribe at yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



More information about the antlr-interest mailing list