Typespam

From Esolang
Jump to navigation Jump to search

Typespam is a language created by TheZipCreator. It's a cell-based language similar to Brainfuck but it has some important changes.

1. The tape storing the cells is called the "chain" not the tape.

2. The chain doesn't store integers, instead it stores instances (Explanation at here)

3. The loops work differently they aren't really "loops".

Commands

Command Description
_ Initialize the instance under the pointer
^ Move up the chain
v Move down the chain
c Set the instance to a char
i Set the instance to an integer
{ Set the instance to the char/integer after this command
| Set a marker with the name of the next character in the file
} Jump to the pointer with the name of the next character in the file if the instance under the pointer is nonzero
- Display the value of the currently selected instance
# Get one key of input and put it into the current instance

Instances

An instance is a character or an integer.

Examples

Hello World

_c {H-{e-{l--{o-{ -{W-{o-{r-{l-{d-

Cat program

The following implements an infinitely repeating cat program using markers:

_ c |A #- }A

Interpreter

  • Common Lisp implementation of the Typespam programming language.

Compiler

Not finished yet. Will be soon.