def __init__(self,<EOL>lex_optimize=True,<EOL>yacc_optimize=True,<EOL>tabfile='<STR_LIT>',<EOL>yacc_debug=False,<EOL>scope=None,<EOL>outputdir=tempfile.gettempdir(),<EOL>importlvl=<NUM_LIT:0>,<EOL>verbose=False,<EOL>fail_with_exc=False):
self.verbose = verbose<EOL>self.importlvl = importlvl<EOL>self.lex = lexer.LessLexer()<EOL>if not tabfile:<EOL><INDENT>tabfile = '<STR_LIT>'<EOL><DEDENT>self.ignored = ('<STR_LIT>', '<STR_LIT>', '<STR_LIT>')<EOL>self.tokens = [t for t in self.lex.tokens if t not in self.ignored]<EOL>self.parser = ply.yacc.yacc(<EOL>module=self,<EOL>start='<STR_LIT>',<EOL>debug=yacc_debug,<EOL>optimize=yacc_optimize,<EOL>tabmodule=tabfile,<EOL>outputdir=outputdir)<EOL>self.scope = scope if scope else Scope()<EOL>self.stash = {}<EOL>self.result = None<EOL>self.target = None<EOL>self.fail_with_exc = fail_with_exc<EOL>if fail_with_exc:<EOL><INDENT>self.register = ErrorRegister()<EOL><DEDENT>else:<EOL><INDENT>self.register = PrintErrorRegister()<EOL><DEDENT>
Parser object

            Kwargs:
                lex_optimize (bool): Optimize lexer
                yacc_optimize (bool): Optimize parser
                tabfile (str): Yacc tab filename
                yacc_debug (bool): yacc debug mode
                scope (Scope): Inherited scope
                outputdir (str): Output (debugging)
                importlvl (int): Import depth
                verbose (bool): Verbose mode
                fail_with_exc (bool): Throw exception on syntax error instead
                                      of printing to stderr