Skip to content

Fix component definition rule to match McCode instrument.y - #302

Merged
g5t merged 2 commits into
mainfrom
301-parsing-of-coponent-definition-files-is-out-of-sync-with-upstream-mccode
Aug 17, 2026
Merged

Fix component definition rule to match McCode instrument.y#302
g5t merged 2 commits into
mainfrom
301-parsing-of-coponent-definition-files-is-out-of-sync-with-upstream-mccode

Conversation

@g5t

@g5t g5t commented Aug 17, 2026

Copy link
Copy Markdown
Collaborator

The INHERIT keyword was introduced to disambiguate COPY in components from COPY({identifier}) in instruments.
An ADR in McCode indicated that the change was for component sections and the change in component definition was overlooked here.

This PR adds INHERIT as an allowed copying keyword to the component definition statement. If the targeted McCode runtime version is older than v3.5.31 DEFINE COMPONENT carbon COPY source is expected while for later versions DEFINE COMPONENT descendant INHERIT ancestor is expected -- an informative log entry is written if the opposite keyword is provided but no error is raised.

@g5t g5t linked an issue Aug 17, 2026 that may be closed by this pull request
@g5t
g5t merged commit 0df2ed7 into main Aug 17, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Parsing of coponent definition files is out of sync with upstream McCode

1 participant