From ba4129933cdb6d91e695b2de900b8753652ec385 Mon Sep 17 00:00:00 2001 From: 简律纯 Date: Wed, 27 Sep 2023 17:31:16 +0800 Subject: feat(pyproject): 优化python包管理结构 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/psi/__init__.py | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 src/psi/__init__.py (limited to 'src/psi/__init__.py') diff --git a/src/psi/__init__.py b/src/psi/__init__.py new file mode 100644 index 0000000..1c274e2 --- /dev/null +++ b/src/psi/__init__.py @@ -0,0 +1,26 @@ +"""Psi +@TODO 词法分析器 +@BODY 似乎要写的还蛮多的,所以先写几个TODO List +""" + +__all__ = ['psi'] + +from psi.execution import Execution + +class Psi: + def __init__(self, input): + self.input = input + self.execution = Execution(input) + self.result = None + + def execute(self): + self.result = self.execution.execute() + return self.result + + def get_result(self): + return self.result + + def set_input(self, input): + self.input = input + self.execution = Execution(input) + self.result = None -- cgit v1.2.3-70-g09d2