How to run SableCC
There are two versions of SableCC that you can use.
You can run SableCC on a teaching machine as follows:
- setting the SABLECCDIR
setenv SABLECCDIR ~hendren/SableCC/sablecc-2.18.2
setenv SABLECCDIR ~hendren/SableCC/sablecc-3-beta.3
depending on which version of SableCC you would like to use.
- and then compile a sablecc specification file,
, as follows:
java -jar $SABLECCDIR/lib/sablecc.jar foo.sablecc
Of course, you may define your own alias or script to make this command
more convenient. A sample makefile is also available in the first
Examples of using SableCC version 2 are found in:
Examples of using SableCC version 3 are found in: