[antlr-interest] header/footer

Pete Forman pete.forman at westerngeco.com
Tue Apr 6 00:09:43 PDT 2004


At 2004-04-05 17:13 -0500, ronald.petty at milliman.com wrote:
>I  was wondering is there a way to do the following [...]
>
>1)  Add code that is different to a parser/lexer
>         header { //stuff for parser}
>         parser class
>         header { //stuff to lexer }
>         lexer class

You can put your lexer and parser in separate .g files.

-- 
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