Yes.
Jump to navigation
Jump to search
Yes. is a programming language inspired by No..
Instructions
Yes.
- move pointer right 1 stepYeah.
- move pointer left 1 stepYes!
- add 1 to cellYeah!
- subtract 1 from cellYup.
- print cell as numberYup!
- input number into cellYup?
- if cell is 0 input character, else output characterYes?
- while cell is 0Yeah?
- end whileYes...
- push cell to stackYeah...
- pop stack and set cell to pop(Yup)
- pop 2 from stack, add, set cell[Yup]
- pop 2 from stack, multiply, set cell{Yup}
- pop 2 from stack, subtract 1st-2nd, set cell<Yup>
- pop 2 from stack, divide 1st/2nd, set cellYup...
- pop 2 from stack, modulo 1st%2nd (sign of 2nd), set cellNope.
- halt/quit (which one it does is implementation-dependent)Nope...
- Never Gonna Give You Up