From 2fea6c4c80ec0c00e60cb8ff3af281e0bf1bea3a Mon Sep 17 00:00:00 2001 From: codeboss <2422523675@qq.com> Date: Sun, 14 Jul 2024 18:18:14 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E5=88=9D=E5=A7=8B=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/StoryTools.iml | 8 +++ .../inspectionProfiles/profiles_settings.xml | 6 ++ .idea/misc.xml | 7 ++ .idea/modules.xml | 8 +++ .idea/vcs.xml | 6 ++ .idea/workspace.xml | 69 +++++++++++++++++++ entry.py | 8 +++ parse/__init__.py | 0 parse/ast_load.py | 14 ++++ 9 files changed, 126 insertions(+) create mode 100644 .idea/StoryTools.iml create mode 100644 .idea/inspectionProfiles/profiles_settings.xml create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/vcs.xml create mode 100644 .idea/workspace.xml create mode 100644 entry.py create mode 100644 parse/__init__.py create mode 100644 parse/ast_load.py diff --git a/.idea/StoryTools.iml b/.idea/StoryTools.iml new file mode 100644 index 0000000..d0876a7 --- /dev/null +++ b/.idea/StoryTools.iml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/inspectionProfiles/profiles_settings.xml b/.idea/inspectionProfiles/profiles_settings.xml new file mode 100644 index 0000000..105ce2d --- /dev/null +++ b/.idea/inspectionProfiles/profiles_settings.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..db8786c --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,7 @@ + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..ad62638 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml new file mode 100644 index 0000000..f003f87 --- /dev/null +++ b/.idea/workspace.xml @@ -0,0 +1,69 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1720947658776 + + + + \ No newline at end of file diff --git a/entry.py b/entry.py new file mode 100644 index 0000000..baa955a --- /dev/null +++ b/entry.py @@ -0,0 +1,8 @@ +from PyQt5.QtWidgets import QWidget, QApplication +from sys import argv + + +app = QApplication(argv) +win = QWidget() +win.show() +app.exec() \ No newline at end of file diff --git a/parse/__init__.py b/parse/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/parse/ast_load.py b/parse/ast_load.py new file mode 100644 index 0000000..2d6a19d --- /dev/null +++ b/parse/ast_load.py @@ -0,0 +1,14 @@ +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 +