Hi, I split up my grammar into three parts, inspired by
So now I have fsqLexer.g, fsqParser.g and fsqTreeParser.g. The latter
complains that ‘(3): cannot find tokens file
<unset-dir>/fsqParser.tokens’. Indeed, there is no file
fsqParser.tokens. fsqParser.g compiles fine, and even from the command
line, no tokens file is created. What is the solution to this?
fsqTreeParser.g contains the following:
options {
language = Java;
ASTLabelType = CommonTree;
tokenVocab = fsqParser;
}
fsqParser.g
options {
language = Java;
output = AST;
tokenVocab = fsqLexer;
}
fsqLexer.java and fsqParser.java are successfully created,
fsqTreeParser.java is not.
Thanks for suggestions, H.
--
Hendrik Maryns
http://tcl.sfs.uni-tuebingen.de/~hendrik/
==================
Ask smart questions, get good answers:
http://www.catb.org/~esr/faqs/smart-questions.html
signature.asc
Description: OpenPGP digital signature
List: http://www.antlr.org:8080/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org:8080/mailman/options/antlr-interest/your-email-address
