Allium v2 - #6
Merged
Merged
Conversation
…fig expressions ALP-7: guidance: clause ordering validation in rule blocks ALP-9: contract declarations, expects/offers in surfaces ALP-10: cross-module config references (already supported, tests added) ALP-11: implies operator, expression-bearing invariants (top-level and entity-level) ALP-13: expression-form config defaults (already supported, tests added) Accept version 2 marker. 60 new tests.
Replace T/EntityMap/Future<ByteArray?> with concrete types matching Pattern 9. ALP-2 (type parameters) was rejected.
Lexer: remove Expects/Offers tokens, add At token for @. AST: replace Expects/Offers with ContractsClause and Annotation nodes. Parser: add contracts: clause parsing, @invariant/@guidance/@Guarantee annotation parsing, migration diagnostics for removed syntax. Remove validate_guidance_ordering (moved to future validator). Update fixtures and tests. Sync v2 language reference; align structural validator spec rule numbers to match. Remove prescriptive error catalogue from spec.
Tree-sitter grammar: contract/invariant declarations, implies and thin-arrow expressions, annotations, contracts clause, comma-separated block items. VS Code: TextMate keywords, operators, annotation pattern, snippets. Neovim: highlight queries. Emacs: regex and treesit font-lock, defun/imenu. TS parsers: contract/invariant/entity/value block parsing.
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.