mirror of
https://github.com/danbulant/rush
synced 2026-05-19 04:18:35 +00:00
12 lines
285 B
Rust
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(())
|
|
}
|