You are viewing gareth_rees

Gareth Rees - Python has no precedence grammar
2011‒07‒17
15:39

[Link]

Previous Entry Add to Memories Share Next Entry
Python has no precedence grammar

I was writing a minifier for Python 2 when I noticed1 an interesting feature: you can’t express the Python grammar in the form of an operator precedence grammar.

Background: an operator precedence grammar is one in which every pair of operators have a precedence relation )

garethrees.org Powered by LiveJournal.com