https://github.com/lancern/zig-brainfuck
Brainfuck JIT interpreter written in Zig
https://github.com/lancern/zig-brainfuck
brainfuck brainfuck-compiler brainfuck-interpreter jit zig
Last synced: 10 months ago
JSON representation
Brainfuck JIT interpreter written in Zig
- Host: GitHub
- URL: https://github.com/lancern/zig-brainfuck
- Owner: Lancern
- License: mit
- Created: 2024-02-08T07:40:19.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-02-16T13:12:15.000Z (over 2 years ago)
- Last Synced: 2025-03-20T16:48:23.733Z (over 1 year ago)
- Topics: brainfuck, brainfuck-compiler, brainfuck-interpreter, jit, zig
- Language: Zig
- Homepage:
- Size: 13.7 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# zig-brainfuck
This is a toy project that helps me learn Zig programming language. This project
implements a [Brainfuck] interpreter with Just-In-Time (JIT) compilation.
[Brainfuck]: https://en.wikipedia.org/wiki/Brainfuck
> [!NOTE]
> This project is still in a very early development phase.
## Build
```bash
zig build
```
The executable file can be found at `zig-out/bin/zig-brainfuck` after build.
## Run
> [!NOTE]
> Currently this project only implements an AST-traversal interpreter.
```bash
zig-brainfuck input.bf
```
`input.bf` is the path to the input Brainfuck source code file.
## LICENSE
This project is open-sourced under the [MIT License](./LICENSE).