Homunculus fallacy

From Esolang
Jump to navigation Jump to search

Homunculus fallacy is an esolang created by User:Yayimhere based on the commands 'a "a defined on the Emmental talk page.

Etymology

Homunculus fallacy gets its name from the fallacy of the same name, as its main command works as a sort of unlimited middle men.

Memory

Homunculus fallacy uses a queue. Do note however it still uses push and pop terminology.

Commands

Homunculus fallacy has the following commands:

Command Function
# push ascii NUL/0
0..9 pop top symbol, multiply by ten, and add 0..9 respectively
+ pop top two symbols of the stack, and add them together
;x Peek the top of the stack, and label its value N, then push the code that pushes the code that... ect. that pushes x, with 1 pushing the code that pushes x.
> Peek the front of the queue, and move forward that many commands, wrapping around the program.
! Pop front of queue and discard.
* Peek the whole queue, and insert it following the * command with the front symbol being the first one added.

Errors

Errors are not actually errors, and is instead just a way to halt

Tricks and tips

This is a short list, feel three to add to it.

To loop your program forever:

[program][code that pushes program length]>!