diff options
Diffstat (limited to 'users/tazjin/rlox/src/treewalk/mod.rs')
-rw-r--r-- | users/tazjin/rlox/src/treewalk/mod.rs | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/users/tazjin/rlox/src/treewalk/mod.rs b/users/tazjin/rlox/src/treewalk/mod.rs index 95136b2fa141..ae1049a12eff 100644 --- a/users/tazjin/rlox/src/treewalk/mod.rs +++ b/users/tazjin/rlox/src/treewalk/mod.rs @@ -1,7 +1,10 @@ use crate::*; -pub mod interpreter; +mod errors; +mod parser; mod resolver; +mod scanner; +pub mod interpreter; pub fn main() { let mut args = env::args(); @@ -50,3 +53,9 @@ fn run(lox: &mut treewalk::interpreter::Interpreter, code: &str) { report_errors(errors); } } + +fn report_errors(errors: Vec<errors::Error>) { + for error in errors { + errors::report(&error); + } +} |