https://github.com/kaamkiya/bfc
A tiny brainf**k to C transpiler.
https://github.com/kaamkiya/bfc
brainfuck brainfuck-compiler c cli minimal transpiler
Last synced: 8 months ago
JSON representation
A tiny brainf**k to C transpiler.
- Host: GitHub
- URL: https://github.com/kaamkiya/bfc
- Owner: Kaamkiya
- License: unlicense
- Created: 2024-12-15T19:25:09.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-02-08T22:27:14.000Z (8 months ago)
- Last Synced: 2025-02-08T23:24:00.113Z (8 months ago)
- Topics: brainfuck, brainfuck-compiler, c, cli, minimal, transpiler
- Language: Brainfuck
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
- License: LICENSE
Awesome Lists containing this project
README
bfc
===A tiny brainf*ck to C transpiler. I found it easier to make this than an actual
interpreter.You can read about it on my blog: http://kaki.envs.net/blog/the-tiny-transpiler
usage
-----
First, clone the repo (or just download bfc.c, it's the only file you really
need.)$ git clone https://codeberg.org/Kaamkiya/bfc
Then build it.
$ cd bfc
$ makeBasic usage:
$ bfc [path/to/file.b]
If you don't specify a file to read from, bfc will read from stdin, so you can
also pipe to it:$ cat hello_world.b | bfc
It will write the transpiled code to stdout, or you can specify a file using
redirection:$ cat hello_world.b | bfc > hello.c
Then you can compile your C file.
license
-------
Unlicense. See https://unlicense.org for more.