Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zsr2531/bfc
A brainfuck interpreter and compiler written in C++
https://github.com/zsr2531/bfc
ast brainfuck compiler cpp interpreter
Last synced: 29 days ago
JSON representation
A brainfuck interpreter and compiler written in C++
- Host: GitHub
- URL: https://github.com/zsr2531/bfc
- Owner: zsr2531
- License: mit
- Created: 2020-09-04T17:42:26.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-09-06T10:31:49.000Z (over 4 years ago)
- Last Synced: 2024-11-14T17:48:47.546Z (3 months ago)
- Topics: ast, brainfuck, compiler, cpp, interpreter
- Language: C++
- Homepage:
- Size: 18.6 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# bfc
A brainfuck interpreter and compiler written in C++## What does it do?
You can either give it a file or a raw string to interpret/compile. By `compile`, I mean that it can generate C code from any brainfuck program.
## Usage
`./bfc <-f|--file FILE>|<-e|--eval PROGRAM> [options]`
### Command line arguments
- `-h`, `--help`: Shows a help message.
- `--pretty-print-ast`: Pretty prints the AST.
- `-e`, `--eval`: Evaluates the provided brainfuck program.
- `-f`, `--file`: Evaluates a brainfuck program from a file.
- `-o`, `--output`: Dumps C pseudocode to a file.