| 109 |
item is either implicit in the opcode or contained in the data bytes that |
item is either implicit in the opcode or contained in the data bytes that |
| 110 |
follow it. |
follow it. |
| 111 |
|
|
| 112 |
In many cases below "two-byte" data values are specified. This is in fact just |
In many cases below LINK_SIZE data values are specified for offsets within the |
| 113 |
a default when the number is an offset within the compiled pattern. PCRE can be |
compiled pattern. The default value for LINK_SIZE is 2, but PCRE can be |
| 114 |
compiled to use 3-byte or 4-byte values for these offsets (impairing the |
compiled to use 3-byte or 4-byte values for these offsets (impairing the |
| 115 |
performance). This is necessary only when patterns whose compiled length is |
performance). This is necessary only when patterns whose compiled length is |
| 116 |
greater than 64K are going to be processed. In this description, we assume the |
greater than 64K are going to be processed. In this description, we assume the |
| 117 |
"normal" compilation options. "Two-byte" data values that are counts (e.g. for |
"normal" compilation options. Data values that are counts (e.g. for |
| 118 |
quantifiers) are always just two bytes. |
quantifiers) are always just two bytes long. |
| 119 |
|
|
| 120 |
A list of all the opcodes follows: |
A list of the opcodes follows: |
| 121 |
|
|
| 122 |
Opcodes with no following data |
Opcodes with no following data |
| 123 |
------------------------------ |
------------------------------ |
| 149 |
OP_EXTUNI match an extended Unicode character |
OP_EXTUNI match an extended Unicode character |
| 150 |
OP_ANYNL match any Unicode newline sequence |
OP_ANYNL match any Unicode newline sequence |
| 151 |
|
|
| 152 |
|
OP_ACCEPT ) |
| 153 |
|
OP_COMMIT ) |
| 154 |
|
OP_FAIL ) These are Perl 5.10's "backtracking |
| 155 |
|
OP_PRUNE ) control verbs". |
| 156 |
|
OP_SKIP ) |
| 157 |
|
OP_THEN ) |
| 158 |
|
|
| 159 |
|
|
| 160 |
Repeating single characters |
Repeating single characters |
| 161 |
--------------------------- |
--------------------------- |
| 411 |
data. |
data. |
| 412 |
|
|
| 413 |
Philip Hazel |
Philip Hazel |
| 414 |
June 2007 |
August 2007 |