rush/src/parser/mod.rs
2021-11-10 21:08:29 +01:00

12 lines
285 B
Rust

pub mod vars;
use std::io;
//use std::io::prelude::*;
use utf8_chars::BufReadCharsExt;
pub fn read_parse(reader: &mut dyn std::io::BufRead, ctx: vars::Context) -> io::Result<()> {
for c in reader.chars().map(|x| x.unwrap()) {
println!("char {}\r", c);
}
Ok(())
}