... they're just noisy at the moment. This isn't complete because it doesn't thread through scanner errors. Change-Id: I0f75d2b20fa3f57be1af5d1d8aa8059856855825 Reviewed-on: https://cl.tvl.fyi/c/depot/+/2162 Reviewed-by: tazjin <mail@tazj.in> Tested-by: BuildkiteCI
8 lines
226 B
Rust
8 lines
226 B
Rust
use crate::scanner;
|
|
|
|
// Run some Lox code and print it to stdout
|
|
pub fn run(code: &str) {
|
|
let chars: Vec<char> = code.chars().collect();
|
|
let _tokens = scanner::scan(&chars);
|
|
println!("no interpreter yet, sorry")
|
|
}
|