Trance

From Esolang
Jump to navigation Jump to search

Trance is an interpreted language that only has 2 replacement commands.

Syntax

1: Replace all inputted 0's to 1's.
0: Replace all inputted 1's to 0's.

Functionality

After a command is executed in the interpreter, the initial input is changed accordingly.

EXAMPLE

Initial input

010010101000010010000000100000010000010000010010001001001

Command

1

Output (0s from initial input turn to 1)

111111111111111111111111111111111111111111111111111111111

Note that while it is possible to write multiple commands, there is no use in writing more than one. After one command, all bits will have turned to either a 0 or a 1.