brainfuck.bst
introduces bibliography style brainfuck
, and enables us to write your brainfuck program as bibliography.
After compiling, The program result is avaliable in the References section in your output.
You can open example.pdf or can compile as follows:
$ latex example
$ bibtex example
$ latex example
$ latex example
$ dvipdfmx example
@brainfuck{code,
bfinput="standard input",
bfcode="source code"}
bfinput
: Standard inputbfcode
: Brainfuck source code
\n
and\r
are currently treated as space, potentially due to BiBTeX's restriction.- Interactive input/output will be not avaliable.
- The length of cell array is currently 3000. You can extend the length by substitute
#3000
inbrainfuck.bst
. - The cell has unsigned 8bit value.
- When reached end of standard input,
,
will return 0. - Multibyte input probably does not work as expected.
The Unlicense
Example cat program in example.bib
is retrieved from esolang.org (licensed under CC0-1.0).