ABCstr

From Esolang
Jump to navigation Jump to search

ABCstr is an esolang by User:ChuckEsoteric08 inspired by Novice.

Specification

ABCstr uses string as memory. Initial string is "abc".
There are three commands:

x=y

If there is instance of x in the string replace it with y, else goto label x

x-y

Works the same but also outputs x if there is x

:x

Works the same but will replace with user input. It is the only string-rewriting language created by User:ChuckEsoteric08 that has input

Examples

Hello, World!

a=Hello, World!
a
Hello, World-a

Computational class

The language is Turing-complete because there is Cyclic tag interpreter written in it:

a=def
a
:f
f
b=gh
b
:h
h
-
g1
eg=g
gc=g
c=c
gc
d=de
-=-
eg
e;=;e
g0-g
g0
g1-g
-=-
;e
e0=0e
g1=g1
c=0c
-=-
e0
e1=1e
g1=g1
c=1c
-=-
d
c
e1