Opf
Jump to navigation
Jump to search
Opf is an esolang invented by User:None1. It is a superset of Op. It is also a shorter version of OutputF.
Commands
Output | Op |
---|---|
Input | i |
Output the input | oi |
Output the program's source code | os |
Output "string" | o"string" |
Fuck the input | fi |
Fuck the program's source code | fs |
Fuck "string" | f"string" |
Like OutputF, the o and f commands raises a syntax error if you passed it wrong values.
Examples
Cat program
f",[.,]"
Brainfuck interpreter
ifi
Alternative
Another one, append brainfuck code to the source code to execute it:
fs
For example:
fs,[.,]
is a cat program.
Note that this interpreter may not work correctly if code contains redundant characters, for example:
fso",[.,]"
will execute the cat program, then output ,[.,]
(because the code includes an Opf command).
Computational class
'cos you can invoke brainfuck with it, this esolang is definitely Turing complete!