Skip to content

A Node.js interpreter for Brainfuck

License

Notifications You must be signed in to change notification settings

itaisteinherz/brainode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

brainode Build Status

A Node.js interpreter for Brainfuck

Install

$ npm install https://github.com/itaisteinherz/brainode

Usage

const brainode = require("brainode");

brainode.run("+>++++++[<++++++++>-]<.");
//=> "1"

API

brainode.run(code)

Executes the given brainfuck code.

code

Type: string

The brainfuck code to execute.

brainode.memory

Type: Array<number>

Returns the memory of the interpreter.

brainode.pointer

Type: number

Returns the pointer of the interpreter.

License

MIT © Itai Steinherz