This is a Python port of the Java Bantam app that demonstrates Pratt parsing. For a full explanation, see this blog post. The original Java code has also been ported to C# by John Cardinal and Kotlin by hiperbou.