Searched refs:more_alts (Results 1 – 2 of 2) sorted by relevance
/external/python/cpython3/Tools/peg_generator/pegen/ |
D | metagrammar.gram | 52 | rulename memoflag? ":" alts NEWLINE INDENT more_alts DEDENT { 53 Rule(rulename[0], rulename[1], Rhs(alts.alts + more_alts.alts), memo=opt) } 54 | rulename memoflag? ":" NEWLINE INDENT more_alts DEDENT { 55 Rule(rulename[0], rulename[1], more_alts, memo=opt) } 71 more_alts[Rhs]: 72 | "|" alts NEWLINE more_alts { Rhs(alts.alts + more_alts.alts) }
|
D | grammar_parser.py | 184 (more_alts := self.more_alts()) 188 …return Rule ( rulename [ 0 ] , rulename [ 1 ] , Rhs ( alts . alts + more_alts . alts ) , memo = op… 203 (more_alts := self.more_alts()) 207 return Rule ( rulename [ 0 ] , rulename [ 1 ] , more_alts , memo = opt ) 310 def more_alts(self) -> Optional[Rhs]: member in GeneratedParser 321 (more_alts := self.more_alts()) 323 return Rhs ( alts . alts + more_alts . alts )
|