Skip to content

fix: reject declarations in rule postludes - #663

Open
AysajanE wants to merge 1 commit into
Picolab:masterfrom
AysajanE:northset/M-122
Open

fix: reject declarations in rule postludes#663
AysajanE wants to merge 1 commit into
Picolab:masterfrom
AysajanE:northset/M-122

Conversation

@AysajanE

Copy link
Copy Markdown

Summary

Reject name/value declarations during parsing of rule postludes so the invalid construct fails with a ParseError instead of reaching compilation.

Change

  • packages/krl-parser/src/krl.ts
  • packages/krl-parser/test/postlude-declaration-errors.ts
  • packages/krl-parser/test/postludeStatements.ts
  • packages/krl-parser/test/ruleset.ts

Checks

  • npm --prefix packages/krl-parser test -- test/postlude-declaration-errors.ts test/postludeStatements.ts test/ruleset.ts — passed in a network-isolated container.

Fixes #595


AI assistance was used; I reviewed and own this change.

Verification

Northset proof-of-pass receipt M-122
Contributor self-run; not maintainer verification.

Signed-off-by: Aysajan Eziz <aeziz@northset.ai>
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.

Need a better parser/compile error message for mis-placed bindings/assignments

1 participant