diff options
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 = { |