massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / coc-python-data / languageServer.0.5.59 / Typeshed / stdlib / 2and3 / lib2to3 / pgen2 / grammar.pyi
1 # Stubs for lib2to3.pgen2.grammar (Python 3.6)\r
2 \r
3 from lib2to3.pgen2 import _Path\r
4 \r
5 from typing import Any, Dict, List, Optional, Text, Tuple, TypeVar\r
6 \r
7 _P = TypeVar('_P')\r
8 _Label = Tuple[int, Optional[Text]]\r
9 _DFA = List[List[Tuple[int, int]]]\r
10 _DFAS = Tuple[_DFA, Dict[int, int]]\r
11 \r
12 class Grammar:\r
13     symbol2number: Dict[Text, int]\r
14     number2symbol: Dict[int, Text]\r
15     states: List[_DFA]\r
16     dfas: Dict[int, _DFAS]\r
17     labels: List[_Label]\r
18     keywords: Dict[Text, int]\r
19     tokens: Dict[int, int]\r
20     symbol2label: Dict[Text, int]\r
21     start: int\r
22     def __init__(self) -> None: ...\r
23     def dump(self, filename: _Path) -> None: ...\r
24     def load(self, filename: _Path) -> None: ...\r
25     def copy(self: _P) -> _P: ...\r
26     def report(self) -> None: ...\r
27 \r
28 opmap_raw: Text\r
29 opmap: Dict[Text, Text]\r