Searched refs:ilabel (Results 1 – 8 of 8) sorted by relevance
/external/python/cpython3/Lib/lib2to3/pgen2/ |
D | parse.py | 116 ilabel = self.classify(type, value, context) 125 if ilabel == i: 145 if ilabel in itsfirst: 167 ilabel = self.grammar.keywords.get(value) 168 if ilabel is not None: 169 return ilabel 170 ilabel = self.grammar.tokens.get(type) 171 if ilabel is None: 173 return ilabel
|
D | pgen.py | 56 ilabel = self.make_label(c, label) 58 first[ilabel] = 1 63 ilabel = len(c.labels) 72 c.symbol2label[label] = ilabel 73 return ilabel 83 c.tokens[itoken] = ilabel 84 return ilabel 95 c.keywords[value] = ilabel 96 return ilabel 104 c.tokens[itoken] = ilabel [all …]
|
D | conv.py | 253 for ilabel, (type, value) in enumerate(self.labels): 255 self.keywords[value] = ilabel 257 self.tokens[type] = ilabel
|
/external/python/cpython2/Lib/lib2to3/pgen2/ |
D | parse.py | 116 ilabel = self.classify(type, value, context) 125 if ilabel == i: 145 if ilabel in itsfirst: 167 ilabel = self.grammar.keywords.get(value) 168 if ilabel is not None: 169 return ilabel 170 ilabel = self.grammar.tokens.get(type) 171 if ilabel is None: 173 return ilabel
|
D | pgen.py | 56 ilabel = self.make_label(c, label) 58 first[ilabel] = 1 63 ilabel = len(c.labels) 72 c.symbol2label[label] = ilabel 73 return ilabel 83 c.tokens[itoken] = ilabel 84 return ilabel 95 c.keywords[value] = ilabel 96 return ilabel 104 c.tokens[itoken] = ilabel [all …]
|
D | conv.py | 253 for ilabel, (type, value) in enumerate(self.labels): 255 self.keywords[value] = ilabel 257 self.tokens[type] = ilabel
|
/external/python/cpython3/Parser/ |
D | parser.c | 230 int ilabel; in PyParser_AddToken() local 236 ilabel = classify(ps, type, str); in PyParser_AddToken() 237 if (ilabel < 0) in PyParser_AddToken() 250 if (s->s_lower <= ilabel && ilabel < s->s_upper) { in PyParser_AddToken() 251 int x = s->s_accel[ilabel - s->s_lower]; in PyParser_AddToken()
|
/external/python/cpython2/Parser/ |
D | parser.c | 223 register int ilabel; in PyParser_AddToken() local 229 ilabel = classify(ps, type, str); in PyParser_AddToken() 230 if (ilabel < 0) in PyParser_AddToken() 243 if (s->s_lower <= ilabel && ilabel < s->s_upper) { in PyParser_AddToken() 244 register int x = s->s_accel[ilabel - s->s_lower]; in PyParser_AddToken()
|