method (str) – The selected parser method; one of ['SLR', 'LALR']
debug (int | None) – If evaluates to True, generate a debug log and send it to debuglog
module (types.ModuleType | None) – The module defining the parser grammar. If None, then the
calling context is assumed to contain the grammar.
tabmodule (types.ModuleType | str | None) – If tabmodule is a module, then assume it is a cached parse
table. Bind the parser to the tabmodule and the grammar scope
it and return it. If it is a string or None, then the parse
table is generated from the grammar (see also module)
start (str | None)
check_recursion (bool)
debugfile (str) – If debug evaluates to True and debuglog is None the
debug log is written to this file name. If outputdir is
non-None, it is joined with debugfile before opening.
outputdir (str | None) – If non-None and tabmodule is not a module, then write the
parse table to tabfile in outputdir.
debuglog (PlyLogger | NullLogger | None) – If non-None, the logger to write the debug log to
errorlog (PlyLogger | NullLogger | None) – Error log file. If None, the error log is sent to sys.stderr
module_signature (str) – “Signature” of the grammar module. Ignored by yacc, except
record it as part of the cached parse table