Show More
@@ -10,8 +10,9 b'' | |||||
10 | # for background |
|
10 | # for background | |
11 |
|
11 | |||
12 | # takes a tokenizer and elements |
|
12 | # takes a tokenizer and elements | |
13 |
# tokenizer is an iterator that returns type, value |
|
13 | # tokenizer is an iterator that returns (type, value, pos) tuples | |
14 |
# elements is a mapping of types to binding strength, prefix |
|
14 | # elements is a mapping of types to binding strength, prefix, infix and | |
|
15 | # optional suffix actions | |||
15 | # an action is a tree node name, a tree label, and an optional match |
|
16 | # an action is a tree node name, a tree label, and an optional match | |
16 | # __call__(program) parses program into a labeled tree |
|
17 | # __call__(program) parses program into a labeled tree | |
17 |
|
18 |
General Comments 0
You need to be logged in to leave comments.
Login now