From df2a28f0381971cbc48ced38d9c12a780bf6f09f Mon Sep 17 00:00:00 2001 From: bnewbold Date: Sat, 29 Oct 2016 16:29:00 -0700 Subject: PartialEq and rename modelica AST --- src/modelica_parser.lalrpop | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/modelica_parser.lalrpop') 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" "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 = { -- cgit v1.2.3