Implementation of Brainfuck written in jq.
The interpreter was tested on jq
version 1.7.1.
# input for the comma (,) command is provided --rawfile input <filename>
./bf.jq examples/wc.b --rawfile input bf.jq
# to read from stdin
./bf.jq examples/wc.b --rawfile input /dev/stdin < bf.jq
Example brainfuck programs can be found in the examples
directory. These examples were taken from brainfuck.org and are licensed under Creative Commons Attribution-ShareAlike 4.0 International License.
Distributed under the GPLv3 License. See LICENSE
file in this repo for more information.