Repository for PLT team project codename: Pipeline
Download libuv from the following link: http://dist.libuv.org/dist/v1.11.0/
Follow the instructions to install:
$ sudo apt-get install automake
$ sudo apt-get install libtoolize
$ ./autogen.sh
$ ./configure
$ make
$ make check
$ sudo make install
$ echo "export LD_LIBRARY_PATH=\"/usr/local/lib\"" >> ~/.bashrc
$ source ~/.bashrc
add-apt-repository ppa:avsm/ppa
apt-get update
apt-get install ocaml ocaml-native-compilers camlp4-extra opam
navigate to the PLT_Project folder
enter command 'make'
navigate to the src folder
enter command 'python testall.py'
./pipeline -<flag> <filename.pl>
where <flag> can be any of the following
("-a", Ast); (* Print the AST *)
("-t", Translate); (* Translate the program to output c file *)
("-c", Compile); (* Compile the output c file *)
("-r", Run); (* Run the program *)
("-d", Compare) ] (* Compare output and expected output *)