Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/susisu/typefuck
Type-level Brainfuck interpreter in TypeScript
https://github.com/susisu/typefuck
Last synced: 12 days ago
JSON representation
Type-level Brainfuck interpreter in TypeScript
- Host: GitHub
- URL: https://github.com/susisu/typefuck
- Owner: susisu
- License: mit
- Created: 2020-04-10T15:09:59.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-04-13T11:53:07.000Z (7 months ago)
- Last Synced: 2024-04-14T01:15:49.811Z (7 months ago)
- Language: TypeScript
- Size: 475 KB
- Stars: 164
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# @susisu/typefuck
[![CI](https://github.com/susisu/typefuck/workflows/CI/badge.svg)](https://github.com/susisu/typefuck/actions?query=workflow%3ACI)
Type-level [Brainfuck](https://en.wikipedia.org/wiki/Brainfuck) interpreter in TypeScript
``` shell
# npm
npm i --save @susisu/typefuck
# yarn
yarn add @susisu/typefuck
# pnpm
pnpm add @susisu/typefuck
```## Example
[Playground](https://www.typescriptlang.org/play#code/JYWwDg9gTgLgBDAnmApnA3nAQlAhsAOwDMBXAYwGs4BfOIqCEOAIgAEBnE94TgeiVSlKzANwAoMQLQAFBgHM8TALwsAfABoA2hoC6AHk0A6PTtGTkaAJIEwJeCuYAJFABsXEdXADu0FwBMAQjMpOAB5O1t7bDxCIQo9WQgFXBBPa0jVcV5eOFyAPQB+MSA)
``` typescript
import type { Brainfuck } from "@susisu/typefuck";type Program = ">,[>,]<[.<]";
type Input = "Hello, world!";
type Output = Brainfuck; // = "!dlrow ,olleH"
```## License
[MIT License](http://opensource.org/licenses/mit-license.php)
## Author
Susisu ([GitHub](https://github.com/susisu), [Twitter](https://twitter.com/susisu2413))