Infinite commands???

From Esolang
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 and puts in temp
say - prints temp variable 1
pentagon - prints 666
into - puts input into temp variable 1
inc - increments counter
dec - decrements counter
num - prints counter
swap - swaps temp variable 1 and 2
same - terminate program if temp variable 1 and 2 are the same
count - saves counter to temp variable 1
forevsay - prints temp variable 1 forever
forevprint - prints a string (next command) forever
homestarrunner - prints "hewo"
error - gives error (puts 0/0 in counter)
sevenbitlimit - puts 2^7 in counter
fizz - calculate fizzbuzz on counter and put it in temp varible 1
buzz - print fizzbuzz on counter
fizzbuzz - print fizzbuzz on counter and then increment
fizzbuzztoahundred - prints fizzbuzz to a hundred
fuzzbizz - set temp variable 1 to "fuzzbizz"
quine - print "quine"
vine - print "THIS IS NOT A QUINE"
eightbitlimit - puts 2^8 in counter
pythondebugshell - prints "added category"
multiply - multiplies temp variable 1 and 2 and stores the result in temp variable 1
divide - divides temp variable 1 and 2 and stores the result in temp variable 1
sixtynineiscool - does nothing at all
assign a b c - Assign b to a(Change the type of a to c.). If a doesn't exist then initialize a with value b and/or type c.
output a b - print(a, end = b) in Python.
input a - Input a string with prompt a. Returns a string.
type a b - Convert a to type c.
execpy a - Execute a in Python.
push a - Push a into stack.
pop a - Pop the stack top and store the value to a. If the argument a is not specified, then discard the stack top.
eval a - Evaluate the string a as Python expression.

Unimplemented commands (unofficial)

deadfish - Given an address, it will interpret that temp variable as Deadfish
subleq - Given an address, it will interpret that temp variable as Subleq
sixteenbitlimit - puts 2^16 in counter
thirtytwobitlimit - puts 2^32 in counter
sixtyfourbitlimit - puts 2^64 in counter
onethousandtwentyfourbitlimit - puts 2^1024 in counter
loop c j - Do j repeatly while condition c is true.
if c1 h1 elif c2 h2 ... else hsuccn - If-elif-else statement in Python.
source - Return the source code of the program. That is, works like sys.argV[0] in Python.
graham - Set the counter to G64. You should know what does G64 mean.
____________ - Macro all commands with underlines.

Examples

Hello World

print
Hello, world!

Or:

output "Hello, world!" "\n"

Cat

into
say

Ot:

output (input "") "\n"

Kiwiscript

print
kiwi

Truth-machine

into
say
same
forevsay

Or(longer):

assign x (convert (convert (input "") int) bool) bool
if (a == false) {print (convert a int) ""} else {loop (true) {print (convert a int) ""}}

Fizzbuzz to a hundred

fizzbuzztoahundred

Quine

quine

A slightly longer example:

quine
quine
quine

Alternated 2:

vine
output source ""

Alternated 3:

output source ""

Alternated 4:

assign a source string
print a ""

Not a quine

vine

Another slightly longer example:

fizz
inc
fizz
buzz
print
amogus

Interpreter

Interpreter at here.