1 from lib2to3.pgen2.grammar import _DFAS, Grammar
2 from lib2to3.pytree import _NL, _Convert, _RawNode
3 from typing import Any, Sequence
5 _Context = Sequence[Any]
7 class ParseError(Exception):
12 def __init__(self, msg: str, type: int, value: str | None, context: _Context) -> None: ...
17 stack: list[tuple[_DFAS, int, _RawNode]]
20 def __init__(self, grammar: Grammar, convert: _Convert | None = ...) -> None: ...
21 def setup(self, start: int | None = ...) -> None: ...
22 def addtoken(self, type: int, value: str | None, context: _Context) -> bool: ...
23 def classify(self, type: int, value: str | None, context: _Context) -> int: ...
24 def shift(self, type: int, value: str | None, newstate: int, context: _Context) -> None: ...
25 def push(self, type: int, newdfa: _DFAS, newstate: int, context: _Context) -> None: ...
26 def pop(self) -> None: ...