4 REM This launches Antlr to process the fabric grammar file (grammar.g) and generate
5 REM FabricLexer.cpp. FabricParser.cpp, etc..
8 IF NOT defined ANTLRJAR
SET ANTLRJAR
=..
/bintools
/antlr.jar
10 REM First nuke the old generated code. This is necessary because when Antlr
11 REM runs it doesn't update the modified time of the generated files if no changes
12 REM are applied to them.
13 REM This causes the build to unnecessarily rerun antlr because it never
14 REM knows the generated files are up to date.
16 del /Q GeneratedCode\
*.
*
17 call java
-classpath
"%ANTLRJAR%;%CLASSPATH%" antlr.Tool
-o GeneratedCode Grammar.g
2>&1 | ..
\bintools\unix_util_rewrite.exe