[antlr-interest] tree construction facility doesn't work for me
Johannes Luber
jaluber at gmx.de
Wed Feb 6 11:12:26 PST 2008
Peter Bulychev schrieb:
> Hello.
>
> I want to test the tree construction facility of ANTLR.
>
> I have downloaded
> http://www.antlr.org/wiki/download/attachments/1037/SimpleC.g and then
> performed following steps:
>
> java org.antlr.Tool SimpleC.g
> javac *.java
> java Main input
>
>
> But Java says during the last step:
>
> Exception in thread "main" java.lang.NoClassDefFoundError: Main
>
>
> And this is true, I can't find the Main class: `grep Main *.java`
> returns nothing.
>
> Please, tell me, where I am incorrect.
>
You need a driver class, too. There should be a few in the examples.zip
on the webpage to adapt from.
Johannes
More information about the antlr-interest
mailing list