Teleport

From Esolang
Jump to navigation Jump to search

Teleport is a 2-dimensional esoteric language created by User:Infinitehexagon that changes direction in 2 areas; left and right(the default direction is right) and uses a portal to change lines.

Syntax

All programs start at > and end with v. Here is an example;
>(your program)v
A program does not have to start with >, but it has to start at the top left of the program. If a program does not end with a v, then the program is infinitely running until it is halted with a 3.

Portals

Portals are labeled with certain characters with the same ID, such as an uppercase and lowercase character being a portal. Different portals cant have the same characters used or the same character at the different location will go to the first receiver portal.

Letter Portals

a and A have the same ID, which the lowercase is the transmitter portal and uppercase is the receiver portal.

          
 A111b    
>B a      

Instruction

Instruction Description
1 increment the nearest portal's accumulator by 1
2 decrement the nearest portal's accumulator by 1
3 Halt the program and output the nearest portal's accumulator when accumulator is 0
4 Input a decimal value into a portal's accumulator
5 Square the value of a portal's accumulator
6 Change the direction (default is right)

Cat program (5x2)

Ab---
>B43a

Truth machine (4x1)

4B3b

Hello world

A111111111111111111111111111113b-----
||-----------------------------------
||-----------------------------------
||-----------------------------------
||-----------------------------------
||-----------------------------------
||-----------------------------------
||-----------------------------------
||-----------------------------------
dE1113v-------------------f------C6--
DeBA11111113----------------------c--
>111552222222223a--------------------