1PPIx::Regexp::Constant(U3s)er Contributed Perl DocumentatPiPoInx::Regexp::Constant(3)
2
3
4
6 PPIx::Regexp::Constant - Constants for the PPIx::Regexp system
7
9 use PPIx::Regexp::Constant qw{ TOKEN_UNKNOWN }
10 print "An unknown token's class is TOKEN_UNKNOWN\n";
11
13 "PPIx::Regexp::Constant" is an Exporter.
14
15 "PPIx::Regexp::Constant" has no descendants.
16
18 This module defines manifest constants for use by the various
19 "PPIx::Regexp" modules. These constants are to be considered private to
20 the "PPIx::Regexp" system, and the author reserves the right to change
21 them without notice.
22
23 This module exports the following manifest constants:
24
25 @CARP_NOT
26 This global variable contains the names of all modules in the package.
27
28 ARRAY_REF
29 This is the result of "ref []".
30
31 CODE_REF
32 This is the result of "ref sub {}".
33
34 COOKIE_CLASS
35 The name of the cookie used to control the construction of character
36 classes.
37
38 This cookie is set in PPIx::Regexp::Token::Structure when the left
39 square bracket is encountered, and cleared in the same module when a
40 right square bracket is encountered.
41
42 COOKIE_LOOKAROUND_ASSERTION
43 The name of the cookie used to control the parsing of zero-width
44 assertions.
45
46 This cookie is set in PPIx::Regexp::Token::GroupType::Assertion, and it
47 persists until the end of the assertion.
48
49 COOKIE_QUANT
50 The name of the cookie used to control the construction of curly
51 bracketed quantifiers.
52
53 This cookie is set in PPIx::Regexp::Token::Structure when a left curly
54 bracket is encountered. It requests itself to be cleared on
55 encountering anything other than a literal comma, a literal digit, or
56 an interpolation, or if more than one comma is encountered. If it
57 survives until PPIx::Regexp::Token::Structure processes the right curly
58 bracket, it is cleared there.
59
60 COOKIE_QUOTE
61 The name of the cookie used to control the parsing of "\Q ... \E"
62 quoted literals.
63
64 This cookie is set in PPIx::Regexp::Token::Control when a "\Q" is
65 encountered, and it persists until the next "\E".
66
67 COOKIE_REGEX_SET
68 The name of the cookie used to control regular expression sets.
69
70 HASH_REF
71 This is the result of "ref {}".
72
73 LITERAL_LEFT_CURLY_ALLOWED
74 The Perl version at which allowed unescaped literal left curly brackets
75 were removed. This may make more sense if I mention that its value is
76 "undef".
77
78 LITERAL_LEFT_CURLY_REMOVED_PHASE_1
79 The Perl version at which the first phase of unescaped literal left
80 curly bracket removal took place. The value of this constant is
81 '5.025001'.
82
83 LITERAL_LEFT_CURLY_REMOVED_PHASE_2
84 The Perl version at which the second phase of unescaped literal left
85 curly bracket removal took place. The value of this constant is
86 "undef", but it will be assigned a value when the timing of the second
87 phase is known.
88
89 LITERAL_LEFT_CURLY_REMOVED_PHASE_3
90 The Perl version at which the third phase of unescaped literal left
91 curly bracket removal took place. This is the removal of curly brackets
92 after a left parenthesis. The value of this constant is "undef", but it
93 will be assigned a value when the timing of the second phase is known.
94
95 MINIMUM_PERL
96 The minimum version of Perl understood by this parser, as a float. It
97 is currently set to 5.000, since that is the minimum version of Perl
98 accessible to the author.
99
100 MODIFIER_GROUP_MATCH_SEMANTICS
101 The name of the PPIx::Regexp::Token::Modifier group used to control
102 match semantics.
103
104 MSG_LOOK_BEHIND_TOO_LONG
105 An appropriate error message for an unknown entity created from a
106 quantifier which would make a look-behind assertion too long. This is
107 cribbed verbatim from the Perl error message.
108
109 MSG_PROHIBITED_BY_STRICT
110 An appropriate error message for an unknown entity created because
111 'strict' was in effect. This is rank ad-hocery, and more than usually
112 subject to being changed, without any notice whatsoever. Caveat user.
113
114 NODE_UNKNOWN
115 The name of the class that represents an unknown node. That is,
116 PPIx::Regexp::Node::Unknown.
117
118 RE_CAPTURE_NAME
119 A string representation of a regular expression that matches the name
120 of a named capture buffer.
121
122 REGEXP_REF
123 This is the result of "ref qr{}".
124
125 SCALAR_REF
126 This is the result of "ref \0".
127
128 STRUCTURE_UNKNOWN
129 The name of the class that represents an unknown structure. That is,
130 PPIx::Regexp::Structure::Unknown.
131
132 SUFFICIENT_UTF8_SUPPORT_FOR_WEIRD_DELIMITERS
133 A Boolean which is true if the running version of Perl has UTF-8
134 support sufficient for our purposes.
135
136 Currently that means 5.8.3 or greater, with the specific requirements
137 being "use open qw{ :std :encoding(utf-8) }", "/\p{Mark}/", and the
138 ability to parse things like "qr \N{U+FFFF}foo\N{U+FFFF}".
139
140 TOKEN_LITERAL
141 The name of the class that represents a literal token. That is,
142 PPIx::Regexp::Token::Literal.
143
144 TOKEN_UNKNOWN
145 The name of the class that represents the unknown token. That is,
146 PPIx::Regexp::Token::Unknown.
147
148 VARIABLE_LENGTH_LOOK_BEHIND_INTRODUCED
149 The version in which variable-length look-behinds were introduced.
150 Currently this is '5.029009', and implies the limited lookbehind
151 introduced at or about that version.
152
154 Support is by the author. Please file bug reports at
155 <https://rt.cpan.org/Public/Dist/Display.html?Name=PPIx-Regexp>,
156 <https://github.com/trwyant/perl-PPIx-Regexp/issues>, or in electronic
157 mail to the author.
158
160 Thomas R. Wyant, III wyant at cpan dot org
161
163 Copyright (C) 2009-2021 by Thomas R. Wyant, III
164
165 This program is free software; you can redistribute it and/or modify it
166 under the same terms as Perl 5.10.0. For more details, see the full
167 text of the licenses in the directory LICENSES.
168
169 This program is distributed in the hope that it will be useful, but
170 without any warranty; without even the implied warranty of
171 merchantability or fitness for a particular purpose.
172
173
174
175perl v5.32.1 2021-03-26 PPIx::Regexp::Constant(3)