From ec4f8f86049ce2e233c6cd53d71cd145456e60cf Mon Sep 17 00:00:00 2001 From: JKRT Date: Sat, 10 Oct 2026 09:57:40 +0200 Subject: [PATCH 1/2] Selective model extension (Modelica 3.6): Mod.BREAK_COMPONENT, Mod.BREAK_CONNECT Assisted-by: Claude Opus 5.5 --- src/SCode.jl | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/SCode.jl b/src/SCode.jl index ebdadbd..23b950d 100644 --- a/src/SCode.jl +++ b/src/SCode.jl @@ -196,6 +196,18 @@ end element #= The new element declaration. =#::Element end + #= Selective model extension (Modelica 3.6): `extends A(break x)` removes component x. =# + @Record BREAK_COMPONENT begin + info::SourceInfo + end + + #= `extends A(break connect(a, b))` removes that connect-equation of the base class. =# + @Record BREAK_CONNECT begin + lhs::Absyn.ComponentRef + rhs::Absyn.ComponentRef + info::SourceInfo + end + @Record NOMOD begin end end From ba7bd055fc7717012b16c5ed8764f01540e8a06f Mon Sep 17 00:00:00 2001 From: JKRT Date: Sat, 10 Oct 2026 11:14:50 +0200 Subject: [PATCH 2/2] SCode 1.3.0 Assisted-by: Claude Opus 5.5 --- Project.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Project.toml b/Project.toml index 176b2f9..b7381d7 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "SCode" uuid = "350d45b0-c210-11e9-3b9e-fdad65bb3d46" authors = ["johti "] -version = "1.2.0" +version = "1.3.0" [deps] Absyn = "ce2f92e2-a952-11e9-0543-8b443f216f1d"