module RegularExpression::Bytecode::Insns
Constants
- Fail
Fail
to match the string at the current index. Increment the starting index and try again if possible.- GuardBegin
If we're at the beginning of the string, then jump to the then instruction. Otherwise fail the entire match.
- GuardEnd
If we're at the end of the string, then jump to the then instruction. Otherwise fail the match at the current index.
- Jump
Jump
directly to the target instruction.- JumpAny
If it's possible to read a character off the input, then do so and jump to the target instruction.
- JumpRange
If it's possible to read a character off the input and that character is within the range of possible values, then do so and jump to the target instruction.
- JumpRangeInvert
If it's possible to read a character off the input and that character is not within the range of possible values, then do so and jump to the target instruction.
- JumpValue
If it's possible to read a character off the input and that character matches the char value, then do so and jump to the target instruction.
- JumpValuesInvert
If it's possible to read a character off the input and that character is not contained within the list of values, then do so and jump to the target instruction.
- Match
Successfully match the string and stop executing instructions.
- PopIndex
Pop the string index off the stack. This is necessary so that we can support backtracking.
- PushIndex
Push the current string index onto the stack. This is necessary to support backtracking so that we can pop it off later when we want to go backward.