Texter

From Esolang
Jump to navigation Jump to search

Texter uses text to code

Commands

a*b

concatenates a and b, if a was ab and b was c, it would result in abc

a/b

remove instances of b in a, if a was abc and b was bc, it would result in a

!a

reverses the order of the letters in a, if a was abc, the result would be cba

\a

escapes a, if a is a symbol, escape it, else do nothing to a, if a was *, it would result in * as a text, not a symbol

a^b

reverses a and concatenates a and b, if a was ab and b was c, the result would be bac

a=b

if a and b are the same, turn it into a, else turn it into _, if a was a and b was a, it would result in a

a-b

if a and b are not the same, turn it into a, else turn it into _, if a was a and b was a, it would result in _

a>b

if a is _, turn it into b, else keep it as a, if a was _ and b was abc, it would result in abc

a<b

if a is not _, turn it into b, else keep it as a, if a was _ and b was abc, it would result in _

(a)

group a for no ambiguity

Unary increment

A*~
A is the input