Skip to content

SalemC/brainfuck-ts-interpreter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

Typescript Brainfuck Interpreter

A simple and easy to use Brainfuck interpreter, written in TypeScript.

How To Use

  1. Include this file in your TypeScript project.
  2. Import the default export into your target location.
  3. Call BrainfuckInterpreter.parse with your Brainfuck string.

Example

import BrainfuckInterpreter from "./brainfuck-interpreter";

BrainfuckInterpreter.parse(
    `>+++++++++[<++++++++>-]<.
     >+++++++[<++++>-]<+.
     >+++[<++>-]<+..
     +++.
     >+++++++++++++[<------>-]<-.
     >+++++++++++[<+++++>-]<.
     >++++++++[<+++>-]<.
     +++.
     ------.
     --------.
     >+++++++++++[<------>-]<-.`
);

About

A Brainfuck Interpreter written in TypeScript.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published