User:Unname4798/Infinite commands: Difference between revisions
Jump to navigation
Jump to search
Unname4798 (talk | contribs) Please, don't remove this page! |
Unname4798 (talk | contribs) Because I cannot register on Esolang wiki, because the CAPTCHAs are too hard. |
||
| Line 1: | Line 1: | ||
Infinite commands | Infinite commands is a programming language with (almost) infinite commands. Anyone can add commands. | ||
== Commands == | == Commands == | ||
print - prints a string (the string is next command) | print - prints a string (the string is next command) | ||
Revision as of 09:23, 8 July 2024
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")