Rec+
Jump to navigation
Jump to search
Rec+ is a derivative of Rec that tries to make Rec easier to program in.
Commands
| Command | Behavior |
|---|---|
123 |
Push number. |
+ |
Addition. |
* |
Multiplication. |
_ |
Negate; Pops x, pushes -x.
|
= |
Pops x, pushes x == 0.
|
: |
Pops x, pushes xth-to-top stack item.
|
; |
Pops v and x. Assigns xth-to-top stack item to v.
|
[ ... ] |
Infinite loop; executes ... forever.
|
^ |
Pops x. If x != 0, break out of innermost [ ... ] loop.
|
Stack operations
Pop nonzeros until a zero value
[0:=^[^]]
Examples
Computational Class
todo