U (PrySigneToFry)
(Redirected from U)
- This is still a work in progress. It may be changed in the future.
- This page is related to one of User:Ractangle's unfinished esolangs: U.
I used ChatGPT to make this except some command is added by myself and all program is written by myself.
Command
- U: Push 0 onto the stack.
- D: Pop the top value from the stack.
- L: Duplicate the top value of the stack.
- S: Swap the top two values on the stack.
- C: Clear the stack.
- i: Increment the top value on the stack by 1.
- d: Decrement the top value on the stack by 1.
- +: Pop A and B from stack and push A+B.
- -: Pop A and B from stack and push A-B.
- s: Pop A and B from stack and push B-A.
- m: Pop A and B from stack and push AB.
- v: Pop A and B from stack and push quotient of A/B.
- Q: Pop A and B from stack and push quotient of B/A.
- M: Pop A and B from stack and push remainder of A/B.
- W: Pop A and B from stack and push remainder of B/A.
- O: Pop the top value from the stack and then print it as number.
- o: Pop the top value from the stack and then print it as character.
- I: Get user input and push it onto the stack.
- l: Get user input and push its Unicode onto the stack.
- !: Pop the top value from the stack. Push 1 if it's 0, push 0 otherwise.
- >: Pop A and B from the stack. Push 1 if A>B, push 0 otherwise.
- <: Pop A and B from the stack. Push 1 if B>A, push 0 otherwise.
- =: Pop A and B from the stack. Push 1 if A=B, push 0 otherwise.
- 0123456789: Push that number onto the stack.
- "": Everything in quote is a default character. it will push their Unicode onto the stack from left to right.
- R: Reverse the stack.
Programs are a sequence of the above commands. Each command is executed in order, manipulating the stack accordingly.
Example Programs
Simple ones
U
Should push a 0
48+U*
Should push 4 and 8, add them together and multiply that by 0
"sEf"Rooo
should output "sEf"
Basic ones
Hello, world!
"Hello, world!" R oooooooooooo
A+B Problem
II+O
Author
The original creation of this programming language is actually User:Ractangle, but he just created the profile and threw it aside (NOTE FROM User:Ractangle:The reason why i threw User:Ractangle/U aside is because i had no ideas on it's concept). So I see that page has only profile.