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