[antlr-interest] ‘Cannot find tokens file ’

Gavin Lambert antlr at mirality.co.nz
Thu Nov 6 12:12:25 PST 2008


At 03:43 7/11/2008, Hendrik Maryns wrote:
 >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?

The file is more likely to be named fsq.tokens, not 
fsqParser.tokens.

The tokens file should appear in the same folder as the target 
language output files.



More information about the antlr-interest mailing list