1PPIx::Regexp::Constant(U3s)er Contributed Perl DocumentatPiPoInx::Regexp::Constant(3)
2
3
4

NAME

6       PPIx::Regexp::Constant - Constants for the PPIx::Regexp system
7

SYNOPSIS

9        use PPIx::Regexp::Constant qw{ TOKEN_UNKNOWN }
10        print "An unknown token's class is TOKEN_UNKNOWN\n";
11

INHERITANCE

13       "PPIx::Regexp::Constant" is an Exporter.
14
15       "PPIx::Regexp::Constant" has no descendants.
16

DETAILS

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_PROHIBITED_BY_STRICT
105       An appropriate error message for an unknown entity created because
106       'strict' was in effect. This is rank ad-hocery, and more than usually
107       subject to being changed, without any notice whatsoever. Caveat user.
108
109   NODE_UNKNOWN
110       The name of the class that represents an unknown node. That is,
111       PPIx::Regexp::Node::Unknown.
112
113   RE_CAPTURE_NAME
114       A string representation of a regular expression that matches the name
115       of a named capture buffer.
116
117   REGEXP_REF
118       This is the result of "ref qr{}".
119
120   SCALAR_REF
121       This is the result of "ref \0".
122
123   STRUCTURE_UNKNOWN
124       The name of the class that represents an unknown structure. That is,
125       PPIx::Regexp::Structure::Unknown.
126
127   SUFFICIENT_UTF8_SUPPORT_FOR_WEIRD_DELIMITERS
128       A Boolean which is true if the running version of Perl has UTF-8
129       support sufficient for our purposes.
130
131       Currently that means 5.8.3 or greater, with the specific requirements
132       being "use open qw{ :std :encoding(utf-8) }", "/\p{Mark}/", and the
133       ability to parse things like "qr \N{U+FFFF}foo\N{U+FFFF}".
134
135   TOKEN_LITERAL
136       The name of the class that represents a literal token. That is,
137       PPIx::Regexp::Token::Literal.
138
139   TOKEN_UNKNOWN
140       The name of the class that represents the unknown token. That is,
141       PPIx::Regexp::Token::Unknown.
142

SUPPORT

144       Support is by the author. Please file bug reports at
145       <https://rt.cpan.org>, or in electronic mail to the author.
146

AUTHOR

148       Thomas R. Wyant, III wyant at cpan dot org
149
151       Copyright (C) 2009-2020 by Thomas R. Wyant, III
152
153       This program is free software; you can redistribute it and/or modify it
154       under the same terms as Perl 5.10.0. For more details, see the full
155       text of the licenses in the directory LICENSES.
156
157       This program is distributed in the hope that it will be useful, but
158       without any warranty; without even the implied warranty of
159       merchantability or fitness for a particular purpose.
160
161
162
163perl v5.30.1                      2020-02-10         PPIx::Regexp::Constant(3)
Impressum