diff options
author | Karl Williamson <khw@cpan.org> | 2022-07-07 14:05:30 -0600 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2022-07-07 14:26:37 -0600 |
commit | ac5774295b983d28fdf7ca39b2c7fb13051d7293 (patch) | |
tree | f1d509cd4d98027ba237b60c3d4d6795579ff7ba /regcomp.sym | |
parent | abca373104cc0bd03c35cb4eafe43ccce48bfddc (diff) | |
download | perl-ac5774295b983d28fdf7ca39b2c7fb13051d7293.tar.gz |
regcomp.sym: Add commentary
Diffstat (limited to 'regcomp.sym')
-rw-r--r-- | regcomp.sym | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/regcomp.sym b/regcomp.sym index f4060a378d..4a6dff2c9b 100644 --- a/regcomp.sym +++ b/regcomp.sym @@ -211,13 +211,13 @@ TAIL NOTHING, no ; Match empty string. Can jump here from outsi #* (one character per match) are implemented with STAR #* and PLUS for speed and to minimize recursive plunges. #* -STAR STAR, node 0 V ; Match this (simple) thing 0 or more times. -PLUS PLUS, node 0 V ; Match this (simple) thing 1 or more times. +STAR STAR, node 0 V ; Match this (simple) thing 0 or more times: /A{0,}B/ where A is width 1 char +PLUS PLUS, node 0 V ; Match this (simple) thing 1 or more times: /A{1,}B/ where A is width 1 char -CURLY CURLY, sv 2 V ; Match this simple thing {n,m} times. -CURLYN CURLY, no 2 V ; Capture next-after-this simple thing -CURLYM CURLY, no 2 V ; Capture this medium-complex thing {n,m} times. -CURLYX CURLY, sv 2 V ; Match this complex thing {n,m} times. +CURLY CURLY, sv 2 V ; Match this (simple) thing {n,m} times: /A{m,n}B/ where A is width 1 char +CURLYN CURLY, no 2 V ; Capture next-after-this simple thing: /(A){m,n}B/ where A is width 1 char +CURLYM CURLY, no 2 V ; Capture this medium-complex thing {n,m} times: /(A){m,n}B/ where A is fixed-length +CURLYX CURLY, sv 2 V ; Match/Capture this complex thing {n,m} times. #*This terminator creates a loop structure for CURLYX WHILEM WHILEM, no 0 V ; Do curly processing and see if rest matches. |