/examples/compiler/dbf2c.bf
https://github.com/FabianM/brainfuck · Brainfuck · 35 lines · 29 code · 6 blank · 0 comment · 26 complexity · dcb86f05775d6973204c4086c0216c58 MD5 · raw file
- +++[>+++++<-]>>+<[>>++++>++>+++++>+++++>+>>+<++[++<]>---]
- >++++.>>>.+++++.>------.<--.+++++++++.>+.+.<<<<---.[>]<<.<<<.-------.>++++.
- <+++++.+.>-----.>+.<++++.>>++.>-----.
- <<<-----.+++++.-------.<--.<<<.>>>.<<+.>------.-..--.+++.-----<++.<--[>+<-]
- >>>>>--.--.<++++.>>-.<<<.>>>--.>.
- <<<<-----.>----.++++++++.----<+.+++++++++>>--.+.++<<<<.[>]<.>>
- ,[>>+++[<+++++++>-]<[<[-[-<]]>>[>]<-]<[<+++++>-[<+++>-[<-->-[<+++>-
- [<++++[>[->>]<[>>]<<-]>[<+++>-[<--->-[<++++>-[<+++[>[-[-[-[->>]]]]<[>>]<<-]
- >[<+>-[<->-[<++>-[<[-]>-]]]]]]]]]]]]]
- <[
- -[-[>+<-]>]
- <[<<<<.>+++.+.+++.-------.>---.++.<.>-.++<<<<.[>]>>>>>>>>>]
- <[[<]>++.--[>]>>>>>>>>]
- <[<<++..-->>>>>>]
- <[<<..>>>>>]
- <[<<..-.+>>>>]
- <[<<++..---.+>>>]
- <[<<<.>>.>>>>>]
- <[<<<<-----.+++++>.----.+++.+>---.<<<-.[>]>]
- <[<<<<.-----.>++++.<++.+++>----.>---.<<<.-[>]]
- <[<<<<<----.>>.<<.+++++.>>>+.++>.>>]
- <.>
- ]>
- ,]
- <<<<<.<+.>++++.<----.>>---.<<<-.>>>+.>.>.[<]>++.[>]<.
- >[Translates brainfuck to C. Assumes no-change-on-EOF or EOF->0.
- Generated C does no-change-on-EOF, and uses unistd.h read and write calls.
- Daniel B Cristofani (cristofdathevanetdotcom)
- http://www.hevanet.com/cristofd/brainfuck/]