Compiler for Simple Language of Expressions
To check the correctness of syntax, run the following commands in terminal from the parent directory:
- make
- A binary file named "e++" is generated to the bin/ directory. Copy it to the samples/ directory.
- Go to tests/targ/ and then open the folder according to your system, i.e., Windows, Linux or MacOS. Copy the targ++ binary file to the samples/ directory.
- cd samples/
- ./e++ test_{1 or 2 or 3}.txt
- ./targ++ targ.txt
If the targ commands generated were syntactically correct, it shows "Compilation Sucessful!".
NOTE: If terminal shows permission denied error, then run ”sudo chmod +x targ++” only once.
To run the tester, run the following commands in terminal from the parent directory:
- make tester
- cd bin/
- ./tester
- Follow the instructions displayed on the screen.