Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fausto95/brainfuck
A Brainfuck compiler written in Rust
https://github.com/fausto95/brainfuck
Last synced: 6 days ago
JSON representation
A Brainfuck compiler written in Rust
- Host: GitHub
- URL: https://github.com/fausto95/brainfuck
- Owner: Fausto95
- License: mit
- Created: 2023-10-31T17:55:31.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-01T09:09:45.000Z (about 1 year ago)
- Last Synced: 2023-11-01T20:37:19.848Z (about 1 year ago)
- Language: Rust
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
A Brainfuck interpreter written in Rust
Here's the project structure:
- [Tokenizer](./src/tokenizer.rs): Transforms the source code into an array of `chars`
- [Parser](./src/parser.rs): Transforms the tokenized source code into an AST(Abstract Syntax Tree)
- [Compiler (Interpreter)](./src/compiler.rs): Traverses the ast and does all the interpretation of the program## How the hell brainfuck works?
To get a good understanding of how it works, I recommend watching these videos:
- [BrainFuck in 100 seconds](https://youtu.be/hdHjjBS4cs8?si=vpgj4ev7vA3TkThR)
- [How Brainfuck Works](https://youtu.be/-3C200nCwpk?si=I937lLnDiy-hB7OZ)
- [Brainfuck 42](https://www.youtube.com/watch?v=cwuPIugCHl4)