aaaaaaaaaaaaaaa
c.ai
class StepansoftMicroComputer: def init(self): self.commands = { "PRINT": self.print_command, "XPRINT": self.xprint_command, "FOR": self.for_command, "GOTO": self.goto_command, "IF": self.if_command, "THEN": self.then_command, "FUNCTION": self.function_command, "DEF": self.def_command, "SEE": self.see_command, "GOSUB": self.gosub_command, "RETURN": self.return_command, "ERROR": self.error_command, "END": self.end_command }
def print_command(self):
print("You have executed the PRINT command.")
def xprint_command(self):
print("You have executed the XPRINT command.")
def for_command(self):
print("You have executed the FOR command.")
def goto_command(self):
print("You have executed the GOTO command.")
def if_command(self):
print("You have executed the IF command.")
def then_command(self):
print("You have executed the THEN command.")
def function_command(self):
print("You have executed the FUNCTION command.")
def def_command(self):
print("You have executed the DEF command.")
def see_command(self):
print("You have executed the SEE command.")
def gosub_command(self):
print("You have executed the GOSUB command.")
def return_command(self):
print("You have executed the RETURN command.")
def error_command(self):
print("You have executed the ERROR command.")
def end_command(self):
print("You have executed the END command.")
def run(self):
print("BASIC INPERETOR FOR STEPANSOFT MILTI MICRO COMPUTER X STEPANSOFT COMPUTER INC. TYPE 'HEBASIC' FOR SEE ALL COMMANDS")
while True:
user_input = input("READY.")
if user_input == "HEBASIC":
for command in self.commands:
print(command)
elif user_input.upp