strath/src/main.rs

17 lines
289 B
Rust
Raw Normal View History

2021-12-15 19:28:10 +00:00
use std::env;
2021-12-16 08:03:40 +00:00
use std::fs;
2021-12-15 19:28:10 +00:00
2021-12-16 10:45:16 +00:00
mod preprocessor;
2021-12-15 19:28:10 +00:00
fn main() {
2021-12-16 08:03:40 +00:00
let args: Vec<String> = env::args().collect();
let file = fs::read_to_string(&args[1]).expect("Couldnt read file:");
2021-12-16 10:45:16 +00:00
println!("{:?}", preprocessor::preprocess(file));
2021-12-16 08:03:40 +00:00
}
2021-12-16 16:52:06 +00:00
//fn parse_and_interpret(code: String) {
2021-12-16 08:03:40 +00:00
2021-12-16 16:52:06 +00:00
//}
2021-12-16 10:45:16 +00:00