runtest.bat
Upload User: afrynkmhm
Upload Date: 2007-01-06
Package Size: 1262k
Code Size: 1k
Development Platform:

Others

  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 "..tinyctinyc.g" subc.g
  14. javac -classpath c:jdk1.1.7Alibclasses.zip;.;..tinyc;d:Projectsantlr-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.7Alibclasses.zip;.;..tinyc;d:Projectsantlr-2.6.0 Main < input.c