-
Notifications
You must be signed in to change notification settings - Fork 0
A tiny brainfuck to C transpiler.
License
Kaamkiya/bfc
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
bfc === A tiny brainfuck to C transpiler. I found it easier to make this than an actual interpreter. You can read about it on my blog: https://kaamkiya.github.io/posts/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 $ make Basic 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.
About
A tiny brainfuck to C transpiler.