Parseur d'expression et affichage du résultat avec l'ASTPrinter.

This commit is contained in:
2024-05-16 22:45:40 +02:00
parent 72ef4e3bbf
commit b4d2170eb4
4 changed files with 230 additions and 10 deletions

View File

@@ -7,6 +7,8 @@ mod scanner;
mod token;
mod token_type;
mod expr;
mod astprinter;
mod parser;
use crate::rlox_interpreter::RLoxInterpreter;
@@ -34,4 +36,4 @@ fn main() {
// https://github.com/munificent/craftinginterpreters/wiki/Lox-implementations#rust
// Pause :
// http://www.craftinginterpreters.com/representing-code.html#working-with-trees
// http://www.craftinginterpreters.com/parsing-expressions.html implémentation de comparison