Compiler of Pascal Programming Language written in Java. Syntax tree is constructed using the recursive descent. Assembly code generation is still in progress.
In order to build the project you need to generate JAR file. In terminal: bash build.sh.
In order to run jar the jar file you need to run java -jar compiler.jar.
java -jar compiler.jar -hjava -jar compiler.jar -l [input file] [output file]java -jar compiler.jar -s [input file] [output file]
Displays credentials and avaliable commands
USAGE
$ java -jar compiler.jar -h
ARGUMENTS
NAME name of command
Performs lexical analysis of the input file and writes the result to output file.
USAGE
$ java -jar compiler.jar -l [input file] [output file]
ARGUMENTS
input file path to input file
output file path to output file
Performs syntaxis analysis of the input file and writes the resulting syntax tree to output file.
USAGE
$ java -jar compiler.jar -s [input file] [output file]
ARGUMENTS
input file path to input file
output file path to output file