[antlr-interest] Re: Standalone Parser?

Xue Yong Zhi seclib at seclib.com
Thu Jan 19 08:13:12 PST 2006


Marc Bühler wrote:
> Hi!
> 
> I'm relatively new to antlr. I successfully generated a lexer and parser 
> for propositional calculus.
> When i generate my parser i usually use: java antlr.Tool pc.g
> Is there an option to create a standalone parser? Standalone means, i 
> don't want to include antlr.jar in my project because i don't need the 
> treeparser, etc. I'd like to have as less classes as possible.
> 
> Thanks for an answer, greetings
> 
> Marc
> 

Even the lexer/parser requires(inheritance) codes from antlr.jar. You 
can definately take them out and build your own jar, but this is not out 
of box for antlr 2.7.6.
Antlr 3.0 will be more modular, as Tool, Runtime being seperated.

-- 
Xue Yong Zhi
http://seclib.blogspot.com



More information about the antlr-interest mailing list