blob: 0c9f57727297d5aaa7527582cc312b31f16ec027 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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
|