I am currently building a simple interpreter for this language for practice. The only problem left to overcome is reading a single byte as a character from user input. I hav
Reading just a byte and casting it to i32:
i32
use std::io::Read; let input: Option = std::io::stdin() .bytes() .next() .and_then(|result| result.ok()) .map(|byte| byte as i32); println!("{:?}", input);