aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin
diff options
context:
space:
mode:
authorbnewbold <bnewbold@robocracy.org>2016-09-18 14:24:44 -0700
committerbnewbold <bnewbold@robocracy.org>2016-09-18 14:25:07 -0700
commitf264a289fe0d504a99c01d5787edb92af8f6ca91 (patch)
treed46f54df1d2db703583a0ae7d612428982c8fb2a /src/bin
parent77183773db84f5cd287bed62d3c844346a36bd74 (diff)
downloadmodelthing-f264a289fe0d504a99c01d5787edb92af8f6ca91.tar.gz
modelthing-f264a289fe0d504a99c01d5787edb92af8f6ca91.zip
work on a minimal modelica parser+ast
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/modelthing-modelica.rs (renamed from src/bin/parse_pascal.rs)6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bin/parse_pascal.rs b/src/bin/modelthing-modelica.rs
index 7b08f36..a8fa9be 100644
--- a/src/bin/parse_pascal.rs
+++ b/src/bin/modelthing-modelica.rs
@@ -3,7 +3,7 @@ extern crate modelthing;
extern crate rustc_serialize;
extern crate docopt;
-use modelthing::pascal;
+use modelthing::modelica_parser;
use docopt::Docopt;
use std::env;
use std::io::Read;
@@ -25,7 +25,7 @@ fn main() {
}
let time_stamp = Instant::now();
- let result = pascal::parse_file(&s);
+ let result = modelica_parser::parse_file(&s);
let elapsed = time_stamp.elapsed();
let elapsed = elapsed.as_secs() as f64 + elapsed.subsec_nanos() as f64 / 1000_000_000.0;
@@ -37,7 +37,7 @@ fn main() {
}
const USAGE: &'static str = "
-Usage: modelthing-pascal <inputs>...
+Usage: modelthing-modelica <inputs>...
Parses each input file.
";