Skip to content

Latest commit

 

History

History
34 lines (23 loc) · 987 Bytes

README.md

File metadata and controls

34 lines (23 loc) · 987 Bytes

@susisu/typefuck

CI

Type-level Brainfuck interpreter in TypeScript

# npm
npm i --save @susisu/typefuck
# yarn
yarn add @susisu/typefuck
# pnpm
pnpm add @susisu/typefuck

Example

Playground

import type { Brainfuck } from "@susisu/typefuck";

type Program = ">,[>,]<[.<]";
type Input = "Hello, world!";
type Output = Brainfuck<Program, Input>; // = "!dlrow ,olleH"

License

MIT License

Author

Susisu (GitHub, Twitter)