Skip to content

wojtekkw10/JFTTCompiler

Repository files navigation

Compiler

Compiler for JFTT class at the Wrocław University of Science and Technology

Author

Wojciech Kwaśniewicz

Dependencies

By default, the file 'input' is used as input for the compiler. 'output' is the output file of the compiler, and the input file for the VM.

openjdk 11.0.5-ea 2019-10-15

sudo apt install openjdk-11-jdk

cln 1.3.5

cd cln-directory
./configure
sudo make install

To build and run the compiler, and then the vm

make vm

To build and run jar file on the input file

make run

Directories

build/libs/compiler-all.jar - the compiler src/main/antlr - grammar src/main/java/parser - generated grammar in Java by ANTLR src/main/java/compiler - compiler source files

Warning

  • internet connection is required for the first compilation
  • DIV and MOD algorithms use numbers greater than the inputs. May cause problems on the non-cln virtual machine.