Aivr

From Esolang
Jump to navigation Jump to search

Aivr(, or AIVR, Which stands for Advanced Interactive Voice Responce) is an Esoteric programming language created by User:Buckets in 2020.

Commands Instructions
Say [] From within the Square brackets, It will Speak it.
{} From Within the curly Braces, It will Say the Variable's Stored number/String/Audio.
mOptions () From within the Parentheses, It will Speak it, Within the Text, Given to a minimum of 1 Option, to A Maximum of 12 Options.
input Input Option.
As m Receive The input Option as The variable m.
Goto n Go to Line n.
If o = p happens If the Variable o = p, then go to Then, Else, If not,.
Then, Noop.
If not, Noop.
u Go to Until q = r happens, loop:, Until q = r happens.
Until q = r happens, loop: Noop.
cOptions () From within the Parentheses, It will Speak it, but Records A compound Input , Within the text, It must Contain a Non-Numeric Option.
+s to t +s to t.
-u to v -u to v.
/w to x /w to x.
*y to z *y to z.
AI a "Deos ai stuff and stores it in a".
BEEP Produces A Beep Sound.
Start rec Start Recording.
End rec b End recording and stores it in b.
c to d Turns c into A String and stores It in d.
Call e Call the Number e.
Task f Do the Task f.
Call push Push the Caller's number.
Call pop Pop off the top Caller and call them.
Call number g The Caller's number of Times calling the program stored in g.
Highest to top The highest g's Caller is Moved to the top.
Set h as i Set the Variable h to i.
Out Hangs up The caller.
Time: j Set The Time to j, Forever.
\k to l Concatenate k to l.

"Hello, World!" Program:

Say [Hello, World!]

Cat program:

cOptions (*)
input i
Until j = * happens, loop:
input As j \j to i
u Say [{i}]

A+B Problem:

cOptions (*)
input i
Until j = * happens, loop:
input As j \j to i
u
cOptions (#)
input k
Until l = * happens, loop:
input As l \l to k
u +k to i Say [{i}]

Truth-machine Program:

mOptions (01)
input As i
If i = 1 happens
Then,
Say [1]
Goto 5
If not,
Say [0]