https://github.com/guidanoli/c-bf
C Brainfuck Compiler
https://github.com/guidanoli/c-bf
brainfuck c
Last synced: 7 months ago
JSON representation
C Brainfuck Compiler
- Host: GitHub
- URL: https://github.com/guidanoli/c-bf
- Owner: guidanoli
- License: mit
- Created: 2019-11-16T16:40:30.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-11-17T00:43:55.000Z (almost 6 years ago)
- Last Synced: 2025-01-17T13:30:14.301Z (9 months ago)
- Topics: brainfuck, c
- Language: C
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# C Brainfuck Compiler
Having developed an interpreter in Lua, I thought I would give building a compiler a try.
## Running
Simply run `make`, which will generate the bf compiler + some programs, and then:
``` bash
$ ./bf [input] [output_c]
$ gcc [output_c] -o [output]
$ ./[output]
```If you desire to write the code in the terminal itself (stdin), then do the following:
``` bash
$ ./bf > [output_c]
(write code and then escape input*)
$ gcc [output_c] -o [output]
$ ./[output]
*Ctrl+D on Unix and Ctrl+Z on Windows
```## Scripts
All the bf scripts are of property of [daniel b cristofani](http://www.hevanet.com/cristofd/brainfuck/).