new Runtime object

This commit is contained in:
2024-10-15 00:47:20 -04:00
parent e0e33c868b
commit f9f5cb40e9
3 changed files with 35 additions and 5 deletions

View File

@@ -1,7 +1,9 @@
use std::io::{self, BufReader};
fn main() {
for value in lamm::evaluate(BufReader::new(io::stdin())) {
let runtime = lamm::Runtime::new(BufReader::new(io::stdin()));
for value in runtime.values() {
match value {
Ok(v) => println!("{v}"),
Err(e) => eprintln!("{e}"),