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

Examples

Unary increment

A*~
A is the input

Hello, World!

Employing the combined reversal and concatenation operator ^, this program produces the message Hello, World!:

olleH^, World\!

Grouping

A trisulc of examples' adduction shall be committed to the telos of the grouping construct's causata in a program, actuated via a (…) bracing.

This program generates the string ottoto:

ot*(to-ot)*to

constrasted with the otto sequence replicator in:

ot*to-ot*to

and a specimen producing a single underscore (_):

(ot*to)-(ot*to)

Interpreter

  • Common Lisp implementation of the Texter programming language.