Apysi

From Esolang
Jump to navigation Jump to search

Apysi Is an esoteric Programming language created by User:Buckets in 2021, but Created before Beef.

Commands Instructions
+ Push the Absolute difference Between the Top three Values( via The Absolute of the Difference of Maximum of The top Three Values Subtracted by The minimum Of The top three Values).
- Pop the top two Values and push The product of Them Plus the Two top Values.
* Pop the top two Values And replaces the Top Three Values with the Difference, The Absolute difference And the Sign being Flipped Difference.
/ Push 1 if the Top Two values When Added Are 0, but Push 0 if The top two values Are the Same, Else do Nothing.
% Pop the top Two values And push the Absolute Difference between the Top two values, but if The Second top Value is 0, push 0 instead.
! Push 0 then Pop the Top Two values then Push the Difference between The top two Values, Top - Bottom but if Bottom > Top, push 1.
_ If the Top value is 0, turn 90 degrees Clockwise.
| If the Top value is 0, Print the Second top Value in ASCII, Else, replace the Second top Value with An Input Value.
@ If the Top Value is 0, Print the Second Top value as A number but Only If it's One digit, If it Is not one Digit, Delete The first Digit From it, But If the Top value Is not 0, Replace the Second Top value With an Input Character in an ASCII value.
^ If the Top Value is 1, Replace it with 0.
< If the Top Value is 2, Replace it with 0.
> If the Top Value is 3, Replace it with 0.
v If The top value Is 0, replace It With 4.
2-9 Rotate the Top n values Right and n is Dictated By the Range between 2 and 9 This Command holds.
0 Toggle Between rotating it Right with Left And right Starting with Right.
$ Skip the next Command if the Top value is 2.
1 Replaces the Top value by Itself - 1.

Cat Program:

/^/v|1>@_
        v
        1
        1
        $
       __
        <
       __