This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Distinguish C- and perly- literals - PERLY_BRACE_CLOSE
[perl5.git] / perly.h
CommitLineData
e8fb9efb
NC
1/* -*- buffer-read-only: t -*-
2 !!!!!!! DO NOT EDIT THIS FILE !!!!!!!
3f5e9543 3 This file is built by regen_perly.pl from perly.y.
e8fb9efb
NC
4 Any changes made here will be lost!
5 */
6
53443c95 7#define PERL_BISON_VERSION 30005
f39ff1f3 8
d8118cad 9#ifdef PERL_CORE
53443c95 10/* A Bison parser, made by GNU Bison 3.5.1. */
4e4da3ac 11
a9f5ab8d 12/* Bison interface for Yacc-like parsers in C
38c8d7b1 13
53443c95 14 Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2020 Free Software Foundation,
a3815e44 15 Inc.
38c8d7b1 16
a9f5ab8d 17 This program is free software: you can redistribute it and/or modify
0de566d7 18 it under the terms of the GNU General Public License as published by
a9f5ab8d
LM
19 the Free Software Foundation, either version 3 of the License, or
20 (at your option) any later version.
38c8d7b1 21
0de566d7
DM
22 This program is distributed in the hope that it will be useful,
23 but WITHOUT ANY WARRANTY; without even the implied warranty of
24 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25 GNU General Public License for more details.
38c8d7b1 26
0de566d7 27 You should have received a copy of the GNU General Public License
a9f5ab8d 28 along with this program. If not, see <http://www.gnu.org/licenses/>. */
0de566d7 29
f05e27e5
DM
30/* As a special exception, you may create a larger work that contains
31 part or all of the Bison parser skeleton and distribute that work
32 under terms of your choice, so long as that work isn't itself a
33 parser generator using the skeleton or a modified version thereof
34 as a parser skeleton. Alternatively, if you modify or redistribute
35 the parser skeleton itself, you may (at your option) remove this
36 special exception, which will cause the skeleton and the resulting
37 Bison output files to be licensed under the GNU General Public
38 License without this special exception.
38c8d7b1 39
f05e27e5
DM
40 This special exception was added by the Free Software Foundation in
41 version 2.2 of Bison. */
0de566d7 42
a3815e44
DIM
43/* Undocumented macros, especially those whose name start with YY_,
44 are private implementation details. Do not rely on them. */
45
a9f5ab8d
LM
46/* Debug traces. */
47#ifndef YYDEBUG
48# define YYDEBUG 0
49#endif
50#if YYDEBUG
51extern int yydebug;
52#endif
53
54/* Token type. */
0de566d7
DM
55#ifndef YYTOKENTYPE
56# define YYTOKENTYPE
a9f5ab8d
LM
57 enum yytokentype
58 {
59 GRAMPROG = 258,
60 GRAMEXPR = 259,
61 GRAMBLOCK = 260,
62 GRAMBARESTMT = 261,
63 GRAMFULLSTMT = 262,
64 GRAMSTMTSEQ = 263,
996b0cb8 65 GRAMSUBSIGNATURE = 264,
c588171e 66 PERLY_BRACE_OPEN = 265,
d0a6a9c7
BZ
67 PERLY_BRACE_CLOSE = 266,
68 BAREWORD = 267,
69 METHOD = 268,
70 FUNCMETH = 269,
71 THING = 270,
72 PMFUNC = 271,
73 PRIVATEREF = 272,
74 QWLIST = 273,
75 FUNC0OP = 274,
76 FUNC0SUB = 275,
77 UNIOPSUB = 276,
78 LSTOPSUB = 277,
79 PLUGEXPR = 278,
80 PLUGSTMT = 279,
81 LABEL = 280,
82 FORMAT = 281,
83 SUB = 282,
84 SIGSUB = 283,
85 ANONSUB = 284,
86 ANON_SIGSUB = 285,
87 PACKAGE = 286,
88 USE = 287,
89 WHILE = 288,
90 UNTIL = 289,
91 IF = 290,
92 UNLESS = 291,
93 ELSE = 292,
94 ELSIF = 293,
95 CONTINUE = 294,
96 FOR = 295,
97 GIVEN = 296,
98 WHEN = 297,
99 DEFAULT = 298,
100 LOOPEX = 299,
101 DOTDOT = 300,
102 YADAYADA = 301,
103 FUNC0 = 302,
104 FUNC1 = 303,
105 FUNC = 304,
106 UNIOP = 305,
107 LSTOP = 306,
108 MULOP = 307,
109 ADDOP = 308,
110 DOLSHARP = 309,
111 DO = 310,
112 HASHBRACK = 311,
113 NOAMP = 312,
114 LOCAL = 313,
115 MY = 314,
116 REQUIRE = 315,
117 COLONATTR = 316,
118 FORMLBRACK = 317,
119 FORMRBRACK = 318,
120 SUBLEXSTART = 319,
121 SUBLEXEND = 320,
122 PREC_LOW = 321,
123 OROP = 322,
124 DOROP = 323,
125 ANDOP = 324,
126 NOTOP = 325,
127 ASSIGNOP = 326,
128 OROR = 327,
129 DORDOR = 328,
130 ANDAND = 329,
131 BITOROP = 330,
132 BITANDOP = 331,
133 CHEQOP = 332,
134 NCEQOP = 333,
135 CHRELOP = 334,
136 NCRELOP = 335,
137 SHIFTOP = 336,
138 MATCHOP = 337,
139 UMINUS = 338,
140 REFGEN = 339,
141 POWOP = 340,
142 PREINC = 341,
143 PREDEC = 342,
144 POSTINC = 343,
145 POSTDEC = 344,
146 POSTJOIN = 345,
147 ARROW = 346
a9f5ab8d 148 };
0de566d7 149#endif
38c8d7b1 150
a9f5ab8d 151/* Value type. */
6c7ae946
FC
152#ifdef PERL_IN_TOKE_C
153static bool
154S_is_opval_token(int type) {
155 switch (type) {
185c2e96 156 case BAREWORD:
6c7ae946
FC
157 case FUNC0OP:
158 case FUNC0SUB:
159 case FUNCMETH:
01719201 160 case LABEL:
6c7ae946
FC
161 case LSTOPSUB:
162 case METHOD:
163 case PLUGEXPR:
164 case PLUGSTMT:
165 case PMFUNC:
166 case PRIVATEREF:
167 case QWLIST:
168 case THING:
169 case UNIOPSUB:
6c7ae946
FC
170 return 1;
171 }
172 return 0;
173}
174#endif /* PERL_IN_TOKE_C */
0de566d7 175#endif /* PERL_CORE */
f05e27e5 176#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
a9f5ab8d 177union YYSTYPE
f05e27e5 178{
a9f5ab8d 179
d5c6462e
DM
180 I32 ival; /* __DEFAULT__ (marker for regen_perly.pl;
181 must always be 1st union member) */
79072805
LW
182 char *pval;
183 OP *opval;
184 GV *gvval;
a9f5ab8d 185
a3815e44 186
53443c95 187};
a3815e44 188typedef union YYSTYPE YYSTYPE;
bdc377e5 189# define YYSTYPE_IS_TRIVIAL 1
a9f5ab8d 190# define YYSTYPE_IS_DECLARED 1
0de566d7
DM
191#endif
192
193
194
a9f5ab8d
LM
195int yyparse (void);
196
e8fb9efb 197
c24c946d 198/* Generated from:
d0a6a9c7 199 * 6c3ea5db928a29814d45a0242b73172509984d1db7abce64794b630c401219d7 perly.y
53443c95 200 * acf1cbfd2545faeaaa58b1cf0cf9d7f98b5be0752eb7a54528ef904a9e2e1ca7 regen_perly.pl
c24c946d 201 * ex: set ro: */