[antlr-interest] unable to run or debug grammar in antlrworks 1.4 on Windows XP

Sheila M. Morrissey Sheila.Morrissey at ithaka.org
Mon May 24 11:02:26 PDT 2010


I am having the same problem with the following configuration:
ANTLR Version: 3.2 Sep 23, 2009 12:02:23
ANTLRWorks (GUI) Version: 1.4
StringTemplate Version: 3.2.1
Operating System: Windows XP
Java Version: 1.6.0_17-b04

If I try to generate code, I get the following error message:
[13:50:30] error(1):  cannot write file Expr.tokens: java.io.FileNotFoundException: C:\C:\ExprParser.java (The filename, directory name, or volume label syntax is incorrect)
java.io.FileOutputStream.open(Native Method)
java.io.FileOutputStream.<init>(FileOutputStream.java:179)
java.io.FileOutputStream.<init>(FileOutputStream.java:131)
java.io.FileWriter.<init>(FileWriter.java:73)
org.antlr.Tool.getOutputFile(Tool.java:854)
org.antlr.codegen.CodeGenerator.write(CodeGenerator.java:1277)
org.antlr.codegen.Target.genRecognizerFile(Target.java:94)
org.antlr.codegen.CodeGenerator.genRecognizer(CodeGenerator.java:466)
org.antlr.Tool.generateRecognizer(Tool.java:641)
org.antlr.Tool.process(Tool.java:454)
org.antlr.works.generate.CodeGenerate.generate(CodeGenerate.java:104)
org.antlr.works.generate.CodeGenerate.run(CodeGenerate.java:185)
java.lang.Thread.run(Thread.java:619)
[13:50:30] error(1):  cannot write file Expr__.g: java.io.FileNotFoundException: C:\C:\Expr__.g (The filename, directory name, or volume label syntax is incorrect)
java.io.FileOutputStream.open(Native Method)
java.io.FileOutputStream.<init>(FileOutputStream.java:179)
java.io.FileOutputStream.<init>(FileOutputStream.java:131)
java.io.FileWriter.<init>(FileWriter.java:73)
org.antlr.Tool.getOutputFile(Tool.java:854)
org.antlr.Tool.process(Tool.java:480)
org.antlr.works.generate.CodeGenerate.generate(CodeGenerate.java:104)
org.antlr.works.generate.CodeGenerate.run(CodeGenerate.java:185)
java.lang.Thread.run(Thread.java:619)

No setting in preferences menu (or regedit hacks) seems to stop antlworks from injecting that extra c:\ in the output directory path.



Sheila M. Morrissey
Senior Research Developer
ITHAKA
609-986-2221
sheila.morrissey at ithaka.org<mailto:john.meyer at ithaka.org>

ITHAKA (www.ithaka.org<http://www.ithaka.org>) is a not-for-profit organization that helps the academic community use digital technologies to preserve the scholarly record and to advance research and teaching in sustainable ways.  We provide innovative services that benefit higher education, including Ithaka S+R, JSTOR, and Portico.



More information about the antlr-interest mailing list