changeset 12:835efd8acb04

add some vocab
author Jeff Hammel <jhammel@mozilla.com>
date Fri, 03 Jun 2011 11:09:08 -0700
parents e17a3464a0b9
children ec0e83ec329f
files expr.py
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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