1 # Stubs for lib2to3.pgen2.grammar (Python 3.6)
\r
3 from lib2to3.pgen2 import _Path
\r
5 from typing import Any, Dict, List, Optional, Text, Tuple, TypeVar
\r
8 _Label = Tuple[int, Optional[Text]]
\r
9 _DFA = List[List[Tuple[int, int]]]
\r
10 _DFAS = Tuple[_DFA, Dict[int, int]]
\r
13 symbol2number: Dict[Text, int]
\r
14 number2symbol: Dict[int, Text]
\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
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
29 opmap: Dict[Text, Text]
\r