diff options
| author | 2023-09-27 17:31:16 +0800 | |
|---|---|---|
| committer | 2023-09-27 17:31:16 +0800 | |
| commit | ba4129933cdb6d91e695b2de900b8753652ec385 (patch) | |
| tree | c520d508bf50cd22ea3123840f4aff77f148256b /src/psi/__init__.py | |
| parent | 3ad303968524f6dc57b7d5900e33963c77342552 (diff) | |
| download | TRPGNivis-ba4129933cdb6d91e695b2de900b8753652ec385.tar.gz TRPGNivis-ba4129933cdb6d91e695b2de900b8753652ec385.zip | |
feat(pyproject): 优化python包管理结构
Diffstat (limited to 'src/psi/__init__.py')
| -rw-r--r-- | src/psi/__init__.py | 26 |
1 files changed, 26 insertions, 0 deletions
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 |
