H1ghBre4k3r / brainfuck-compiler

A little WIP Brainfuck "compiler" written in C.
MIT License
1 stars 0 forks source link

The language you've implemented isn't Brainfuck #1

Closed rdebath closed 3 years ago

rdebath commented 3 years ago

It's this one: https://esolangs.org/wiki/Newbiefuck

This "Hello World!" works for just brainfuck.

+[>[<-[]>+[>+++>[+++++++++++>][>]-[<]>-]]++++++++++<]>
>>>>>----.<<+++.<-..+++.<-.>>>.<<.+++.------.>-.<<+.<.

This program prints two different messages depending on the language.

++++++++[->+++++++++<]>.----[--<+++>]<-.+++++++..+++.[--->+<]>-----.[-]>
+++++++++++++[<++++++>-]+>++++++++++[<++++++++++>-]>+++++++++++++++++[<+
++++++>-]>++++++++++++++[<+++++++>-]>+++++++++++++++[<+++++++>-]+>++++++
++++[<++++++++++>-]>+++>++++++++++++[<+++++++>-]+>+++++++++++[<+++++++++
+>-]++>++++++++++++++[<++++++++>-]>++++++++++++[<+++++++++>-]>++++++++++
[<++++++++++>-]+>++++++++[<++++>-][<]<[<]>[.>]++++++++++.[-]
H1ghBre4k3r commented 3 years ago

Yeah, that's true! I already thought about that myself. Since this project originated from 2 hours of boredom and just writing not-clean code, there pretty much work to do. :D But thanks! I will but that onto my TODO-list!