PATH_programming_language PATH_programming_language

PATH programming language - Definition and Overview

PATH is an esoteric programming language derived from the Brainfuck language. Programs are arranged on a two-dimensional grid in a manner similar to the language Befunge. Slash and backslash characters are used to direct program flow up, down, left, and right, and "arrow" characters are used to branch program flow. Data is stored in an array of integers called "memory cells", a concept also borrowed from Brainfuck.

Contents

Sample code

The following code causes the computer terminal to beep by outputting the ASCII character 0x07 (BEL).

 /*****\   /*+*\   /!*/*!\  \     #
 !     +  //   \\     *     *     *
 /**$**/  *     *     *     *     .
 *        +-----+     +     +-----+
 *        *     *     *     *     *
 \        /     \     /     \     /

Instructions in PATH

$Start at this position, heading right
#End program execution
+Increment the current memory cell by one
-Decrement the current memory cell by one
}Change to the next memory cell
{Change to the previous memory cell
,Input a character and store the ASCII value in the current memory cell
.Output the character with the ASCII value in the current memory cell
/

If heading in direction:
    right, turn up
    down, turn left
    left, turn down
    up, turn right

\

If heading in direction:
    right, turn down
    down, turn right
    left, turn up
    up, turn left

^If the value of the current memory cell is not 0, turn up
<If the value of the current memory cell is not 0, turn left
>If the value of the current memory cell is not 0, turn right
vIf the value of the current memory cell is not 0, turn down
!Skip over the next character

Like in Brainfuck, all characters that are not a valid instruction are skipped over and ignored.

See also

External links

Example Usage of programming

msjathletics: Today commences 8-week programming cycle--new resistance training and base for run, bike, swim.... Looking forward to seeing my six-pack!
postsgoogle: Google Checkout Now Deals In Holiday Savings | programming Blog: It's the Monday after Thanksgiving / Black Friday,... http://bit.ly/5sRgka
WashDCTech_Jobs: New #job: Sharepoint Developer - Web Application Developer - Web Programmer - Top Secret - TS - programming — CyberCoders — Washington,...
Copyright 2009 WordIQ.com - Privacy Policy  :: Terms of Use  :: Contact Us  :: About Us
This article is licensed under the GNU Free Documentation License. It uses material from the this Wikipedia article.