esolang

FAGI

Three words, fagi, pasuni and animale, run a tape, a register and a stack.

Lucaz37, 2025 · Turing complete: yes · ●○○ easy · esolangs.org

Tested with 2 known programs · Test method

Run it

Expected: x

The idea

Lucaz37 created FAGI in 2025, from an inside joke with a friend. It is also known as Fagi Assisted General Interface. Every command is two to five of three words, so a program reads like a chant. Under the words is a brainfuck tape with two additions, a register and a stack with arithmetic.

The machine

WordsDoes
fagi fagi fagi pasuniMove left; move right
fagi animale fagi fagi animale pasuniAdd one; take one
pasuni fagi pasuni pasuniPrint the cell as a character; read one
pasuni animale fagiCopy the cell to the register
pasuni animale pasuniCopy the register to the cell and clear it
animale fagi animale pasuniPush the cell; pop into the cell
animale animale fagiDuplicate the top
animale animale pasuniAdd the two top values
animale animale animale fagiSubtract
animale animale animale pasuniMultiply
animale animale animale animale fagiDivide
animale animale animale animale pasuniStart a loop, skipped when the cell is 0
animale animale animale animale animaleEnd the loop, back while the cell is not 0

-- starts a comment. The Lua interpreter is not in the specification, so some things are chosen. Subtraction and division take the top value first, and division rounds down as Lua does. Cells and the stack hold integers without bound, and the end of the input reads as 0.

Example

The cat reads one character and prints it.

The cat reads one character and prints it.

Printing an A. Eight goes on the stack, is duplicated and multiplied to 64, and comes back into the cell, which then gets one more.

Expected: A

The other program, Sound, adds one seven times and prints character 7, the bell.

Patterns it teaches

Further

Also in Turing tarpits

Write your own in Run Convert a program from FAGI

Implementation

JavaScript interpreter, source and command line

A JavaScript interpreter, used in the browser and on the command line. Id: fagi.

Command line

shib run fagi -e 'pasuni pasuni
pasuni fagi' --input 'x'
shib manual fagi

Source

Module
langs/wiki/ports.js
Interpreter
langs/wiki/fagi.js

Docs: Kernel instructions · The .shib format · Command line · Adding a language

Source esolangs.org (CC0) · Edit on esolangs.org