Sign in or Join FriendFeed
FriendFeed is the easiest way to share online. Learn more »
Amit Patel
Simple Top-Down Parsing in Python - http://effbot.org/zone...
"In the early seventies, Vaughan Pratt published an elegant improvement to recursive-descent in his paper Top-down Operator Precedence. Pratt’s algorithm associates semantics with tokens instead of grammar rules, and uses a simple “binding power” mechanism to handle precedence levels. Traditional recursive-descent parsing is then used to handle odd or irregular portions of the syntax." - Amit Patel
Nice, hadn't seen that before. Very clearly written. - DeWitt Clinton