Skip to content

Support SIZE of direction-annotated channel name (#63)#102

Merged
associate-1 merged 1 commit intomainfrom
fix/size-dir-annotation-63
Mar 4, 2026
Merged

Support SIZE of direction-annotated channel name (#63)#102
associate-1 merged 1 commit intomainfrom
fix/size-dir-annotation-63

Conversation

@associate-1
Copy link
Member

Summary

  • Strip trailing ?/! direction suffix when parsing SIZE operand, so SIZE monitor? correctly transpiles to len(monitor)
  • Adds parser unit tests for SIZE monitor? and SIZE out!
  • Adds e2e test with a proc using SIZE out! in a replicator

Test plan

  • Parser tests pass: go test ./parser -run TestSizeExpression
  • E2E test passes: go test ./codegen -run TestE2E_SizeDirAnnotated
  • Full test suite passes: go test ./...

Closes #63

🤖 Generated with Claude Code

Strip trailing ? or ! direction suffix when parsing SIZE operand,
so `SIZE monitor?` correctly transpiles to `len(monitor)`.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@associate-1 associate-1 merged commit 8555305 into main Mar 4, 2026
1 check 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.

Support SIZE of direction-annotated channel name

2 participants