Skip to content
master
Switch branches/tags
Go to file
Code

Latest commit

Andy Chu
I had copied the precedences from bash's expr.c.  (zsh and busybox ash
also follow bash.)

But Python and R parse it as -(3 ** 2) rather than (-3) ** 2.

Fixes issue #1.
1d0b509

Git stats

Files

Permalink
Failed to load latest commit information.

README.md

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.

About

No description, website, or topics provided.

Resources

License

Releases

No releases published

Packages

No packages published

Languages