| Jun | JUL | Aug |
| 21 | ||
| 2012 | 2013 | 2014 |
COLLECTED BY
Collection: Wide Crawl started April 2013
Path Language
+ - increment the current memory cell
- - decrement the current memory cell
} - go to the next memory cell
{ - go to the previous memory cell
, - input an ascii character from stdin into the current memory cell
. - output an ascii character from the current memory cell into stdout
/ - If going:
right, turn up
down, turn left
left, turn down
up, turn right
\ - If going:
right, turn down
down, turn right
left, turn up
up, turn left
^ - if current memory cell is not equal to 0, turn up
< - if current memory cell is not equal to 0, turn left
> - if current memory cell is not equal to 0, turn right
v - if current memory cell is not equal to 0, turn down
! - jump next symbol
$ - start here heading right
# - end here
any other character including spaces - do nothing
Some interpreters additionally have ] and [ which unconditionally redirect control flow right and left respectively. However, the author of PATH has asked that the name "PATH" be reserved for his original version, and that variants are given names of their own.
/<+>>-v-v-v-v-\ wiki
$>,!/> !\< v-v-v-v-v-v/
\>+<v>>{+{+{+{+{+{\ wiki
/<</\/.# }+}+}+}+/
/< !\++++++++++++++++++++++++\ wiki
\-v<.++++++++++++++++++++++++/
\++++/\/
Note: This program does not work with current versions of PATH due to important changes in the language, most notably that the functionality of the { and } symbols has been switched around, and that the ^ v < > symbols now branch when the current cell is not equal to zero instead it is equal to zero. This program here should probably be updated to reflect this.
EditText of this page
(last edited March 3, 2011)
or FindPage with title or text search