massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stdlib / lib2to3 / pgen2 / grammar.pyi
1 from _typeshed import StrPath
2 from typing import Dict, List, Optional, Tuple, TypeVar
3
4 _P = TypeVar("_P")
5 _Label = Tuple[int, Optional[str]]
6 _DFA = List[List[Tuple[int, int]]]
7 _DFAS = Tuple[_DFA, Dict[int, int]]
8
9 class Grammar:
10     symbol2number: dict[str, int]
11     number2symbol: dict[int, str]
12     states: list[_DFA]
13     dfas: dict[int, _DFAS]
14     labels: list[_Label]
15     keywords: dict[str, int]
16     tokens: dict[int, int]
17     symbol2label: dict[str, int]
18     start: int
19     def __init__(self) -> None: ...
20     def dump(self, filename: StrPath) -> None: ...
21     def load(self, filename: StrPath) -> None: ...
22     def copy(self: _P) -> _P: ...
23     def report(self) -> None: ...
24
25 opmap_raw: str
26 opmap: dict[str, str]