6D65 / pratt-parsing-demo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A Nice Pratt Parsing Demo

See http://www.oilshell.org/blog/2016/11/03.html

Requires Python 3. Try:

./tests.py 

./arith_parse.py '1+2*3'

This code originally was originally based on the parser in tinypy, but every line has been changed, except possibly for some tests.

ezoic increase your site revenue

About

License:MIT License


Languages

Language:Python 100.0%