Skip to content

ravener/bantam.py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

bantam.py

This a port of Bantam to Python, which demonstrates Pratt parsing as part of this blog post

The code was written to mimic the original Java code as close as possible.

I've written everything in a single file to keep it simple, even though it ended up being over 500+ lines of code I think the concept should still be clear and you don't have to jump between files.

Usage

Simply grab the code and run it with:

$ python main.py

There are no external dependencies.

License

Released under the MIT License

Releases

No releases published

Packages

No packages published

Languages