diff options
author | Yves Orton <demerphq@gmail.com> | 2006-05-28 18:24:59 +0200 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2006-05-29 12:38:09 +0000 |
commit | 3dab1dad3c281a8a3802c3e053703d7cabca032a (patch) | |
tree | 9a20f0a4eea8eb9ed9e41c8633d91396a4399d62 /regcomp.sym | |
parent | b4244ddc1fb37466a15a6ac6569133e40413ca6f (diff) | |
download | perl-3dab1dad3c281a8a3802c3e053703d7cabca032a.tar.gz |
Re: [PATCH] More regex optimisations and debug enhancements (including Andys stuff too)
Message-ID: <9b18b3110605280724u54a9c53bn3b20692b6fe4f1c3@mail.gmail.com>
p4raw-id: //depot/perl@28325
Diffstat (limited to 'regcomp.sym')
-rw-r--r-- | regcomp.sym | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/regcomp.sym b/regcomp.sym index 19d729eb9d..1a2bd3101b 100644 --- a/regcomp.sym +++ b/regcomp.sym @@ -3,6 +3,11 @@ # Empty rows and #-comment rows are ignored. +# Note that the order in this file is important. +# +# Add new regops to the end, and do not re-order the existing ops. +# + # Exit points END END, no End of program. SUCCEED END, no Return from a subroutine, basically. @@ -116,7 +121,12 @@ RENUM BRANCHJ,off 1 1 Group with independently numbered parens. OPTIMIZED NOTHING,off Placeholder for dump. # Trie Related (behave the same as A|LIST|OF|WORDS would) -TRIE TRIE, trie 1 Match one or more of many EXACT strings -TRIEF TRIE, trie 1 Match one or more of many EXACTF strings -TRIEFL TRIE, trie 1 Match one or more of many EXACTFL strings - +TRIE TRIE, trie 1 Match many EXACT(FL?)? at once. flags==type +TRIEC TRIE, trie 1 Trie + charclass. (unused at present) + +# Special opcode with the property that no opcode in a compiled program +# will ever be of this type. Thus it can be used as a flag value that +# no other opcode has been seen. END is used similarly, in that an END +# node cant be optimized. So END implies "unoptimizable" and PSEUDO mean +# "not seen anything to optimize yet". +PSEUDO PSEUDO,off Pseudo opcode for internal use. |