KOS_OP_MATCH_NEXT
Style: EXTRA (LABEL, RAW): label, cursor depth.
Stack:
[...]->[..., e]; jump toa0with nothing pushed on a miss.Semantics: Pull the next element from the cursor at depth
a1and advance the cursor. From a pair spineeis aDatumover the cell’s car, read throughDatum, carrying the cell’s position; from a tuple, list or other sequence it is the item; from a single-value cursor, the value. A miss at the cursor’s end, or when the spine cell at the cursor is no longer a pair.Compiler form: Emitted by the match compiler for each pattern that consumes one element, ahead of its test. Right after a
MATCH_SCOPEon the same cursor, the pair is fused intoMATCH_SCOPE_NEXT.