Ags

From Esolang
Jump to navigation Jump to search

Ags Is An Esoteric programming language Created by User:Buckets in 2021.

Commands Instructions
PUSH m It will Push the Next item Given To the program To stack m.
"" Within the Quotes is a String and Will Be given To the program.
$n This Will shuffle the Top string randomly To The top of Stack n.
<o,p> If the Top of the Stack between Stack o and Stack p Are equal, Goto The previous ?.
? Noop.
>q,r< If The top String of Stack q is Anywhere in Stack r, Goto The previous ?.
[s->t] Pushes the Length of the top String in Stack s into Stack t.
u! From the Top of stack u, It Will be Replaced by its Factorial.
(v) Push the Input string Into Stack v.
)w( Print the Top String in stack w.
[x] Print All the strings In Stack x.
-y-> This will Goto The next -y-> and y Is An identification Number.
+z Pushes A value, Each time This is Used again, That Value will be Increased By one, The z represents Which Stack that goes to.

Cat Program:

?(a))a(<a,a>

"Hello, World!" Program:

PUSH a "Hello, World!" )a(

Truth-machine Program:

+a (b) -0->?-0-><a,b>
+a ?)a(<a,a>
-0->)a(

Factorial Program:

(a) a! )a(