From 235e1abc21b54a60913adbe1062b8ad3a0bd09d6 Mon Sep 17 00:00:00 2001 From: bnewbold Date: Sun, 18 Sep 2016 15:28:11 -0700 Subject: progress and fixes for parser --- src/bin/modelthing-modelica.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/bin') diff --git a/src/bin/modelthing-modelica.rs b/src/bin/modelthing-modelica.rs index a8fa9be..d71a2eb 100644 --- a/src/bin/modelthing-modelica.rs +++ b/src/bin/modelthing-modelica.rs @@ -25,12 +25,12 @@ fn main() { } let time_stamp = Instant::now(); - let result = modelica_parser::parse_file(&s); + let result = modelica_parser::parse_model(&s); let elapsed = time_stamp.elapsed(); let elapsed = elapsed.as_secs() as f64 + elapsed.subsec_nanos() as f64 / 1000_000_000.0; match result { - Ok(()) => println!("Input `{}` ({}s): OK", input, elapsed), + Ok(_) => println!("Input `{}` ({}s): OK", input, elapsed), Err(err) => println!("Input `{}` ({}s): parse error {:?}", input, elapsed, err), } } -- cgit v1.2.3