KOS_OP_MATCH_PASS
Style: EXTRA (RAW, RAW, CONST, RAW): mark depth, cursor depth, names tuple, group flag.
Stack:
[...]->[..., value]; cannot miss.Semantics: Push one repeat pass’s value. When any slot of the mark at depth
a0is filled, the filled slots keyed by their names ina2: a dict whena3is 0, the captures asMATCH_CAPTURESgives them whena3is set. When no slot is filled, the span from the mark’s position to the cursor at deptha1, asMATCH_SPANgives it.Invariants:
a2is a tuple; Code construction raisesValueErrorotherwise.Compiler form: Emitted by the match compiler at the end of each pass of a captured repeat, with
a3set when the repeat’s body is a group.