This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Distinguish C- and perly- literals - PERLY_BRACKET_OPEN
[perl5.git] / perly.h
diff --git a/perly.h b/perly.h
index 02561f7..3d3f33b 100644 (file)
--- a/perly.h
+++ b/perly.h
@@ -4,14 +4,15 @@
    Any changes made here will be lost!
  */
 
-#define PERL_BISON_VERSION  30000
+#define PERL_BISON_VERSION  30005
 
 #ifdef PERL_CORE
-/* A Bison parser, made by GNU Bison 3.0.2.  */
+/* A Bison parser, made by GNU Bison 3.5.1.  */
 
 /* Bison interface for Yacc-like parsers in C
 
-   Copyright (C) 1984, 1989-1990, 2000-2013 Free Software Foundation, Inc.
+   Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2020 Free Software Foundation,
+   Inc.
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -39,6 +40,9 @@
    This special exception was added by the Free Software Foundation in
    version 2.2 of Bison.  */
 
+/* Undocumented macros, especially those whose name start with YY_,
+   are private implementation details.  Do not rely on them.  */
+
 /* Debug traces.  */
 #ifndef YYDEBUG
 # define YYDEBUG 0
@@ -58,79 +62,90 @@ extern int yydebug;
     GRAMBARESTMT = 261,
     GRAMFULLSTMT = 262,
     GRAMSTMTSEQ = 263,
-    BAREWORD = 264,
-    METHOD = 265,
-    FUNCMETH = 266,
-    THING = 267,
-    PMFUNC = 268,
-    PRIVATEREF = 269,
-    QWLIST = 270,
-    FUNC0OP = 271,
-    FUNC0SUB = 272,
-    UNIOPSUB = 273,
-    LSTOPSUB = 274,
-    PLUGEXPR = 275,
-    PLUGSTMT = 276,
-    LABEL = 277,
-    FORMAT = 278,
-    SUB = 279,
-    ANONSUB = 280,
-    PACKAGE = 281,
-    USE = 282,
-    WHILE = 283,
-    UNTIL = 284,
-    IF = 285,
-    UNLESS = 286,
-    ELSE = 287,
-    ELSIF = 288,
-    CONTINUE = 289,
-    FOR = 290,
-    GIVEN = 291,
-    WHERESO = 292,
-    LOOPEX = 293,
-    DOTDOT = 294,
-    YADAYADA = 295,
-    FUNC0 = 296,
-    FUNC1 = 297,
-    FUNC = 298,
-    UNIOP = 299,
-    LSTOP = 300,
-    RELOP = 301,
-    EQOP = 302,
-    MULOP = 303,
-    ADDOP = 304,
-    DOLSHARP = 305,
-    DO = 306,
-    HASHBRACK = 307,
-    NOAMP = 308,
-    LOCAL = 309,
-    MY = 310,
-    REQUIRE = 311,
-    COLONATTR = 312,
-    FORMLBRACK = 313,
-    FORMRBRACK = 314,
-    PREC_LOW = 315,
-    OROP = 316,
-    DOROP = 317,
-    ANDOP = 318,
-    NOTOP = 319,
-    ASSIGNOP = 320,
-    OROR = 321,
-    DORDOR = 322,
-    ANDAND = 323,
-    BITOROP = 324,
-    BITANDOP = 325,
-    SHIFTOP = 326,
-    MATCHOP = 327,
-    UMINUS = 328,
-    REFGEN = 329,
-    POWOP = 330,
-    PREINC = 331,
-    PREDEC = 332,
-    POSTINC = 333,
-    POSTDEC = 334,
-    POSTJOIN = 335,
-    ARROW = 336
+    GRAMSUBSIGNATURE = 264,
+    PERLY_BRACE_OPEN = 265,
+    PERLY_BRACE_CLOSE = 266,
+    PERLY_BRACKET_OPEN = 267,
+    BAREWORD = 268,
+    METHOD = 269,
+    FUNCMETH = 270,
+    THING = 271,
+    PMFUNC = 272,
+    PRIVATEREF = 273,
+    QWLIST = 274,
+    FUNC0OP = 275,
+    FUNC0SUB = 276,
+    UNIOPSUB = 277,
+    LSTOPSUB = 278,
+    PLUGEXPR = 279,
+    PLUGSTMT = 280,
+    LABEL = 281,
+    FORMAT = 282,
+    SUB = 283,
+    SIGSUB = 284,
+    ANONSUB = 285,
+    ANON_SIGSUB = 286,
+    PACKAGE = 287,
+    USE = 288,
+    WHILE = 289,
+    UNTIL = 290,
+    IF = 291,
+    UNLESS = 292,
+    ELSE = 293,
+    ELSIF = 294,
+    CONTINUE = 295,
+    FOR = 296,
+    GIVEN = 297,
+    WHEN = 298,
+    DEFAULT = 299,
+    LOOPEX = 300,
+    DOTDOT = 301,
+    YADAYADA = 302,
+    FUNC0 = 303,
+    FUNC1 = 304,
+    FUNC = 305,
+    UNIOP = 306,
+    LSTOP = 307,
+    MULOP = 308,
+    ADDOP = 309,
+    DOLSHARP = 310,
+    DO = 311,
+    HASHBRACK = 312,
+    NOAMP = 313,
+    LOCAL = 314,
+    MY = 315,
+    REQUIRE = 316,
+    COLONATTR = 317,
+    FORMLBRACK = 318,
+    FORMRBRACK = 319,
+    SUBLEXSTART = 320,
+    SUBLEXEND = 321,
+    PREC_LOW = 322,
+    OROP = 323,
+    DOROP = 324,
+    ANDOP = 325,
+    NOTOP = 326,
+    ASSIGNOP = 327,
+    OROR = 328,
+    DORDOR = 329,
+    ANDAND = 330,
+    BITOROP = 331,
+    BITANDOP = 332,
+    CHEQOP = 333,
+    NCEQOP = 334,
+    CHRELOP = 335,
+    NCRELOP = 336,
+    SHIFTOP = 337,
+    MATCHOP = 338,
+    UMINUS = 339,
+    REFGEN = 340,
+    POWOP = 341,
+    PREINC = 342,
+    PREDEC = 343,
+    POSTINC = 344,
+    POSTDEC = 345,
+    POSTJOIN = 346,
+    ARROW = 347
   };
 #endif
 
