- expand the tar.gz file.
[ex]
% tar zxvf Pascal-S.tar.gz
(or % gzip -cd Pascal-S.tar.gz | tar xvf )
- move to Pascal-S directory and then execute sablecc and
compile the sources.
[ex]
% cd Pascal-S
% sablecc pascal.grammar
% javac pascal/Main.java
- compile a Pascal-S source with the Pascal-S compiler.
[ex]
% java pascal.Main sample.p
- then you can get a P4 code in a file named "prr".
So you can run P4 interpreter as follows.
[ex]
% mv prr prd
% pint < /dev/null (or pint < input)