Tomographies for your code
It's and interpreter of AyED2 language, and also a memory visualizer of executions.
The grammar of the language can be found here. You can also find simple examples in this folder, and a bit more complex ones with these linked_list or bubble_sort ones.
A simple pip install should do it. It's recommened to install it on a virtual environment, but it's up to you.
]$ pip install tomos
After installed, you should have a new command named tomos
, and you can check everything it's working fine by running
]$ tomos --version
Assuming you have a valid AyED2 file (example.ayed), you can run the interpreter like this:
]$ tomos example.ayed
that should show on screen the final state of such execution.
If you want to generate the visualization trace, add the parameter --autoplay
.
For a complete list of options, use --help