brainfk-interpreter

1.0.1 • Public • Published

brainfk-interpeter

Usage:

const interpreter = require('brainfk-interpreter');

interpreter.interpret(sourceCode, memsize, inputText);

interpret() arguments:

  • sourceCode: The source code in the programming language brainfuck, formatted as a string. More information about this language, along with a complete list of instructions can be found here.
  • memsize: The number of cells you can use in the program, formatted as an integer. Don't go too big obviously.
  • inputText: The input that will be fed into the program, fomratted as a string. Each input ( , ) instruction will take one character starting from the left of the string.

Each cell can hold 1 byte from 0-255 (will output ascii)

/brainfk-interpreter/

    Package Sidebar

    Install

    npm i brainfk-interpreter

    Weekly Downloads

    4

    Version

    1.0.1

    License

    ISC

    Unpacked Size

    3.09 kB

    Total Files

    4

    Last publish

    Collaborators

    • colefrishman