Mountagha / bantam

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bantam

Bantam is a tiny little language used to demonstrate Pratt parsing from this blog post of Bob Nystrom.
If you've been struggling to understand pratt-parsing the blog post mentionned before is all you need to master the subject.
I ported the toy language to Python since the blog post uses Java and not everyone including me (sarcasm) is fan the latter.
I tried to make it look as much as possible to the original implementation from the original repository.
To run tests you need to install pytest library and run the following command from the root of the cloned repository.
pytest main.py

About


Languages

Language:Python 100.0%