Add compile-match to bytecode compiler, use match in compile-list
The JIT compiler now handles the match special form, emitting the same DUP/compare/JUMP_IF_FALSE bytecode pattern as case. Supports literal patterns (string, number, boolean, nil), _ wildcard, symbol binding, and quoted symbol patterns. This fixes the infinite JIT retry loop where compile-list (which used match for dispatch) couldn't be JIT-compiled, causing parse-loop to endlessly fall back to CEK evaluation. 1166 passed, 0 failed. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
1268
lib/compiler.sx
1268
lib/compiler.sx
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user