]> git.madduck.net Git - etc/vim.git/blob - blib2to3/pgen2/grammar.pyi

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

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