Skip to content

feat(patterns): add core pattern registry - #17

Merged
ofabiodev merged 4 commits into
mainfrom
add-core-pattern-registry
Aug 8, 2026
Merged

feat(patterns): add core pattern registry#17
ofabiodev merged 4 commits into
mainfrom
add-core-pattern-registry

Conversation

@ofabiodev

Copy link
Copy Markdown
Contributor

Summary

Adds the internal v0.1 pattern registry and resolves the initial core effects and events required by the compiler pipeline.

Changes

  • Add registration and resolution for effect, expression, condition, and event patterns
  • Add core support for send ... to ..., on load, and on tick
  • Add documented unknown and ambiguous pattern diagnostics
  • Preserve named token captures and source spans for future IR lowering
  • Reject duplicate, adjacent, and ambiguously matched placeholders

Testing

make test
cd src
go test ./... -count=1
go vet ./...
go test ./internal/patterns -shuffle=on -count=50
go test ./internal/patterns -cover

@ofabiodev ofabiodev added kind/feature New behavior or capability. kind/test Tests, fixtures, golden files, or test infrastructure. area/patterns Effects, expressions, conditions, events, and pattern registry. puff/syntax Puff language syntax and grammar behavior. puff/diagnostics Error messages, hints, notes, and source spans. labels Aug 8, 2026
@ofabiodev
ofabiodev merged commit 036d458 into main Aug 8, 2026
2 checks passed
@ofabiodev
ofabiodev deleted the add-core-pattern-registry branch August 8, 2026 11:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/patterns Effects, expressions, conditions, events, and pattern registry. kind/feature New behavior or capability. kind/test Tests, fixtures, golden files, or test infrastructure. puff/diagnostics Error messages, hints, notes, and source spans. puff/syntax Puff language syntax and grammar behavior.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant