[antlr-interest] Cannot find symbol stuff
Micheal J
open.zone at virgin.net
Wed Aug 2 10:29:08 PDT 2006
Hi,
> Hello, since my professor wants the lexer into a file and the
> parser into another one I did so. I added importVocab =
> "EasyJava" in the parser and exportVocab = "EasyJava" in the
> lexer. I read at some tutorials to learn how changing the
> type of a token or an expression just for that rule, but when
> I do so I get this error.
>
> /
> C:\Documents and
> Settings\spotted\Documenti\grammatica\codice_generato>javac *.j ava
> EasyJavaLexer.java:485: cannot find symbol
> symbol : variable DOT
> location: class EasyJavaLexer
> _ttype = DOT;
> ^
> EasyJavaLexer.java:500: cannot find symbol
> symbol : variable DEC_NUMBERS
> location: class EasyJavaLexer
> _ttype = DEC_NUMBERS;
> ^
> 2 errors
Where is DOT and DEC_NUMBERS defined?. There are not defined in the lexer.
Micheal
-----------------------
The best way to contact me is via the list/forum. My time is very limited.
More information about the antlr-interest
mailing list