Skip to content

Instruction

Instruction = { char: string; op: "char"; } | { op: "any"; } | { op: "anyByte"; } | { label: string; op: "predicate"; test: (char) => boolean; } | { op: "assertStart"; } | { op: "assertEnd"; } | { op: "jmp"; target: number; } | { first: number; op: "split"; second: number; } | { op: "save"; slot: number; } | { op: "match"; }

Defined in: packages/format-regex/src/vm/program.ts:9

A single compiled instruction — Thompson/Pike-style bytecode.

any is the user-visible . (excludes a line terminator); anyByte unconditionally consumes one character regardless of value and is never produced from pattern syntax — compileProgram uses it only to advance the implicit unanchored-scan start position.