You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add a check-only example for payload variants and exhaustive matching #403
documentationIssues or enhancements related to the documentation.good first issueIssues that are good for newcomers or first-time contributors.needs testingIssues that require additional testing or verification.
The variant frontend is implemented, but there is no maintained example showing the intended declaration, construction, payload binding, generic use, and exhaustive match syntax. LLVM lowering is deliberately not available yet, so the example must document the frontend contract honestly.
Scope
Add one focused example under examples/.
Include a generic payload variant, a payload-free case, constructors, and an exhaustive match with bound payload values.
Keep it valid under wavec check.
Add a short header comment saying native code generation awaits the backend task.
Do not add backend lowering or represent variants as integer enums.
Completion criteria
wavec check accepts the example.
tools/check_wave_corpus.py includes and passes it.
The example is short enough to teach from.
Syntax and semantics match the tests in front/parser/tests/variant_frontend.rs.
documentationIssues or enhancements related to the documentation.good first issueIssues that are good for newcomers or first-time contributors.needs testingIssues that require additional testing or verification.
Activity