User:Unname4798/Infinite commands
Jump to navigation
Jump to search
Infinite commands??? is a programming language with (almost) infinite commands. Anyone can add commands.
Commands
print - prints a string (the string is next command) ask - asks the user a question say - prints the answer to the last question pentagon - prints 666
Examples
Hello World
print Hello, world!
Interpreter
# as of pentagon
# one line at a time please
tenmp = ""
whar = ""
while True:
whar=input(">")
if whar=="print":
print(input(">"))
if whar=="ask":
print(input(">"))
tenmp = input(">")
if whar=="say":
print(tenmp)
if whar=="pentagon":
print("666")