diff options
author | bnewbold <bnewbold@robocracy.org> | 2016-09-18 15:28:11 -0700 |
---|---|---|
committer | bnewbold <bnewbold@robocracy.org> | 2016-09-18 15:28:11 -0700 |
commit | 235e1abc21b54a60913adbe1062b8ad3a0bd09d6 (patch) | |
tree | a6c876524ed9a372e5875876c41885b7f87b82fb /src/bin | |
parent | f264a289fe0d504a99c01d5787edb92af8f6ca91 (diff) | |
download | modelthing-235e1abc21b54a60913adbe1062b8ad3a0bd09d6.tar.gz modelthing-235e1abc21b54a60913adbe1062b8ad3a0bd09d6.zip |
progress and fixes for parser
Diffstat (limited to 'src/bin')
-rw-r--r-- | src/bin/modelthing-modelica.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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), } } |