aboutsummaryrefslogtreecommitdiffstats
path: root/src/modelica_parser.lalrpop
diff options
context:
space:
mode:
authorbnewbold <bnewbold@robocracy.org>2016-10-29 16:29:00 -0700
committerbnewbold <bnewbold@robocracy.org>2016-10-29 16:29:00 -0700
commitdf2a28f0381971cbc48ced38d9c12a780bf6f09f (patch)
tree701f9cc805265bd36ddb64d5bc404b272f1e0dee /src/modelica_parser.lalrpop
parenteefcae61d01874721862454deb8b60eac8b8a3a8 (diff)
downloadmodelthing-df2a28f0381971cbc48ced38d9c12a780bf6f09f.tar.gz
modelthing-df2a28f0381971cbc48ced38d9c12a780bf6f09f.zip
PartialEq and rename modelica AST
Diffstat (limited to 'src/modelica_parser.lalrpop')
-rw-r--r--src/modelica_parser.lalrpop6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modelica_parser.lalrpop b/src/modelica_parser.lalrpop
index 52fd5eb..1b7861b 100644
--- a/src/modelica_parser.lalrpop
+++ b/src/modelica_parser.lalrpop
@@ -1,5 +1,5 @@
use std::str::FromStr;
-// XXX: use modelica_ast::{Model, Component, ComponentPrefix, Connection, SimpleEquation, Bin};
+// XXX: use modelica_ast::{ModelicaModel, Component, ComponentPrefix, Connection, SimpleEquation, Bin};
use modelica_ast::*;
// This is an incomplete, non-standards-compliant, minimum-viable parser
@@ -28,9 +28,9 @@ pub float: f64 = {
// Grammar
-pub model: Model = {
+pub model: ModelicaModel = {
"model" <n:identifier> <cd:component_declaration*> "equation" <cc:connect_clause*> <se:simple_equation*> "end" identifier ";" =>
- Model { name:n, components: cd, connections: cc, equations: se, extends: vec![] },
+ ModelicaModel { name:n, components: cd, connections: cc, equations: se, extends: vec![] },
};
component_declaration: Component = {