diff options
Diffstat (limited to 'users/tazjin/rlox/src/interpreter.rs')
-rw-r--r-- | users/tazjin/rlox/src/interpreter.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/users/tazjin/rlox/src/interpreter.rs b/users/tazjin/rlox/src/interpreter.rs index 6a7687c2685e..2aff971f09a5 100644 --- a/users/tazjin/rlox/src/interpreter.rs +++ b/users/tazjin/rlox/src/interpreter.rs @@ -1,4 +1,8 @@ +use crate::scanner; + // Run some Lox code and print it to stdout -pub fn run(_code: &str) { +pub fn run(code: &str) { + let chars: Vec<char> = code.chars().collect(); + let _tokens = scanner::scan(&chars); println!("no interpreter yet, sorry") } |