new file: HASHBASE/operators/add.py new file: HASHBASE/operators/divide.py new file: HASHBASE/operators/equal.py new file: HASHBASE/operators/higher.py new file: HASHBASE/operators/lower.py new file: HASHBASE/operators/multiply.py new file: HASHBASE/operators/remainder.py new file: HASHBASE/operators/subtract.py new file: HASHBASE/statements/create.py new file: HASHBASE/statements/getatt.py new file: HASHBASE/statements/if.py new file: HASHBASE/statements/newobj.py new file: HASHBASE/statements/setatt.py modified: PCPL/interpreter.py modified: hashengine.py deleted: langsys/__pycache__/__init__.cpython-311.pyc modified: langsys/lang/de_DE.LAN modified: langsys/lang/en_EN.LAN modified: main.py
19 lines
654 B
Python
19 lines
654 B
Python
class main():
|
|
def __init__(self, interpreter):
|
|
self.interpreter = interpreter
|
|
|
|
def IND(self, index):
|
|
print("Indexing is not supported with this instruction")
|
|
return (1)
|
|
def EXEC(self, params):
|
|
print("Execution is not supported with this instruction")
|
|
return (1)
|
|
def ATR(self, target):
|
|
return (0, getattr(self.interpreter.vars[target[0]], target[1]))
|
|
def STAT(self, params):
|
|
print("Statements are not supported with this instruction")
|
|
return (1)
|
|
def OP(self, arg1, arg2):
|
|
print("Operations are not supported with this instruction")
|
|
return (1)
|