def input(self, data, name='<STR_LIT>'):
lexer = lex.lex(debuglog=logger,<EOL>errorlog=logger,<EOL>optimize=<NUM_LIT:1>,<EOL>module=self,<EOL>outputdir=os.path.dirname(__file__),<EOL>lextab="<STR_LIT>")<EOL>lexer.filename = name<EOL>logger.debug('<STR_LIT>' % name)<EOL>s = self.parser.parse(lexer=lexer, input=data, tracking=<NUM_LIT:1>)<EOL>self.statements.extend(s)<EOL>
Parse *data* directly from a string. The *name* is used when reporting
positional information if the parser encounter syntax errors.