FAGI

From Esolang
Jump to navigation Jump to search
FAGI
Designed by Lucaz37
Appeared in 2025
Memory system Both Cell-based, Register-based and Stack-based
Dimensions one-dimensional
Computational class Turing complete
Major implementations Lua
File extension(s) .fagi, .fg
This is still a work in progress. It may be changed in the future.

F.A.G.I. (pronounced either F A G I, faaj, /ˈfa.dʒi/), also known as Fagi Assisted General Interface, is an esolang created by Lucaz37.

Overview

FAGI only has 3 tokens:

fagi
pasuni
animale
Command Description
fagi fagi Move the pointer to the left
fagi pasuni Move the pointer to the right
fagi animale fagi Increment the memory cell at the pointer
fagi animale pasuni Decrement the memory cell at the pointer
pasuni fagi Output the character signified by the cell at the pointer
pasuni pasuni Input a character and store it in the cell at the pointer
pasuni animale fagi Set the register to the value of the memory cell
pasuni animale pasuni Set the memory cell to the value of the register and clear the register
animale fagi Push the memory cell to the stack
animale pasuni Pop the stack and set the memory cell to the value
animale animale fagi Duplicate the top value on the stack
animale animale pasuni Add the 2 top values on the stack together
animale animale animale fagi Subtract the 2 top values from the stack
animale animale animale pasuni Performs multiplication on the 2 top values from the stack
animale animale animale animale fagi Performs integer division on the top value from the stack and the second top value
animale animale animale animale pasuni Jump past the matching animale animale animale animale pasuni if the cell at the pointer is 0, else loop back
animale animale animale animale animale End of loop

It is based off an inside joke between Lucaz37 and his friend Andy (Andreas Pana):

grup de fagi pășuni animale: ursul, coțofană de fagi-fagi, cerb căprioară fagi: fagi: capră neagră fag...: fagi - de fagi. cocoșul solurile de munte: sunt supțiri și asigură fagi la dezfloresc, dezvoltarea copacilor Copacilor B pe fage cresc: păduri de foioase: fagi stejari, stejari, salcâmul: fagi - fag: fagi.,...f struguri ciobani: fagi, fagi: fag - fagi. Lupi: vulpi, capre. viezuri și fagi: fag - fagi < la fagi ] fagi fetili: pentru cultivarea pomi: fructiferi... fagi - fag:fagi.,: la câmpii, C vegetația și C diferiti fagi. >> Bogat în minerale, solul. fag.> fagi: fagi - fag =+ fagi... pe la Ialomița animalele sălbatice: râs, iepure, arici:; fagi, șoareci fagi ++ C fagi - fag >:: fag< fagu castani. Umed, ...., !? fag? <fagi .,,,></fagiL fagi< cresc fagi:><=fagi= papura> și fagi umezi fagi Delta Dunării. Fagi Fagi, fagi<?<<<: fagi pești .Fagi? Fagi! de mare întindere situată între e.,, f <=+ c C,>::; fagi fagi În mare fagi.,,, taci acum Fagi! (198 de specii) păstrugă: fagi. animale:<>/\!=+ fag: fagi.....!

Comments are represented as --, either on an empty line or after a command

-- this is a comment
fagi fagi -- this is a comment after a command
-- you cannot put comments before commands for they will be read as comments

Examples

A cat program:

pasuni pasuni
pasuni fagi

Sound:

fagi animale fagi
fagi animale fagi
fagi animale fagi
fagi animale fagi
fagi animale fagi
fagi animale fagi
fagi animale fagi
pasuni fagi