marb

From Esolang
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

Examples

Infinite loop

\/

Truth-machine

+nn
\?n
-^[
[ .
. =
_

Implementation

https://github.com/Thevitebsk/Thewierd/tree/main/marb