class_docstr: Parser engine.
  
  A Parser instance contains state pertaining to the current token
  sequence, and should not be used concurrently by different threads
  to parse separate token sequences.
  
  See python/tokenize.py for how to get input tokens by a string.
  
  When a syntax error occurs, error_recovery() is called.
class_docstr_tok: ["Parser","engine",".","A","Parser","instance","contains","state","pertaining","to","the","current","token","sequence",",","and","should","not","be","used","concurrently","by","different","threads","to","parse","separate","token","sequences",".","See","python\/tokenize.py","for","how","to","get","input","tokens","by","a","string",".","When","a","syntax","error","occurs",",","error_recovery","(",")","is","called","."]
code: def __init__(
      self,
      pgen_grammar,
      start_nonterminal="file_input",
      error_recovery=False,
  ):
      self._pgen_grammar = pgen_grammar
      self._start_nonterminal = start_nonterminal
      self._error_recovery = error_recovery
  
imports: from typing import Dict, Type
  from parso import tree
  from parso.pgen2.generator import ReservedString
label_desc: Use image node_id 1 to create a new BaseParser object  with example: obj = BaseParser(pgen_grammar, start_nonterminal, error_recovery)