Compiler special forms
koskari.compile.specials
Special form handlers for the Koskari compiler.
- koskari.compile.specials.special(form_symbol, *, patterns, unpack=None)
Build a
Syntaxdispatcher whose arms areSpecialTransforminstances wrapping the decorated function.unpackselects one of three fixed invoke shapes at decoration time (no per-call unpack dispatch)- Parameters:
form_symbol – primary compile-time head symbol for this form
patterns – one
matcher.Patternor an iterable (try-order)unpack – only for this decorator:
None(receivecompiler, source_obj),match(receivecompiler, captures_dict), orkwargs(captures merged aftercompiler). Formatchandkwargs,captures_dictincludes only slots the matcher bound; values are matcher outputs (Datumwrappers may be present). Not available onbuild_*rule rows.