A simple non-optimizing interpreter written in Python 3.
Use the package manager pip to install PLY:
pip install ply
To run the standard example calculating the Nth Fibonacci's sequence number, type in the console:
python3 interpreter.py
Then, type the fib.txt
filename.
You can also give the interpreter the gnome.txt
file for running a simple gnome sort implementation.
To run the standard robot pathfinding algorithm, type:
python3 runner.py
The script will first ask you for the name of the file containing the map, then the name of the file with instructions. If the script won't be able to read the map, it will notify you.
There is a pre-written map.txt
file containing the map, way.txt
containing the pathfinding algorithm, and way2.txt
which can be used to demonstrate the robot's abilities. way2.txt
will not lead the robot to the exit.