From e76df1e9f9d0547b03d3d4632e527e163628d6c4 Mon Sep 17 00:00:00 2001 From: "Joshua Moerman (@Kassalade)" Date: Sun, 22 May 2011 17:33:02 +0200 Subject: [PATCH] wrote docs for brainfucklibje --- brainfuck/README | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 brainfuck/README diff --git a/brainfuck/README b/brainfuck/README new file mode 100644 index 0000000..1c0ac41 --- /dev/null +++ b/brainfuck/README @@ -0,0 +1,21 @@ +Usage: + +brainfuck("++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>."); +The default arguments make it use std::cout and an empty string as input. + + +You can also use a string as input: +brainfuck(",[.,]", "input"); + +Or with a stream/container/iterator: +brainfuck(",[.,]", std::input_iterator(std::cin)); + + +You can specify the memory-units: +brainfuck("..."); +As long as the type has certain operators. The default output is comma-seperated, except for char. + + +You can specify an output-iterator: +brainfuck("...", "", std::back_inserter(my_vector)); +