Drw

From Esolang
Jump to navigation Jump to search

Drw is a stack-based esolang with turtle output (and text but that is considered HIGH HERESY. also, it's currently unimplemented). Drawing inspiration from uiua and logo, It is meant to be a tool to help children (or other people) begin to think and program in a stack based model. It was created by user:Phidas because they thought it would be kinda cool.

instructions

implemented

Instruction Meaning
^ Move the the turtle forward
~ Turn the turtle right
. Duplicate the top of the stack
: Swap the top of the stack
p Pop the top stack value
+-*/% Add, subtract, multiply, divide or modulo respecivlly
[] Repeatedly execute whatever is between the two brackets, however many times are on top of the stack

unimplemented

See the github

examples

square

4[10^90~]

spiral

1 100[.^91~1+]

1 100[6[.^60~]2+]

Interpreters and other recourses