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_QUANT
43 The name of the cookie used to control the construction of curly
44 bracketed quantifiers.
45
46 This cookie is set in PPIx::Regexp::Token::Structure when a left curly
47 bracket is encountered. It requests itself to be cleared on
48 encountering anything other than a literal comma, a literal digit, or
49 an interpolation, or if more than one comma is encountered. If it
50 survives until PPIx::Regexp::Token::Structure processes the right curly
51 bracket, it is cleared there.
52
53 COOKIE_QUOTE
54 The name of the cookie used to control the parsing of "\Q ... \E"
55 quoted literals.
56
57 This cookie is set in PPIx::Regexp::Token::Control when a "\Q" is
58 encountered, and it persists until the next "\E".
59
60 COOKIE_REGEX_SET
61 The name of the cookie used to control regular expression sets.
62
63 HASH_REF
64 This is the result of "ref {}".
65
66 LITERAL_LEFT_CURLY_ALLOWED
67 The Perl version at which allowed unescaped literal left curly brackets
68 were removed. This may make more sense if I mention that its value is
69 "undef".
70
71 LITERAL_LEFT_CURLY_REMOVED_PHASE_1
72 The Perl version at which the first phase of unescaped literal left
73 curly bracket removal took place. The value of this constant is
74 '5.025001'.
75
76 LITERAL_LEFT_CURLY_REMOVED_PHASE_2
77 The Perl version at which the second phase of unescaped literal left
78 curly bracket removal took place. The value of this constant is
79 "undef", but it will be assigned a value when the timing of the second
80 phase is known.
81
82 LITERAL_LEFT_CURLY_REMOVED_PHASE_3
83 The Perl version at which the third phase of unescaped literal left
84 curly bracket removal took place. This is the removal of curly brackets
85 after a left parenthesis. The value of this constant is "undef", but it
86 will be assigned a value when the timing of the second phase is known.
87
88 MINIMUM_PERL
89 The minimum version of Perl understood by this parser, as a float. It
90 is currently set to 5.000, since that is the minimum version of Perl
91 accessible to the author.
92
93 MODIFIER_GROUP_MATCH_SEMANTICS
94 The name of the PPIx::Regexp::Token::Modifier group used to control
95 match semantics.
96
97 MSG_PROHIBITED_BY_STRICT
98 An appropriate error message for an unknown entity created because
99 'strict' was in effect. This is rank ad-hocery, and more than usually
100 subject to being changed, without any notice whatsoever. Caveat user.
101
102 NODE_UNKNOWN
103 The name of the class that represents an unknown node. That is,
104 PPIx::Regexp::Node::Unknown.
105
106 RE_CAPTURE_NAME
107 A string representation of a regular expression that matches the name
108 of a named capture buffer.
109
110 REGEXP_REF
111 This is the result of "ref qr{}".
112
113 SCALAR_REF
114 This is the result of "ref \0".
115
116 STRUCTURE_UNKNOWN
117 The name of the class that represents an unknown structure. That is,
118 PPIx::Regexp::Structure::Unknown.
119
120 SUFFICIENT_UTF8_SUPPORT_FOR_WEIRD_DELIMITERS
121 A Boolean which is true if the running version of Perl has UTF-8
122 support sufficient for our purposes.
123
124 Currently that means 5.8.3 or greater, with the specific requirements
125 being "use open qw{ :std :encoding(utf-8) }", "/\p{Mark}/", and the
126 ability to parse things like "qr \N{U+FFFF}foo\N{U+FFFF}".
127
128 TOKEN_LITERAL
129 The name of the class that represents a literal token. That is,
130 PPIx::Regexp::Token::Literal.
131
132 TOKEN_UNKNOWN
133 The name of the class that represents the unknown token. That is,
134 PPIx::Regexp::Token::Unknown.
135
137 Support is by the author. Please file bug reports at
138 <http://rt.cpan.org>, or in electronic mail to the author.
139
141 Thomas R. Wyant, III wyant at cpan dot org
142
144 Copyright (C) 2009-2019 by Thomas R. Wyant, III
145
146 This program is free software; you can redistribute it and/or modify it
147 under the same terms as Perl 5.10.0. For more details, see the full
148 text of the licenses in the directory LICENSES.
149
150 This program is distributed in the hope that it will be useful, but
151 without any warranty; without even the implied warranty of
152 merchantability or fitness for a particular purpose.
153
154
155
156perl v5.28.2 2019-05-25 PPIx::Regexp::Constant(3)