Feature/semantic improvements - #20
Closed
HuiJun wants to merge 4 commits into
Closed
Conversation
- Add isCompatibleTyping() function for relaxed type checking - Allow part/attribute/item/occurrence to cross-type (all structural classifiers) - Fixes 'attribute cannot be typed by partDef' errors in parameters - Training examples progress: 10/34 clean (was 5/34) - Update test to reflect new behavior
- Always use parseConstraintBody for constraint defs (handles mixed members + expressions)
- Add 'assert' and 'assume' as constraint usage synonyms
- Handle redefines shorthand in constraint bodies
- Support empty entry/do/exit actions with semicolons
- Add standalone 'then' succession in state bodies
- Consume semicolons after entry/do/exit members
Training examples progress: 29/34 clean (85%, was 10/34)
Fixes:
- Bare constraint expressions without assert/assume keywords
- 'assert name { body }' shorthand for constraint usages
- 'redefines x = value' statements in constraint bodies
- 'entry; then normal;' state succession patterns
- Add RedefinesTarget field to BodyParam for lambda parameters with :> syntax
- Handle nested action declarations in action bodies (action name { body })
- Make 'requirement' keyword optional in satisfy syntax (satisfy X by Y)
Training examples progress: 31/34 clean (91%, was 29/34)
Fixes:
- Lambda params with redefines: in p:>ISQ::mass
- Nested actions inside action bodies
- Satisfy shorthand without 'requirement' keyword
Implemented: - Return statement with redefines + typing: return :>> name : Type = expr - Perform statements in part bodies: perform actionRef [:>> name]; - Temporal accept transitions: accept at <timeExpr> then <state> - Inline behavioral statements in entry actions: entry assign x := y; - Feature chains in satisfy: satisfy X by Y.Z; - Proper perform detection (distinguish from action declarations) Training examples: 34/34 clean (100%) Note: Some stdlib test failures remain - embedded stdlib differs from disk version
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.
No description provided.