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