A Brainfuck interpreter written in Rust
Here's the project structure:
- Tokenizer: Transforms the source code into an array of
chars
- Parser: Transforms the tokenized source code into an AST(Abstract Syntax Tree)
- Compiler (Interpreter): Traverses the ast and does all the interpretation of the program
To get a good understanding of how it works, I recommend watching these videos: