diff options
| author | 2024-02-25 12:00:16 +0800 | |
|---|---|---|
| committer | 2024-02-25 12:00:16 +0800 | |
| commit | e2c1c1911e117245551a612499d02eacabbbe5d8 (patch) | |
| tree | 91c98463bdc1397667ae8d13acb56d83ff347c6e /nivis-python/execution.py | |
| parent | 1199a75378efcaf756e2027ecc2530c6d97bc95c (diff) | |
| download | TRPGNivis-e2c1c1911e117245551a612499d02eacabbbe5d8.tar.gz TRPGNivis-e2c1c1911e117245551a612499d02eacabbbe5d8.zip | |
refactor: rename nivis-python to nivis
Diffstat (limited to 'nivis-python/execution.py')
| -rw-r--r-- | nivis-python/execution.py | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/nivis-python/execution.py b/nivis-python/execution.py deleted file mode 100644 index 09055cf..0000000 --- a/nivis-python/execution.py +++ /dev/null @@ -1,47 +0,0 @@ -from .parsers import Parser -from .interpreter import Interpreter - -__all__ = ["Execution"] - - -class Execution: - """ - A class representing the execution of Psi code. - - Args: - input: The input code to be executed. - - Returns: - None - - Example: - ```python - execution = Execution("print('Hello, World!')") - execution.execute() - ``` - """ - - def __init__(self, input): - """ - Initializes an Execution object. - - Args: - input: The input code to be executed. - - Returns: - None - """ - self.input = input - - def execute(self): - """ - Executes the input code. - - Returns: - The result of the execution. - """ - parser = Parser(self.input) - ast = parser.parse() - - interpreter = Interpreter(ast) - return interpreter.interpret() |
