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 x th-to-top stack item.
|
; |
Pops v and x . Assigns x th-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