This commit is contained in:
elvis
2025-05-14 11:42:19 +02:00
parent a113c072f5
commit fe6a5a6580
5 changed files with 192 additions and 0 deletions

16
src/main.rs Normal file
View File

@ -0,0 +1,16 @@
mod rsprocess;
use lalrpop_util::lalrpop_mod;
use std::io;
fn main() -> Result<(), Box<dyn std::error::Error>> {
lalrpop_mod!(grammar, "/rsprocess/grammar.rs");
let mut buffer = String::new();
let i = io::stdin();
i.read_line(&mut buffer).expect("Can't read stdin");
let result = grammar::BHMLParser::new().parse(&buffer).unwrap();
println!("{:?}", result);
Ok(())
}