equal
deleted
inserted
replaced
11 |
11 |
12 # takes a tokenizer and elements |
12 # takes a tokenizer and elements |
13 # tokenizer is an iterator that returns type, value pairs |
13 # tokenizer is an iterator that returns type, value pairs |
14 # elements is a mapping of types to binding strength, prefix and infix actions |
14 # elements is a mapping of types to binding strength, prefix and infix actions |
15 # an action is a tree node name, a tree label, and an optional match |
15 # an action is a tree node name, a tree label, and an optional match |
16 # __call__(program) parses program into a labelled tree |
16 # __call__(program) parses program into a labeled tree |
17 |
17 |
18 import error |
18 import error |
19 from i18n import _ |
19 from i18n import _ |
20 |
20 |
21 class parser(object): |
21 class parser(object): |