def __init__(self, dictionary=None):
self._get_term = partial(term, dictionary=dictionary)
# Build the lexer and parser
self.lexer = get_lexer()
self.parser = yacc.yacc(module=self, errorlog=logging, start='proposition',
debug=False, optimize=True, picklefile=os.path.join(parser_folder, "ieml_parser.pickle"))
self._ieml = None
评论列表
文章目录