https://github.com/seg6/brainfuck
an optimizing brainfuck interpreter and repl
https://github.com/seg6/brainfuck
brainfuck c interpreter language repl
Last synced: 8 months ago
JSON representation
an optimizing brainfuck interpreter and repl
- Host: GitHub
- URL: https://github.com/seg6/brainfuck
- Owner: seg6
- Created: 2022-03-30T12:03:12.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-01-05T07:44:49.000Z (over 3 years ago)
- Last Synced: 2025-02-15T22:29:35.845Z (over 1 year ago)
- Topics: brainfuck, c, interpreter, language, repl
- Language: C
- Homepage:
- Size: 48.8 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# bfc
brainfuck interpreter and repl with some optimizations implemented in: for the time being it can detect clear loops, combine repeating operations (-><+) and it can link loops at compile time.
## building
bfc uses the [meson](https://github.com/mesonbuild/meson) build system.
```sh
$ meson setup build
$ meson configure --buildtype release build
$ meson compile -C build
$ ./build/brainfuck --help
usage: ./bfc [path] [-d] [-h]
optional arguments:
-d, --debug run the interpreter in debug mode
-h, --help print this text
```