able-script/src/parser.rs

16 lines
280 B
Rust
Raw Normal View History

2021-04-11 15:11:23 -05:00
use crate::tokens;
pub fn parse(line: String) {
//match the tokens
//This will not work
let iter = line.split_whitespace();
for x in iter {
match x {
"#" => {
println!("hi");
}
_ => {}
}
}
}