use dedukti_parse::{Lazy, Scoped, Strict, Symb}; use std::fs::File; use std::io::{BufRead, BufReader}; fn main() { let args: Vec = std::env::args().collect(); let filename = &args[1]; //let file = File::open(filename).expect("Something went wrong reading the file"); let line = std::fs::read_to_string(filename).expect("Something went wrong reading the file"); println!("loaded"); /* let lines = BufReader::new(file).lines().map(|line| line.unwrap()); let iter = Lazy::<_, Atom>, String>::new(lines); */ let iter = Strict::new(&line); for cmd in iter { let cmd: Scoped<&str> = cmd.unwrap(); println!("{}", cmd); } }