Skip to content

Conversation

@jClugstor
Copy link
Member

Checklist

  • Appropriate tests were added
  • Any code changes were done in a way that does not break public API
  • All documentation related to code changes were updated
  • The new code follows the
    contributor guidelines, in particular the SciML Style Guide and
    COLPRAC.
  • Any new documentation only uses public API

Additional context

This should at least let models with annotations parse, they just won't do anything.
#38

ChrisRackauckas and others added 2 commits September 9, 2025 07:25
- Add BaseModelicaAnnotation AST node for annotations within models
- Modify equation section parsing to allow annotations alongside equations
- Update BaseModelicaComposition to handle annotations in equation lists
- Add annotation evaluation that returns nothing (annotations are metadata)
- Filter out nothing values from equation evaluation
- Fixes SciML#38: annotation(experiment(...)) now parses correctly in equation blocks

The issue was that annotations like experiment were appearing inside equation
blocks, but the parser only allowed pure equations there. Now annotations
are parsed as BaseModelicaAnnotation nodes and treated as metadata.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@jClugstor jClugstor merged commit cfbfcff into SciML:main Sep 27, 2025
9 of 10 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.

2 participants