Xaxa

From Esolang
Jump to navigation Jump to search

Xaxa is a language derived from BF made by User:ChuckEsoteric08.

Commands

Command Meaning
> move pointer to the right and increment cell under the pointer
- decrement cell under the pointer
< move pointer to the left
? skip all commands until next ! if zero
^ back to command n, where n is value of cell under the pointer
. output cell
, input number and store it in cell

Examples

Infinity loop

>^

Cat program

The following program provides an infinitely repeating cat program. Please note that upon each iteration a new cell is appended to the program's memory, thus incurring upon it the contingency to exhaust the executing machine's storage.

,.>^

Truth-machine

The source code below realizes a truth-machine:

,?><>-.<>^!

Interpreter

  • Common Lisp implementation of the Xaxa programming language.