comparison mercurial/fileset.py @ 25800:f8f7ae0f4d98

parser: add comment about structure of elements to each table
author Yuya Nishihara <yuya@tcha.org>
date Sun, 05 Jul 2015 11:06:58 +0900
parents 328739ea70c3
children 272ff3680bf3
comparison
equal deleted inserted replaced
25799:0eb093e40813 25800:f8f7ae0f4d98
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)),