I made a custom interpreter out of python.
Hello all! I'd like to share this interpreter I made using python, probably not the most efficient but hey, I made it and I'm proud. 😁
Anyways, big thanks to fuzzyastrocat for their tutorial on parsing a file in C! I adapted to python then used it to make this, actually with their really simple but insightful method to parsing the file it's very easy to make changes. To see every change here have a look at the
.changelog and play around with the
source.cevi. Thanks for taking a look!
I decided to edit this and make a running list of features, subject to change:
- while statements
- integer and string handling
- if statements
- addition, subtraction, multiplication, division, and all boolean operators
- namespaces (for now it's just scope handling but they will be useful both for CEVI use and for myself when interpreting stuff like functions)
functions (no return yet)