aboutsummaryrefslogtreecommitdiffstats
path: root/modelica-parser-lalrpop/examples
diff options
context:
space:
mode:
authorbnewbold <bnewbold@robocracy.org>2016-12-26 00:03:07 -0800
committerbnewbold <bnewbold@robocracy.org>2016-12-26 00:03:09 -0800
commit957c2f75ceccfab3d8a8e546961db5f053876689 (patch)
tree5eae47044a720fa29b1f9396f54b7db9a482de4d /modelica-parser-lalrpop/examples
parent1e04c8274e473039d2b183c120ab7f3b1b981c3e (diff)
downloadmodelthing-957c2f75ceccfab3d8a8e546961db5f053876689.tar.gz
modelthing-957c2f75ceccfab3d8a8e546961db5f053876689.zip
radically simplify scope of parsing
Parsing arbitrary files, packages, blocks, connectors, etc caused the compilation time for this parser to explode exponentially, and resulted in huge parser.rs and executable files. This commit rips out all those features.
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 fe87ef0..bac22f1 100644
--- a/modelica-parser-lalrpop/examples/parse_file.rs
+++ b/modelica-parser-lalrpop/examples/parse_file.rs
@@ -25,7 +25,7 @@ fn main() {
}
let striped = modelica_parser::strip_comments(&raw);
- let result = modelica_parser::parser::parse_file(&striped);
+ let result = modelica_parser::parse_model(&striped);
match result {
Ok(_) => println!("=== {}: OK", input),