aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin
diff options
context:
space:
mode:
authorbnewbold <bnewbold@robocracy.org>2016-09-18 15:28:11 -0700
committerbnewbold <bnewbold@robocracy.org>2016-09-18 15:28:11 -0700
commit235e1abc21b54a60913adbe1062b8ad3a0bd09d6 (patch)
treea6c876524ed9a372e5875876c41885b7f87b82fb /src/bin
parentf264a289fe0d504a99c01d5787edb92af8f6ca91 (diff)
downloadmodelthing-235e1abc21b54a60913adbe1062b8ad3a0bd09d6.tar.gz
modelthing-235e1abc21b54a60913adbe1062b8ad3a0bd09d6.zip
progress and fixes for parser
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/modelthing-modelica.rs4
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),
}
}