Skip to content

Mountagha/bantam

Repository files navigation

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

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages