Permalink
Browse files

Add parse fun

  • Loading branch information...
trane committed Mar 22, 2012
1 parent e01d137 commit c16d0888c4895571561e989511f0cd528ebf730a
Showing with 1 addition and 1 deletion.
  1. +1 −1 salt/comparison.py
View
@@ -145,7 +145,7 @@ class Parser(Comparator):
<Primitive> ::= Int
| String
'''
- def __init__(self, inpt):
+ def parse(self, inpt):
t = Tokenizer(inpt)
t.add_rule(r'[A-Za-z0-9]+', t.token)
t.add_rule(r'\b(?:grains|salt|pillar)\[[^\]]+\]', t.token)

0 comments on commit c16d088

Please sign in to comment.