Trifack
Jump to navigation
Jump to search
trifack also known as (triple functions acts as commands knowledged) is a esolang by User:Shazun bhasfu that has 3 commands:
Commands
| start | '{' |
| end | '}' |
| do | '?' |
do ('?') is the only meaninful command, based on its neighbour it will do an action such as (neighbour | action)
| '{' | go backwards until { |
| '}' | go foward until } |
| '?' | if did ? before then reset otherwise reset did and set end and start |
states
also trifack supports states, where:
| start | start = true |
| end | end = true |
| dont | '?' if do == false then invert the table expect do, else reset everything |
| do | '? ' sets do true (only if do == true) |
you can see the code for better explanation
example programs
infinite loop: { ?{