IMPORTANT: You can view this file and the files of this repository at https://github.com/ZombieHippie/python-arithmetic-language
Run the command
python run.py
Please refer to the Grammar rules.txt
file for grammar rules
Refer to this git repository for how each member contributed.
- Install Python 3.x (default settings worked for me)
This project can be developed with a TDD attitude, by simply running the test script for your section of code each time you wish to test.
These tests need to pass, then we will string them together to complete the application.
While in the project folder.
Run the following command to run the arithmetic_tokenizer.py
tests.
python test_tokenizer.py
While in the project folder.
Run the following command to run the arithmetic_parser.py
tests.
python test_parser.py
While in the project folder.
Run the following command to run the arithmetic_evaluator.py
tests.
python test_evaluator.py
While in the project folder.
Run all tests with test.cmd
.
Throughout development the following posts may have been referenced for development.
- Visitor Pattern in Python - Used for AST
- Python Modules - General reference
- Python Unittest - Unittest reference documents