diff options
author | bnewbold <bnewbold@robocracy.org> | 2016-10-29 16:29:00 -0700 |
---|---|---|
committer | bnewbold <bnewbold@robocracy.org> | 2016-10-29 16:29:00 -0700 |
commit | df2a28f0381971cbc48ced38d9c12a780bf6f09f (patch) | |
tree | 701f9cc805265bd36ddb64d5bc404b272f1e0dee /src/modelica_parser.lalrpop | |
parent | eefcae61d01874721862454deb8b60eac8b8a3a8 (diff) | |
download | modelthing-df2a28f0381971cbc48ced38d9c12a780bf6f09f.tar.gz modelthing-df2a28f0381971cbc48ced38d9c12a780bf6f09f.zip |
PartialEq and rename modelica AST
Diffstat (limited to 'src/modelica_parser.lalrpop')
-rw-r--r-- | src/modelica_parser.lalrpop | 6 |
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 = { |