User:Unname4798/Infinite commands: Difference between revisions

From LifeWiki
Jump to navigation Jump to search
Unname4798 (talk | contribs)
No edit summary
Unname4798 (talk | contribs)
No edit summary
Line 1: Line 1:
Infinite commands is a programming language with (almost) infinite commands. Anyone can add 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, otherwise, print the top value of the stack and pop it)
  print - prints (the string or the number is the 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
  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)

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 (the string or the number is the 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!"