i like frog
|Designed by||Asher I|
|Computational class||Turing complete|
- Note that i like frog is typically lowercased except, often, at the start of a sentence.
I like frog is a set of 12 commands based on the following syntax to have them executed. Line breaks end commands and their parameters. Parameters are ternary numbers where "i " = ternary digit "0", "like " = ternary digit "1", "frog " = ternary digit "2"
Each line/command is started with one of 3 categories of commands, being "i ", "like " or "frog "
The following categories and their commands are as below:
like: Go forward X cells where X = the parameters. If no parameters, move forward one. frog: Go backwards X cells where X = the parameters. If no parameters, move backwards one.
i: Insert X in ternary into cells to the right of the pointer where X = parameters. If no parameters, take input from console. frog: Output X where X = parameters. If no parameters, output bit under pointer.
i: Go forward X instructions if bit = 0 where X = parameters. If no parameters, flip bit (0 = 1, 1 = 0) like: Go back X instructions if bit = 0 where X = parameters. If no parameters, go back 1.
A (hopefully) easier-to-implement spinoff named "I like ternary" was made as ternary numbers instead of "i ", "like " and "frog ". Can be compressed into ASCII but would confuse the interpreter because of the possibility that the ternary converted to ASCII could result in newlines that would make the interpreter think it means a command has ended.
This program prints out the words Hello World!:
like frog like frog i i i i frog frog i frog like frog i like frog frog frog i like i like like frog like like frog frog frog i i like like frog frog like like i frog i frog frog i i like like frog like i like like like frog frog i i like frog i i like like i frog i i
This simply outputs the parameters as a ternary number encoded in ISO-8859-1
This program executes an infinite loop:
What this does it it goes back an instruction, which there is no instruction before it, so it goes to the last instruction which is it.