[antlr-interest] How to separate lexer and parser? How to invoke ANTLR?
Terence Parr
parrt at cs.usfca.edu
Tue May 29 19:13:48 PDT 2007
On May 29, 2007, at 7:10 PM, David Piepgrass wrote:
>> java -classpath antlr-3.0.jar org.antlr.Tool Test.g
>>
>> but I got the error
>>
>> > Exception in thread "main" java.lang.NoClassDefFoundError:
>> org/antlr/stringtemplate/StringTemplateErrorListener
>> > at org.antlr.Tool.main(Tool.java:67)
>>
>
> Ok, I found the answer at
>
> http://www.antlr.org/wiki/pages/viewpage.action?pageId=728
>
> except that it doesn't say how to add the .jars to the classpath, nor
> what Java version is required. IMO, there should be a link to this
> page from the download page, and the link to "ANTLR tool+runtime
> binary only jar" should have a disclaimer saying that the jar is not
> usable by itself.
Hi David,
The README has all that; The getting started page
http://www.antlr.org/wiki/display/ANTLR3/FAQ+-+Getting+Started
also has a reference to the page you mention.
Thanks,
Ter
More information about the antlr-interest
mailing list