# HG changeset patch # User Jeff Hammel # Date 1307124548 25200 # Node ID 835efd8acb04e74199c950fbe126516f8ee90a6f # Parent e17a3464a0b913e91d8a88e6701cc9aa50f21783 add some vocab diff -r e17a3464a0b9 -r 835efd8acb04 expr.py --- a/expr.py Fri Jun 03 10:51:36 2011 -0700 +++ b/expr.py Fri Jun 03 11:09:08 2011 -0700 @@ -1,5 +1,3 @@ -#!/usr/bin/env python - # Implements a top-down parser/evaluator for simple boolean expressions. # ideas taken from http://effbot.org/zone/simple-top-down-parsing.htm # @@ -22,6 +20,12 @@ # Identifiers take their values from a mapping dictionary passed as the second # argument. +# Glossary (see above URL for details): +# - nud: null denotation +# - led: left detonation +# - lbp: left binding power +# - rbp: right binding power + __all__ = ['parse', 'ParseError', 'ExpressionParser'] import re