tokenVocab can't find .tokens file
Brought to you by:
devx_edg,
edgarespina
Error when generating Java files:
ANTLR Parser Generator 3.2 Sep 23, 2009 12:02:23.
Using project classpath: Yes.
Grammar: C:\development\antlr\Grammar\src\antlr\{path\to\package}\SearchGrammar.g
error(3): cannot find tokens file C:\development\antlr\Grammar\src\java\{path\to\package}\FieldNames.tokens
SearchGrammar.g contains an option tokenVocab = FieldNames;
The workspace preferences for the Code Generator set the output folder to src/java. Append java package to output folder is checked.
If I copy the FieldNames.tokens to the location in the error message, the error goes away until the java is rebuilt, at which time the copied files disappear and the error reappears.
Eclipse version: 3.6.1
ANTLR IDE version: 2.1.1
I'll take a look.
Thanks,
edgar
Hi Shawn,
Can you create an example Eclipse project reproducing the issue?
Thanks,
edgar
Example project illustrating error. (see prefs file in root for preferences)