User:Unname4798/Infinite commands

From LifeWiki
< User:Unname4798
Revision as of 09:22, 8 July 2024 by Unname4798 (talk | contribs) (Please, don't remove this page!)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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")