A brainfuck implementation in Zig.
- Make sure you have Zig version 0.14.0 installed
- If you have
make
installed, runmake
otherwise you can runzig build-exe main.zig
- Run the binary
- Add two numbers
++ > +++++ [ <+ >- ] ++++ ++++ [ <+++ +++ >- ] < .
- Print Hello World
++++++++[>++++[>++>+++>+++>+<<<<-]>+>+>->>+[<]<-]>>.>---.+++++++..+++.>>.<-.<.+++.------.--------.>>+.>++.
- Generate random bytes
>>>++[ <++++++++[ <[<++>-]>>[>>]+>>+[ -[->>+<<<[<[<<]<+>]>[>[>>]]] <[>>[-]]>[>[-<<]>[<+<]]+<< ]<[>+<-]>>- ]<.[-]>> ]
- Thuemorse code generator
>>++++++[>++++++++<-]+[[>.[>]+<<[->-<<<]>[>+<<]>]>++<++]
- Get user input
- Expand program support (some programs don't work at all in this implementation)