diff --git a/README.md b/README.md index b420e20..66d7587 100644 --- a/README.md +++ b/README.md @@ -53,6 +53,11 @@ Output viewer: A ~~~~ +** echo "42=" | ./bfckr -f examples/bintodec.bf ** +~~~ +42=101010 +~~~ + # Breakpoints A # in the brainfuck source will be interpreted as breakpoint. You can use them if you want to stop the program flow at a specific point and start the debugger from there. If you are in debugger mode pressing c will get you back to executing the program. diff --git a/examples/bintodec.bf b/examples/bintodec.bf index 92d60fe..955dc14 100644 --- a/examples/bintodec.bf +++ b/examples/bintodec.bf @@ -1 +1,3 @@ +// Usage: echo "15=" |./bfckr -f examples/bintodec.bf + ++++++[>++++++++<-]>[>+++[>++++[>+++++<-]<-],.[>+>-<<-]>>+[[-]<[<+>-]>]<[-]<]<[<]->[-]>[>]>>+>+<<<<[<]>[[>]->>[>]+[[>+<-]<]>>[[[>]>[>]>+<<[<]<[<]>-]<+>>[>]>[>]+>-[<+[<]<[<]<+>>[>]>[>]<-]<[<]<[<]>]>[[<+>-]>]+<+[<]<[[>>[>]<+[<]<-]>>[>]<-[>+<-]<[<]<<[[>+<-]<]>>[>]<]>>[>]>[[<+>-]>]<<[-[-[-[>+<-]<+>>-<]>+<]>+<<]>>-[+<]+<<+[<+]>->>->[>]>[-[<<[<]<+>>[>]>-]<+[<]+>->[>]>]<<[-<]<-<[<]<<[<]++++++[>--------<-]>[[>]>+<<[<]>-]>[>]>[<+>-]<[>>[>]>>+<<<[>>[>]>[<<[<]<--[+>+[>]>>-<<<[<]]>+[<+>-]>[>]>->+<]>[<+>-]<<<[<]<[>+<-]<]>>-[+[>]<[[>+<-]<]>]+[[<+>-]>]<<[<]<-]<[<]>]>>[>]++[<]>--[>--]++<++<[+<[<]>[+>]]<+[<+]>>->[>]>[-[<<[<]<+>>[>]>-]<+[<]+>->[>]>]<<[-<]<-<--<[<]>>[<<+>>-]+<<[-[>>+<<-]]>[>]>++++++[<++++++++>-]<-[<[+<]>[>]<-]<[<]>>[.>]