8 import re |
8 import re |
9 import parser, error, util, merge |
9 import parser, error, util, merge |
10 from i18n import _ |
10 from i18n import _ |
11 |
11 |
12 elements = { |
12 elements = { |
|
13 # token-type: binding-strength, prefix, infix, suffix |
13 "(": (20, ("group", 1, ")"), ("func", 1, ")")), |
14 "(": (20, ("group", 1, ")"), ("func", 1, ")")), |
14 "-": (5, ("negate", 19), ("minus", 5)), |
15 "-": (5, ("negate", 19), ("minus", 5)), |
15 "not": (10, ("not", 10)), |
16 "not": (10, ("not", 10)), |
16 "!": (10, ("not", 10)), |
17 "!": (10, ("not", 10)), |
17 "and": (5, None, ("and", 5)), |
18 "and": (5, None, ("and", 5)), |