User:Unname4798/Infinite commands: Difference between revisions
Jump to navigation
Jump to search
Unname4798 (talk | contribs) No edit summary |
Unname4798 (talk | contribs) No edit summary |
||
| Line 4: | Line 4: | ||
ask - asks the user a question and pushes the answer to the stack | ask - asks the user a question and pushes the answer to the stack | ||
say - prints the answer to the last question (discontinued, use ask together with print) | say - prints the answer to the last question (discontinued, use ask together with print) | ||
pentagon - | pentagon - pushes 666 | ||
== Examples == | == Examples == | ||
=== Hello World === | === Hello World === | ||
print | print | ||
"Hello, world!" | "Hello, world!" | ||
Revision as of 09:29, 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, otherwise, print the top value of the stack and pop it) ask - asks the user a question and pushes the answer to the stack say - prints the answer to the last question (discontinued, use ask together with print) pentagon - pushes 666
Examples
Hello World
print "Hello, world!"