diff --git a/Project.toml b/Project.toml index 8a8cc9f..9390aff 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "Absyn" uuid = "ce2f92e2-a952-11e9-0543-8b443f216f1d" authors = ["johti "] -version = "1.3.5" +version = "1.4.0" [deps] ExportAll = "ad2082ca-a69e-11e9-38fa-e96309a31fe4" MetaModelica = "9d7f2a79-07b5-5542-8b19-c0100dda6b06" diff --git a/src/Absyn.jl b/src/Absyn.jl index d1657e7..ba670b7 100644 --- a/src/Absyn.jl +++ b/src/Absyn.jl @@ -650,6 +650,13 @@ end constrainClass #= class definition or declaration =#::Option{ConstrainClass} info #= needed because ElementSpec does not contain this info; Element does =#::Info end + + #= Selective model extension (Modelica 3.6), `extends A(break x)` or `extends A(break + connect(a, b))`. `break x` is stored as connect(break, x), as omc does. =# + @Record INHERITANCEBREAK begin + cnct::Equation + info::Info + end end #= The keywords redeclare and replacable can be given in three different kombinations, each one by themself or the both combined. =# @@ -890,6 +897,10 @@ end exp::Exp commentAfter::List{String} end + + #= `break` as a modifier's value (Modelica 3.6, `x = break`): removes the binding. =# + @Record BREAK begin + end end #= case in match or matchcontinue =#