Repository navigation
Break modifiers (Modelica 3.6 selective model extension) (0.2.2) - #32
Merged
Merged
Conversation
extends A(break x), extends A(break connect(a, b)) and modifier values x = break, as in omc's Modelica.g (Absyn INHERITANCEBREAK and BREAK; needs the Absyn with them). Assisted-by: Claude Opus 5.5
Assisted-by: Claude Opus 5.5
… built The constructors are looked up by name without asserts; the syntax that builds a record the loaded Absyn lacks raises a Julia error instead. A library built from a newer grammar then still parses everything else with an older Absyn. Assisted-by: Claude Opus 5.5
Assisted-by: Claude Opus 5.5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Parses Modelica 3.6 selective model extension, following omc's Modelica.g:
extends A(break x),extends A(break connect(a, b))(AbsynINHERITANCEBREAK) andx = break(AbsynBREAK). Only extends clauses acceptbreak x/break connect(...).The generated header now looks Absyn constructors up without asserts: a record missing from the loaded Absyn raises a Julia error only where that syntax is parsed, so a newer library still works with Absyn 1.3.5 (
breakis an error there, everything else parses).Version 0.2.2, Absyn 1.4 (OpenModelica/Absyn.jl#5). Checked: MSL 3.2.3, 4.0.0, 4.1.0 and Buildings 13 parse to identical Absyn with the old and new library; new testset "Break modifiers". The library is generated from Absyn master, so CI here passes once Absyn#5 is merged.
🤖 Generated with Claude Code