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
-
Notifications
You must be signed in to change notification settings - Fork 0
Mountagha/bantam
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published