source: trunk/yao/share/antlr-2.7.7/examples/java/inherit.tinyc/runtest.bat @ 1

Last change on this file since 1 was 1, checked in by lnalod, 15 years ago

Initial import of YAO sources

File size: 794 bytes
Line 
1echo off
2rem
3rem Demonstrate how to subclass a grammar and actually get it to compile.
4rem Biggest issue is making sure ANTLR, compiler, and interpreter can see
5rem the supergrammar and classes needed by it.  In this case, the subgrammar
6rem uses the supergrammar's lexer; it must be visible for the compiler and
7rem interpreter.
8rem
9rem If you put a lexer here in this dir, you would not need all this
10rem classpath crap.
11rem
12echo on
13java antlr.Tool -glib "..\tinyc\tinyc.g" subc.g
14javac -classpath c:\jdk1.1.7A\lib\classes.zip;.;..\tinyc;d:\Projects\antlr-2.6.0 *.java
15echo off
16rem
17rem have to change the next classpath to point to your 2.6.0 directory not mine.
18rem
19echo on
20java -classpath c:\jdk1.1.7A\lib\classes.zip;.;..\tinyc;d:\Projects\antlr-2.6.0 Main < input.c
21
Note: See TracBrowser for help on using the repository browser.