bfts
TypeScript icon, indicating that this package has built-in type declarations

0.2.1 • Public • Published

bfts

CI npm version

Type-level Brainfuck interpreter.

Playground

Installation

Using npm:

$ npm install bfts

Using yarn:

$ yarn add bfts

Example

import type { Interpret } from "bfts";

type Result1 = Interpret<"++++[>+++++<-]>--.">;
// type Result1 = "\u0012"

type Result2 = Interpret<"+++++++++[>++++++++>+++++++++++>+++>+<<<<-]>.>++.+++++++..+++.>+++++.<<+++++++++++++++.>.+++.------.--------.>+.>+.">;
// type Result2 = "Hello World!\n"

// With input
type Result3 = Interpret<",+>,+>,+<<.>.>.", "ABC">;
// type Result3 = "BCD"

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i bfts

Weekly Downloads

0

Version

0.2.1

License

MIT

Unpacked Size

27.1 kB

Total Files

21

Last publish

Collaborators

  • dqn