Mercurial > hg > expressionparser
changeset 10:15fb1081784f
add ExpressionParser to the exports
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Fri, 03 Jun 2011 10:16:19 -0700 |
parents | 421e26c0299f |
children | e17a3464a0b9 |
files | expr.py |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/expr.py Fri Jun 03 08:36:55 2011 -0700 +++ b/expr.py Fri Jun 03 10:16:19 2011 -0700 @@ -22,10 +22,13 @@ # Identifiers take their values from a mapping dictionary passed as the second # argument. -__all__ = ['parse', 'ParseError'] +__all__ = ['parse', 'ParseError', 'ExpressionParser'] import re # token classes +class token(object): + pass + class ident_token(object): def __init__(self, value): self.value = value