Skip to content

Instantly share code, notes, and snippets.

@luihum
Created April 23, 2021 14:35
Show Gist options
  • Save luihum/4504863963fded4bb2fdb4aae92beb58 to your computer and use it in GitHub Desktop.
Save luihum/4504863963fded4bb2fdb4aae92beb58 to your computer and use it in GitHub Desktop.
AsciiDots reference card
.        dot
| -      path
\ /      turn
&        end
``       comment
< > v ^  rotate
+        cross
( )      bouncer
*        cloner
#5       dot value = 5
@3       dot id = 3
$        output:
             modifiers: _ (unterminated), a (ascii)
             'txt'      unbuffered 
             "txt"      buffered
             #          dot value
             @          dot id
?        input: 
             modifiers: a (ascii)
             #          dot value
             @          dot id
~        if bottom != 0 then rotate up
             modifiers: ! (if 0)
[OP]     OP horizontal by vertical (modifier: @ (id))
{OP}     OP vertical by horizontal (modifier: @ (id))
:        delete if dot value = 0 (modifier: @ (id))
;        delete if dot value = 1 (modifier: @ (id))
A        warp to A (if A is defined as warp)

Operations:
* multiply   + add        ^ exponent
- subtract   / divide     % modulo
& AND        o OR         x XOR
> greater    G greater/eq L less/eq
< less       = equal      ! unequal

Directives:
%$ABCD      warps = ABCD
%!l.dots l  import l.dots as l
%^X         library placeholder: X
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment