Log in

Python has no precedence grammar - Gareth Rees


Previous Entry 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