https://github.com/quiibz/tsfuck
Brainfuck interpreter using TypeScript types
https://github.com/quiibz/tsfuck
brainfuck types typescript
Last synced: 8 months ago
JSON representation
Brainfuck interpreter using TypeScript types
- Host: GitHub
- URL: https://github.com/quiibz/tsfuck
- Owner: QuiiBz
- License: mit
- Created: 2022-07-24T16:18:42.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-07-24T16:25:37.000Z (over 3 years ago)
- Last Synced: 2025-03-29T07:51:28.253Z (8 months ago)
- Topics: brainfuck, types, typescript
- Language: TypeScript
- Homepage:
- Size: 4.88 KB
- Stars: 11
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## TSFuck
Brainfuck interpreter using TypeScript types. [See the code here](./tsfuck.ts).
Supports all [brainfuck commands](https://en.wikipedia.org/wiki/Brainfuck) (but might not support edge cases):
- `>` to increase the data pointer
- `<` to decrease the data pointer
- `+` to increment the byte at the data pointer
- `-` to increment the byte at the data pointer
- `.` to output the byte at the data pointer
- `,` to store a byte at the data pointer
- `[` & `]` to loop around a block of code, until the byte at the data pointer is 0
### License
[MIT](./LICENSE)