Pathfollow

From Esolang
Jump to navigation Jump to search

Pathfollow is an esolang invented by User:AnotherUser05.

Commands

@ start of IP.
| IP follows this vertically.
- IP follows this horizontally.
+ corner turn.
< one way (left).
v one way (down).
> one way (right).
^ one way (up).
$ start a new value.
0-9 add to the end of the current value.
; get an input and add it to the value.
: output the current value and start a new  value.
. output the current value as an ASCII  character and start a new value.
? all checks are branched out of this using one ways, and if the current value is equal to a number 
that’s branching out, then go there. if none of them are true, then follow the path with no one ways.
x terminate the program.

Examples

Hello, World! Program

@-1-0-4-.-1-0-1-.-1-0-8-.-1-0-8-.-1-1-1-.-+
                                          |
  +-0-1-.-4–1-1-.-1-1-1-.-7-8-.-2-3-.-4-4-+
  |
  +-8-.-1-0-0-.-3-2-.-x

Truth Machine

  @
  |
  ;
  v
x-?>0-0-:-x
  v
  1
  |
  1<+
  | |
  : |
  | |
  +-+

Cat Program

@-;-:-x

Not Finite Loop

@
|
+<+
| |
+-+