X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=regcomp.sym;h=1a2bd3101b2078228e98ea0ca083b4b87325ca0f;hb=0295a53a2a0d7b08c078ea9d195ec919c7df2a35;hp=1bcdecb48b235c2cd6b343bfaa79fafa65fdfab4;hpb=a3621e74372f5d2c10ed0d2a21195cab42a5be54;p=p5sagit%2Fp5-mst-13.2.git diff --git a/regcomp.sym b/regcomp.sym index 1bcdecb..1a2bd31 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. @@ -60,11 +65,6 @@ EXACT EXACT, sv Match this string (preceded by length). EXACTF EXACT, sv Match this string, folded (prec. by length). EXACTFL EXACT, sv Match this string, folded in locale (w/len). -# 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 - # Do nothing NOTHING NOTHING,no Match empty string. # A variant of above which delimits a group, thus stops optimizations @@ -119,3 +119,14 @@ RENUM BRANCHJ,off 1 1 Group with independently numbered parens. # This is not really a node, but an optimized away piece of a "long" node. # To simplify debugging output, we mark it as if it were a node OPTIMIZED NOTHING,off Placeholder for dump. + +# Trie Related (behave the same as A|LIST|OF|WORDS would) +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.