aboutsummaryrefslogtreecommitdiffstats
path: root/modelica-parser-lalrpop/examples
diff options
context:
space:
mode:
authorbnewbold <bnewbold@robocracy.org>2016-12-18 14:14:21 -0800
committerbnewbold <bnewbold@robocracy.org>2016-12-18 14:14:21 -0800
commit643b7ef94bdf507def6cb92575c1af73ba5d691f (patch)
tree829a92884988d48ea5c891f323f4372db99fc0e1 /modelica-parser-lalrpop/examples
parenta142e057162499db0df37e8abf5e515c6e297a04 (diff)
downloadmodelthing-643b7ef94bdf507def6cb92575c1af73ba5d691f.tar.gz
modelthing-643b7ef94bdf507def6cb92575c1af73ba5d691f.zip
parser: example parses files, not just models
Diffstat (limited to 'modelica-parser-lalrpop/examples')
-rw-r--r--modelica-parser-lalrpop/examples/parse_file.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/modelica-parser-lalrpop/examples/parse_file.rs b/modelica-parser-lalrpop/examples/parse_file.rs
index 1eb4e65..b3d6913 100644
--- a/modelica-parser-lalrpop/examples/parse_file.rs
+++ b/modelica-parser-lalrpop/examples/parse_file.rs
@@ -24,7 +24,7 @@ fn main() {
continue;
}
- let result = modelica_parser::parser::parse_model(&s);
+ let result = modelica_parser::parser::parse_file(&s);
match result {
Ok(_) => println!("=== {}: OK", input),