Hi Running antlr 3.4 with a -nfa command line argument produces this exception:
Buildfile: C:\.....\cmp\antlr3\build.xml antlr: [antlr:ant-antlr3] Failed to change file modification time [antlr:ant-antlr3] ANTLR Parser Generator Version 3.4 [antlr:ant-antlr3] C:\...\cmp\antlr3\ProgramBaseParser.g [antlr:ant-antlr3] Exception in thread "main" java.lang.ExceptionInInitializerError [antlr:ant-antlr3] at org.antlr.Tool.generateNFAs(Tool.java:694) [antlr:ant-antlr3] at org.antlr.Tool.generateRecognizer(Tool.java:651) [antlr:ant-antlr3] at org.antlr.Tool.process(Tool.java:468) [antlr:ant-antlr3] at org.antlr.Tool.main(Tool.java:93) [antlr:ant-antlr3] Caused by: java.lang.IllegalArgumentException: No such directory: org/antlr/tool/templates/dot/dfa [antlr:ant-antlr3] at org.stringtemplate.v4.STGroupDir.<init>(STGroupDir.java:73) [antlr:ant-antlr3] at org.stringtemplate.v4.STGroupDir.<init>(STGroupDir.java:48) [antlr:ant-antlr3] at org.antlr.tool.DOTGenerator.<clinit>(DOTGenerator.java:48) [antlr:ant-antlr3] ... 4 more BUILD FAILED C:\....\cmp\antlr3\build.xml:5: ANTLR returned: 1 Here the build.xml <project name="Program" default="antlr" basedir="."> <target name="antlr"> <antlr:ant-antlr3 xmlns:antlr="antlib:org/apache/tools/ant/antlr" verbose="true" outputdirectory="." target="ProgramBaseParser.g" conversiontimeout="100000" nfa="true" /> </target> </project> Total time: 3 seconds Did I miss something in the build.xml ?? _______________________________________________ antlr-dev mailing list antlr-dev@antlr.org http://www.antlr.org/mailman/listinfo/antlr-dev