Stoichy
Stoichy is a language that can be used to balance complex chemical equations defined by the user. This is a group Project as a part of Compilers course at IIT Hyderabad.
Installation
We have written most of the Project in Ocaml hence the user needs to install Ocaml dependencies.
As we have written Code generation in Java, Java is a prereq. For installing java, follow https://linuxize.com/post/install-java-on-ubuntu-18-04/
To install Ocaml and all the dependencies of python we used for the project run the prereqs.sh bash script in sudo mode.
$ sudo su
$ bash prereqs.sh
Instructions to Compile
-
$ make
-
$ ./stoichy <input_file>
-
$ make clean # To clean all files
To run all the tests at once and see the output run,
$ bash run_tests.sh