[antlr-interest] Tutorial Seems to Have Improper Java
Braden McDaniel
braden at endoframe.com
Thu Nov 18 15:49:05 PST 2004
Matthew Tedder wrote:
>
> Separating them into separate files doesn't seem to
> make any difference... The following line gives an
> error... it's expecting a '{'
>
> class ExprLexer extends Lexer;
>
> I am learning Java, but I know C++.. I presume Lexer
> is defined in antlr.* but I do not understand what is
> supposed to be happening here...
You're supposed to process the .g file with antlr, not javac:
$ java antlr.Tool foo.g
The antlr jar file needs to be in your CLASSPATH.
Braden
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