Code Monkey home page Code Monkey logo

bibtexstyle-brainfuck's Introduction

(Maybe) Brainfuck Interpreter Written in BiBTeX Style File

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

Specification

@brainfuck{code,
    bfinput="standard input",
    bfcode="source code"}
  • bfinput : Standard input
  • bfcode : Brainfuck source code

Restriction

  • \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 in brainfuck.bst.
  • The cell has unsigned 8bit value.
  • When reached end of standard input, , will return 0.
  • Multibyte input probably does not work as expected.

License

The Unlicense

Example cat program in example.bib is retrieved from esolang.org (licensed under CC0-1.0).

bibtexstyle-brainfuck's People

Contributors

hiromi-mi avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.