++++++++[>++++[>++>+++>+++>+<<<<-]>+>+>->>+[<]<-]>>.>---.+++++++..+++.>>.<-.<.+++.------.--------.>>+.>++.
Write, Run & Share BrainFK code online using OneCompiler’s BrainFK online compiler for free. It’s a lightweight and interactive platform to experiment with the BrainFK programming language, known for its minimalistic and esoteric nature.
BrainFK is an esoteric programming language created by Urban Müller in 1993. It is designed to be minimal, with only eight commands and an instruction pointer. Despite its simplicity, it is Turing complete and capable of performing any computation.
The following BrainFK program prints "Hello, World!":
++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.
OneCompiler’s BrainFK editor supports standard input via the I/O tab. Here's a simple example that echoes the first character typed by the user:
,.
Command | Description |
---|---|
> | Move pointer to the right |
< | Move pointer to the left |
+ | Increment the byte at the pointer |
- | Decrement the byte at the pointer |
. | Output the byte at the pointer |
, | Input a byte and store it at the pointer |
[ | Jump past matching ] if byte is zero |
] | Jump back to matching [ if byte is nonzero |
,>++++++[<-------->-],<[->+<]>.
This guide provides a quick reference to BrainFK syntax and usage. Start exploring the world of esoteric programming using OneCompiler’s BrainFK online compiler today!