[antlr-interest] antlr doubt
Nishanth singh
singh.nishanth5 at gmail.com
Thu May 6 06:44:47 PDT 2010
> Hello,
> I'm totally new to AntLR.
> I created a simple grammar for a lexer in ANTLRWorks and generated it
> via the "Generate" menu. However, when I'm going to compile the
> generated Java code I get an error.
>
> I'm compiling it using "javac mygrammarLexer.java". I'm running Windows XP and installed ANTLR via apt-get, the package manager of Ubuntu.
>
> This is the error I get when I try to compile:
>
> $ javac locoTokensLexer.java
> locoTokensLexer.java:3: package org.antlr.runtime does not exist
> import org.antlr.runtime.*;
> ^
> locoTokensLexer.java:8: cannot find symbol
> symbol: class Lexer
> public class locoTokensLexer extends Lexer {
> ^
>
>
> Then I get a lot of other errors.
Please some one help me out.
Regards,
Nishanth.
More information about the antlr-interest
mailing list