1 Changes: 2 3 19.08.2008 4 Dependency check for composed grammars added. 5 Might need some further improvements. 6 7 09.08.2008 8 Inspecting environment variable ANTLR_HOME to detect and add 9 antlr- and stringtemplate libraries to the classpath 10 11 09.08.2008 12 Removed routine checkGenerateFile. It got feeble with the 13 introduction of composed grammars, e.g. "import T.g". 14 From now one it is always antlr itself via the depend option 15 which decides about dependecies 16 17 31.12.2007 18 With option "depend=true" proceed even if first pass failed so 19 that ANTLR can spit out its errors 20 21 31.12.2007 22 Support the -Xconversiontimeout option (Jim Idle) 23 24 21.10.2007 25 Evaluation of dependencies via ANTLRs 'depend' option. 26 Added noprune and nocollapse option. 27 'grammar parser' will be recognized. 28 29 17.05.2007 30 Adapted the grammar type recognition to the changed naming conventions for tree parsers. 31 Compiled the antlr3 taks with -source 5 -target 5 for compatibility with Java 5. 32 Dropped trace, tracelexer and traceparser options as they are not supported by antlr any more. 33 Added depend and dbgST options. 34 Added project "SimpleTreeWalker" as an example for a multi grammar project. 35 36 How to build the antlr3 task: 37 38 Prerequisites: 39 1) apache-ant-1.7.0 installed 40 2) antlr jar files (antlr-3.1b1.jar, antlr-2.7.7.jar and stringtemplate-3.1b1.jar) 41 contained in the CLASSPATH environment variable 42 3) Java 5 or Java 6 installed 43 44 javac -source 5 -target 5 -classpath C:/Programme/apache-ant-1.7.0/lib/ant.jar org/apache/tools/ant/antlr/ANTLR3.java 45 jar cvf antlr3.jar org/apache/tools/ant/antlr/antlib.xml org/apache/tools/ant/antlr/ANTLR3.class 46 47 a) d2u.tp 48 49 Simple example on how to use the antlr3 task with ant 50 51 b) simplecTreeParser.tp 52 53 Example on how to build a multi grammar project with ant. 54 55 c) polydiff_build.zip 56 57 Example build file for polydiff example grammar added. 58 59 d) composite-java_build.zip 60 61 Example build file for composite-java example grammar added