def input(self, file_data, **kwargs):
self.lex = lex.lex(module=self, **kwargs)<EOL>self.tokens_queue = []<EOL>self.cur_indent = <NUM_LIT:0><EOL>self.lex.input(file_data + '<STR_LIT:\n>')<EOL>
Required by ply.yacc for this to quack (duck typing) like a ply lexer.

:param str file_data: Contents of the file to lex.