a=ab=bc=cd=d!

From Esolang
Jump to navigation Jump to search

a=ab=bc=cd=d! is an esolang designed for the easy creation of esolangs named after the few, static commands they possess. Every output is automatically formatted as a wikipage.

Commands

Command Output
A delimiter.
= Create a new command named after the sequence on the left that corresponds to the sequence on the right, defined by the outputs.
a Set the current accumulator to the amount of a's after this one if it is more than one. If this is the only a, increment.
a! Decrement instead.
a!! Reset instead.
b!b Add a new branching condition that corresponds to when the accumulator is equal to as many b's on the left side. The amount of b's on the right side is an index.
c Output a character corresponding to the current accumulator.
d When on the left side of an equals sign, divert the right side to the next d. When on the right side, skip or jump to the current diverted d. More d's allow different diversions.
ab Follow the branching condition corresponding to the amount of b's if the accumulator equals what was set.
bc Take input, and store it in the current accumulator. Follow the branching condition corresponding to the amount of b's if the accumulator equals what was set.
cd Run the next diversion of the same index and return the last outputted character to the current accumulator.

An example program is then defined after Example: with the commands you defined. All commands defined must be a part of the name of the program you are creating.

Example

Truth Machine

Name: Truth Machine

aa bc d !b aaa a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a c a!! = aaa a!! aa a!! a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a !b aa c aaa ab d aa a!! a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a c

Example: T