Read from stdin

This commit is contained in:
Emi Simpson 2022-04-25 12:35:15 -04:00
parent d298170022
commit 2134e96498
Signed by: Emi
GPG Key ID: A12F2C2FFDC3D847
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ mod parser;
mod ir;
fn main() -> std::io::Result<()> {
let mut input_file = File::open("sample-initial.amo")?;
let mut input_file = std::io::stdin();
let mut input = String::with_capacity(4096);
input_file.read_to_string(&mut input)?;