|
from lxml import etree
|
|
|
|
|
|
class ast_parse():
|
|
def __init__(self, ast_path: str):
|
|
self.ast_path = ast_path
|
|
ast_file = open(ast_path, "rt")
|
|
ast_text = ast_file.read()
|
|
self.ast_inst = etree.XML(ast_text)
|
|
pass
|
|
|
|
def generate_time(self)-> str:
|
|
self.ast_inst.xpath
|
|
|