diff options
| author | 2023-11-05 02:39:00 +0800 | |
|---|---|---|
| committer | 2023-11-05 02:39:00 +0800 | |
| commit | 57188fca203643f18409b0fa71d730d771faffed (patch) | |
| tree | cb0e0990ac030f5f0012640fd7c1707b5bde1156 /psi/__init__.py | |
| parent | f5e118d18af7f11854ddc34d1f6f07b48b125acd (diff) | |
| download | TRPGNivis-57188fca203643f18409b0fa71d730d771faffed.tar.gz TRPGNivis-57188fca203643f18409b0fa71d730d771faffed.zip | |
chore: add Token
Diffstat (limited to 'psi/__init__.py')
| -rw-r--r-- | psi/__init__.py | 73 |
1 files changed, 6 insertions, 67 deletions
diff --git a/psi/__init__.py b/psi/__init__.py index 330fcd3..b3e08df 100644 --- a/psi/__init__.py +++ b/psi/__init__.py @@ -3,71 +3,10 @@ @BODY 似乎要写的还蛮多的,所以先写几个TODO List """ -__all__ = ['psi'] - -from psi.execution import Execution - -class psi: - """ - A class representing a Psi object. - - Args: - input: The input value for the Psi object. - - Returns: - None - - Example: - ```python - obj = Psi("example") - ``` - """ - - def __init__(self, input): - """ - Initializes a Psi object. - - Args: - input: The input value for the Psi object. - - Returns: - None - """ - self.input = input - self.execution = Execution(input) - self.result = None - - def execute(self): - """ - Executes the Psi object. - - Returns: - The result of the execution. - """ - self.result = self.execution.execute() - return self.result - - def get_result(self): - """ - Retrieves the result of the Psi object. - - Returns: - The result of the execution. - """ - return self.result - - def set_input(self, input): - """ - Sets the input value for the Psi object. - - Args: - input: The new input value. - - Returns: - None - """ - self.input = input - self.execution = Execution(input) - self.result = None - +__all__ = ['psi', 'Exception', 'interpreter', 'lexer', 'Parser'] +from .psi import psi +from .execution import Execution +from .interpreter import Interpreter +from .lexer import Lexer +from .parsers import Parser
\ No newline at end of file |
