def __init__(self):
self.t_add_rules()
self.lexer = get_script_lexer()
self.parser = yacc.yacc(module=self, errorlog=logging, start='term',
debug=False, optimize=True, picklefile=os.path.join(parser_folder, "script_parser.pickle"))
# rename the parsing method (can't name it directly parse with lru_cache due to ply checking)
self.parse = self.t_parse
评论列表
文章目录