[antlr-interest] antlr-v3 getting started learning curve steep
Terence Parr
parrt at cs.usfca.edu
Thu Apr 12 14:15:02 PDT 2007
Hi. You'll need to add all the lib/*.jar files. This includes
StringTemplate. :) Note that the C++ output of v3 is not ready yet.
Ter
On Apr 12, 2007, at 2:12 PM, Robert E Farrell wrote:
> First confession time: I'm a newbie to Antlr and I don't speak Java.
>
> I was trying to use Antlr 2.7.7 but had some bugs in my grammar
> where it
> would not recognize things I thought it should.
>
> Because of the availablity of interactive antlrworks, got that plus
> antlr-3.0b6.
>
> Was able to use antlrworks to figure out some of the problems. Now
> want to
> compile it to C++ which I can compile/link into a standalone
> recogniser
> which I can run against my around 1000 test files.
>
> But... the directions on installing/running v3 from the command
> line don't
> work or are out of date: I don't have any jar files in .../
> antlr-3.0b6.
> When I try to build using the directions in README, I max out at 100
> errors. like:
>
> org/antlr/tool/Grammar.java:42: package org.antlr.stringtemplate
> does not
> exist
> import org.antlr.stringtemplate.StringTemplate;
> ^
> org/antlr/tool/Grammar.java:43: package
> org.antlr.stringtemplate.language
> does not exist
> import org.antlr.stringtemplate.language.AngleBracketTemplateLexer;
> ^
> org/antlr/tool/GrammarAST.java:37: package org.antlr.stringtemplate
> does
> not exist
> import org.antlr.stringtemplate.StringTemplate;
> ^
>
> Thanks for your help.
>
> Bob Farrell
>
More information about the antlr-interest
mailing list