[antlr-interest] Changing parser/lexer base class?

Terence Parr parrt at cs.usfca.edu
Wed Feb 25 17:25:34 PST 2004


On Feb 25, 2004, at 3:11 PM, glebfrank wrote:

> Hello,
>
> I wonder if there is a way to change the base classes that the parser
> and lexer extend from.

It was in 2.7.2 but had a bug.  It works in 2.7.3 soon to appear.

class P extends Parser("mypackage.MyParser");

>  My project has a bunch of lexers/parsers based
> on different grammars, but sharing a lot of common behavior (ASTs,
> error reporting, etc.) It would make things much easier and help avoid
> a lot of code duplication if I could insert a layer between, say,
> LLkParser and my parser.

Ter

>
> Thanks,
> Gleb
>
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
--
Professor Comp. Sci., University of San Francisco
Creator, ANTLR Parser Generator, http://www.antlr.org
Cofounder, http://www.jguru.com
Cofounder, http://www.knowspam.net enjoy email again!
Cofounder, http://www.peerscope.com pure link sharing





 
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