mirror of
https://github.com/davidhalter/parso.git
synced 2025-12-22 12:11:31 +08:00
Cleanup some names
This commit is contained in:
@@ -191,7 +191,7 @@ class _GrammarParser():
|
|||||||
|
|
||||||
def _parse_rhs(self):
|
def _parse_rhs(self):
|
||||||
# rhs: items ('|' items)*
|
# rhs: items ('|' items)*
|
||||||
a, z = self._parse_alt()
|
a, z = self._parse_items()
|
||||||
if self.value != "|":
|
if self.value != "|":
|
||||||
return a, z
|
return a, z
|
||||||
else:
|
else:
|
||||||
@@ -206,10 +206,10 @@ class _GrammarParser():
|
|||||||
break
|
break
|
||||||
|
|
||||||
self._gettoken()
|
self._gettoken()
|
||||||
a, z = self._parse_alt()
|
a, z = self._parse_items()
|
||||||
return aa, zz
|
return aa, zz
|
||||||
|
|
||||||
def _parse_alt(self):
|
def _parse_items(self):
|
||||||
# items: item+
|
# items: item+
|
||||||
a, b = self._parse_item()
|
a, b = self._parse_item()
|
||||||
while self.type in (token.NAME, token.STRING, token.LPAR, token.LSQB):
|
while self.type in (token.NAME, token.STRING, token.LPAR, token.LSQB):
|
||||||
|
|||||||
Reference in New Issue
Block a user