implement Enum::Variant match patterns in parser and both codegens

Parser now handles `SomeEnum::Variant` in match arm patterns, emitting
a Variant pattern node with enum_name and variant fields. Previously
these fell through to Binding, producing broken codegen.

JS codegen: emit str_eq check against the variant name string (El enums
are plain strings at runtime). C codegen: same, via EL_STR + str_eq.

Rebuild elc to pick up the parser change.
This commit is contained in:
Will Anderson
2026-05-04 10:35:35 -05:00
parent a54b2bebf9
commit 0f1da43a97
4 changed files with 26 additions and 4 deletions
BIN
View File
Binary file not shown.