Vertical

From Esolang
Jump to navigation Jump to search

Vertical is an esoteric programming language made to be unreadable by User:Deppong that uses only vertical characters, and has a single stack as well as a single register.

Language overview

The code is interpreted very similarly to Brainfuck in that it only accepts Vertical acceptable characters and ignores all other characters int the .vrt file. Vertical uses a single stack, and a single register to process the follow commands:

Command Function
l Push register to the stack
I Pop from stack
1 Increment register
| Decrement register
) Reset register (to zero)
[ Increment top value of stack
] Decrement top value of stack
T Swap the top 2 values of the stack
/ Start of loop
\ Jump to corresponding loop start while the value at the top of the stack is not zero
! Print the top value of the stack as ASCII char
( Save input of one char to the register

Examples

Hello World!

Hello World in vertical:

11111 11111l)
1111 1111l)
/
    1111
    ]
\
1l)TI

11111 11111l)
/
    11111 11111
    ]
\
lTI
1111 1111l
111 111l
|||l
||||||||||||||||||||||||l)
1111 1111l)
/
    1111
    ]
\
l)TI
11111 11111l)
/
    11111 11111
    ]
\
11111111111lTI
|||ll
|||||||l
|||||||||||||||||||||||||||||l)

!I!I!I!I!I!I!I!I!I!I!I!I!

Hello world without any formatting:

1111111111l)11111111l)/1111]\1l)TI1111111111l)/1111111111]\lTI11111111l111111l|||l||||||||||||||||||||||||l)11111111l)/1111]\l)TI1111111111l)/1111111111]\11111111111lTI|||ll|||||||l|||||||||||||||||||||||||||||l)!I!I!I!I!I!I!I!I!I!I!I!I!

Cat

(l!/(l!\

External resources