def __init__(self):
self.lex = TDXLex()
self.lex.build()
self.tokens = self.lex.tokens
self.literals = self.lex.literals
self.parser = yacc(module = self,
start = 'tu_e',
debug = False
)
self.attr_re = re.compile(r'(LINETHICK[1-9])|STICK|VOLSTICK|LINESTICK|CROSSDOT|CIRCLEDOT|POINTDOT|DRAWNULL|DOTLINE|NODRAW|COLORSTICK')
self.color_re = re.compile(r'COLOR[0-9A-Z]+')
评论列表
文章目录