marb
Jump to navigation
Jump to search
marb is the creators second 2D language based on Lean Mean Bean Machine which it self is inspred by Plinko, created by User:Ractangle
Syntax
Symbol | Action |
---|---|
\ | move pointer right |
/ | move pointer left |
[ | Push the accumulator to stack |
+ | increment the accumulator |
- | decrement the accumulator |
[ | append the accumulator to the stack |
_ | ends the program |
^ | pops the top value on the stack and check if it's not 0. If it is, move pointer right. Else move pointer left |
. | Outputs the top of stack |
? | Appends interger input to stack |
n/" " | NOP |
= | Jumps to the top. If the _ command is in the y-axis of this command, the marble will jump to 1 line below the _
|
Examples
Infinite loop
\/
Truth-machine
+ \?_ -^[ [n. .n= _