Script to make javacc and jjtree easier to generate, compile and execute. To use:
-
Download the file
-
Modify the chmod of the script:
chmod +x comp
-
Copy the script to /usr/bin:
cp comp /usr/bin
Replaces the commands:
javacc Example.jj
javac *.java
java Example
with:
comp Example.jj
Replaces the commands:
jjtree Example.jjt
javacc Example.jj
javac *.java
java Example
with:
comp Example.jjt