Ababab

From Esolang
Jump to navigation Jump to search

Syntax

a Increment pointer by 1.
aa Decrement pointer by 1.
b Next cell.
bb Previous cell.
ab Print current cell value as ASCII character.
aaa Multiply current cell and next cell.
aaaa Divide.
abbb Add.
abb Ask the user for an input.
aabb The users input.
abab() If statement, if true then skip to next line.

Examples

This prints "Hello world!"

1. a b a a bb aaa aaa aaa aaa aaa aaa a a a a a a a a ab
2. b b a a bb aaa aaa aaa aaa bb abbb aa aa aa ab
3. a a a a a a a ab ab a a a ab
4. b ab bb a a a a a a a a ab aa aa aa aa aa aa aa aa ab a a a ab
5. aa aa aa aa aa aa ab aa aa aa aa aa aa aa aa ab b a ab