[antlr-interest] Combining a tree with the Parser

lists at krevsbech.dk lists at krevsbech.dk
Tue Nov 25 04:35:31 PST 2008


Hey
I am having a rather hard time figuring our how to let the tree find my
parser.
I use the ANTLR work and have tree files in the following way:
FooLexer (lexer grammar FooLexer)
FooParser (parser grammar FooParser)
FooTree (tree grammar FooTree)

In my parser I have:
tokenVocab = FooLexer;

In my tree I have:
tokenVocab = FooParser;

But here things goes wrong, when I use the ANTLR debugger on the Tree file
it complains and gives the following output:
error cannot read: "path"/FooParserLexer.java
error cannot read: "path"/FooParserParser.java

and no wonder it can't because the files are named FooLexer.java and
FooParser.java
Can anyone tell me what I have done wrong ?

Kind regards and thanks
Kasper Revsbech




More information about the antlr-interest mailing list