Skip to content

About

Repository for PLT team project codename: Pipeline

Resources

Stars

0 stars

Watchers

3 watching

Forks

Repository files navigation

PLT_Project

Repository for PLT team project codename: Pipeline

How to Install and Run Pipeline

Step 1: Libuv

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

Step 2: ocaml

add-apt-repository ppa:avsm/ppa
apt-get update
apt-get install ocaml ocaml-native-compilers camlp4-extra opam

Step 3: Pipeline

navigate to the PLT_Project folder
enter command 'make'

Step 4:Run the test

navigate to the src folder
enter command 'python testall.py'

Step 5: Run files with the pipeline executable as follows:

./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 *)

About

Repository for PLT team project codename: Pipeline

Resources

Stars

0 stars

Watchers

3 watching

Forks

Releases

Packages

Contributors

Languages