FACTOID # 159: Taiwan and Luxembourg are the only countries in the world where the mobile phones outnumber the people!
 
 Home   Encyclopedia   Statistics   Countries A-Z   Flags   Maps   Education   Forum   FAQ   About 
 
 
 
WHAT'S NEW
RECENT ARTICLES
More Recent Articles »
 

SEARCH ALL

FACTS & STATISTICS    Advanced view

Search encyclopedia, statistics and forums:

 

 

(* = Graphable)

 

 


Encyclopedia > PATH programming language

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. Among some hackers and hobbyists, an esoteric programming language is a programming language designed as a test of the boundaries of computer programming language design, as a proof of concept, or as joke, and not with the intention of being adopted for real-world programming. ... Brainfuck is a minimalistic computer programming language created by Urban Müller around 1993. ... Befunge is a stack-based esoteric programming language which differs from conventional languages in that programs are arranged on a two-dimensional grid. ... In computer programming, an array, also known as a vector or list, is one of the simplest data structures. ... Brainfuck is a minimalistic computer programming language created by Urban Müller around 1993. ...

Contents

Sample code

The following code causes the computer terminal to beep by outputting the ASCII character 0x07 (BEL). There are 95 printable ASCII characters, numbered 32 to 126. ...

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

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
v If 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

SNUSP (for SNUSPs Not Unix, but Structured PATH) is a recast of the Brainfuck programming language into a Befunge-like two-dimensional style, inspired by its predecessor — PATH. Compared to PATH, the SNUSP instruction set stays closer to the Brainfuck language by retaining all instructions related to memory (+, -, > and... 2L (the Two Language) is an esoteric programming language derived loosely from the PATH programming language and Brainfuck. ... Brainfuck is a minimalistic computer programming language created by Urban Müller around 1993. ... Among some hackers and hobbyists, an esoteric programming language is a programming language designed as a test of the boundaries of computer programming language design, as a proof of concept, or as joke, and not with the intention of being adopted for real-world programming. ...

External links

  • The official PATH website (http://pathlang.sf.net/)
  • A PATH interpreter written in PHP (http://alx2002.free.fr/)

  Results from FactBites:
 
The History of Computer Programming Languages (2072 words)
Computer languages were first composed of a series of steps to wire a particular program; these morphed into a series of steps keyed into the computer and then executed; later these languages acquired advanced features such as logical branching and object orientation.
Visual Basic is often taught as a first programming language today as it is based on the BASIC language developed in 1964 by John Kemeny and Thomas Kurtz.
The first major languages were characterized by the simple fact that they were intended for one purpose and one purpose only, while the languages of today are differentiated by the way they are programmed in, as they can be used for almost any purpose.
std.path - D Programming Language - Digital Mars (1093 words)
If a path separator was found, all the characters to its left are returned.
When the environment variable version is used, the path won't be modified if the environment variable doesn't exist or it is empty.
When the database version is used, the path won't be modified if the user doesn't exist in the database or there is not enough memory to perform the query.
  More results at FactBites »


 
 

COMMENTARY     


Share your thoughts, questions and commentary here
Your name
Your comments

Want to know more?
Search encyclopedia, statistics and forums:

 


Lesson Plans | Student Area | Student FAQ | Reviews | Press Releases |  Feeds | Contact
The Wikipedia article included on this page is licensed under the GFDL.
Images may be subject to relevant owners' copyright.
All other elements are (c) copyright NationMaster.com 2003-5. All Rights Reserved.
Usage implies agreement with terms, 0825, e