class_docstr: Once initialized, this class supplies the grammar tables for the
  parsing engine implemented by parse.py.  The parsing engine
  accesses the instance variables directly.
  
  The only important part in this parsers are dfas and transitions between
  dfas.
class_docstr_tok: ["Once","initialized",",","this","class","supplies","the","grammar","tables","for","the","parsing","engine","implemented","by","parse.py",".","The","parsing","engine","accesses","the","instance","variables","directly",".","The","only","important","part","in","this","parsers","are","dfas","and","transitions","between","dfas","."]
code: def __init__(
      self,
      start_nonterminal: str,
      rule_to_dfas: Mapping[str, Sequence["DFAState[_TokenTypeT]"]],
      reserved_syntax_strings: Mapping[str, "ReservedString"],
  ):
      self.nonterminal_to_dfas = rule_to_dfas
      self.reserved_syntax_strings = reserved_syntax_strings
      self.start_nonterminal = start_nonterminal
  
imports: from ast import literal_eval
  from typing import TypeVar, Generic, Mapping, Sequence, Set, Union
  from parso.pgen2.grammar_parser import GrammarParser, NFAState
label_desc: Use image node_id 1 to create a new Grammar object from inherited base classes: Generic with example: obj = Grammar(start_nonterminal, rule_to_dfas, reserved_syntax_strings)