positionally

1.0.3 • Public • Published

Positionally

Positionally is a 2d language in which only the presence and lack of commands matter. What command is executed depends on the instruction pointer's location.

Commands

//<v>v\\
/012345\
>6789&|^
^+-*%d@<
>?.,:"$v
v()~{};<
\=sjpgS/
\\^<^>//

<>^v\/ - What you'd expect 0-9 - single numbers +-*%d - Maths operations @ - an IP starts here ? - Take input (-1 at EOF, but cycling) . - Print as char , - print as num : - dup " - stringmode (record nonspaces until next at pos) $ - swap () - less/greater ~ - pop {} - shift left/right ; - Terminate IP = - Equal? s - Skip next op if nonzero j - Pop two numbers and jump p - Pop two numbers and an ord and put char g - Pop two numbers and get char at point S - Unconditionally skip next instruction &| - push/pop global stack

Readme

Keywords

Package Sidebar

Install

npm i positionally

Weekly Downloads

1

Version

1.0.3

License

ISC

Unpacked Size

8.7 kB

Total Files

4

Last publish

Collaborators

  • chunkybanana