@@ -143,6 +158,7 @@ S_is_opval_token(int type) {
     case FUNC0OP:
     case FUNC0SUB:
     case FUNCMETH:
+    case LABEL:
     case LSTOPSUB:
     case METHOD:
     case PLUGEXPR:
@@ -159,7 +175,6 @@ S_is_opval_token(int type) {
 #endif /* PERL_IN_TOKE_C */
 #endif /* PERL_CORE */
 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
-typedef union YYSTYPE YYSTYPE;
 union YYSTYPE
 {
 
@@ -169,7 +184,9 @@ union YYSTYPE
     OP *opval;
     GV *gvval;
 
+
 };
+typedef union YYSTYPE YYSTYPE;
 # define YYSTYPE_IS_TRIVIAL 1
 # define YYSTYPE_IS_DECLARED 1
 #endif
@@ -180,6 +197,6 @@ int yyparse (void);
 
 
 /* Generated from:
- * 1d0c087affbf85a8f1482eb4d34eefd435666c6d9e1cb4d7f9d1aeb62b37e907 perly.y
- * b6fae5748f9bef6db4740aa5e122b84ac5181852d42474d0ecad621fa4253306 regen_perly.pl
+ * 883f6f1e0d3238970b1150357f43ffd314c4c0cf49d200ed974b8e8c8cc00430 perly.y
+ * acf1cbfd2545faeaaa58b1cf0cf9d7f98b5be0752eb7a54528ef904a9e2e1ca7 regen_perly.pl
  * ex: set ro: */