@echo off REM REM This is the Windows version of ./.make.csh. See the comments in that file REM for a description of the compilation and execution steps performed. REM REM This batch file assumes that CUP is installed in the following folder: REM REM z:\pkg\java_cup_v10k REM REM The folder name "java_cup_v10k" is the default name after unpacking the CUP REM download. If you install in a different folder on your machine, adjust the REM following definition accordingly. set CUP_HOME=z:\pkg\java_cup_v10k REM REM This batch file assumes that JFlex is installed in the following folder: REM REM z:\pkg\jflex-1.4.1 REM REM Again, the name "jflex-1.4.1" is the default name after unpacking the JFlex REM download. If you install JFlex in a different folder, adjust the following REM definition accordingly. set JFLEX_HOME=z:\pkg\jflex-1.4.1 REM REM Finally, this batch file assumes that the java tools are installed such REM that they are directly invocable from the Command Prompt, without path REM qualification. REM @echo on java -classpath %CUP_HOME%;. java_cup.Main pascal-tokens.cup java -classpath %JFLEX_HOME%\lib\JFlex.jar;. JFlex.Main pascal.jflex javac -classpath %CUP_HOME%;. PascalLexer.java PascalLexerTest.java sym.java java -classpath %CUP_HOME%;. PascalLexerTest %1