From 699d50e37636cbd73d7ef2d8d8a63e5405e97976 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christoph=20Gr=C3=BCninger?= Date: Fri, 22 Jan 2021 16:18:50 +0100 Subject: LexerParser: Regenerate parser files with GNU Bison 3.7.4 Adjust expected test output. --- Source/LexerParser/cmCommandArgumentParser.cxx | 973 ++--- Source/LexerParser/cmCommandArgumentParserTokens.h | 53 +- Source/LexerParser/cmDependsJavaParser.cxx | 4004 ++++++++++---------- Source/LexerParser/cmDependsJavaParserTokens.h | 326 +- Source/LexerParser/cmExprParser.cxx | 986 ++--- Source/LexerParser/cmExprParserTokens.h | 59 +- Source/LexerParser/cmFortranParser.cxx | 1091 +++--- Source/LexerParser/cmFortranParserTokens.h | 135 +- Tests/RunCMake/Syntax/NameWithSpaces-stderr.txt | 2 +- Tests/RunCMake/Syntax/NameWithTabs-stderr.txt | 2 +- Tests/RunCMake/Syntax/ParenInENV-stderr.txt | 4 +- .../RunCMake/Syntax/UnterminatedBrace0-stderr.txt | 2 +- .../RunCMake/Syntax/UnterminatedBrace1-stderr.txt | 2 +- .../math/MATH-InvalidExpression-stderr.txt | 4 +- 14 files changed, 3977 insertions(+), 3666 deletions(-) diff --git a/Source/LexerParser/cmCommandArgumentParser.cxx b/Source/LexerParser/cmCommandArgumentParser.cxx index 34dc8ec..a2bd3ef 100644 --- a/Source/LexerParser/cmCommandArgumentParser.cxx +++ b/Source/LexerParser/cmCommandArgumentParser.cxx @@ -1,8 +1,8 @@ -/* A Bison parser, made by GNU Bison 3.4.2. */ +/* A Bison parser, made by GNU Bison 3.7.4. */ /* Bison implementation for Yacc-like parsers in C - Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2019 Free Software Foundation, + 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 @@ -34,6 +34,10 @@ /* C LALR(1) parser skeleton written by Richard Stallman, by simplifying the original so-called "semantic" parser. */ +/* DO NOT RELY ON FEATURES THAT ARE NOT DOCUMENTED in the manual, + especially those whose name start with YY_ or yy_. They are + private implementation details that can be changed or removed. */ + /* All symbols defined below should begin with yy or YY, to avoid infringing on user name space. This should be done even for local variables, as they might otherwise be expanded by user macros. @@ -41,14 +45,11 @@ define necessary library symbols; they are noted "INFRINGES ON USER NAME SPACE" below. */ -/* Undocumented macros, especially those whose name start with YY_, - are private implementation details. Do not rely on them. */ - -/* Identify Bison output. */ -#define YYBISON 1 +/* Identify Bison output, and Bison version. */ +#define YYBISON 30704 -/* Bison version. */ -#define YYBISON_VERSION "3.4.2" +/* Bison version string. */ +#define YYBISON_VERSION "3.7.4" /* Skeleton name. */ #define YYSKELETON_NAME "yacc.c" @@ -70,7 +71,6 @@ #define yydebug cmCommandArgument_yydebug #define yynerrs cmCommandArgument_yynerrs - /* First part of user prologue. */ #line 1 "cmCommandArgumentParser.y" @@ -82,10 +82,7 @@ This file must be translated to C and modified to build everywhere. Run bison like this: - bison --yacc --name-prefix=cmCommandArgument_yy --defines=cmCommandArgumentParserTokens.h -ocmCommandArgumentParser.cxx cmCommandArgumentParser.y - -Modify cmCommandArgumentParser.cxx: - - "#if 0" out yyerrorlab block in range ["goto yyerrlab1", "yyerrlab1:"] + bison --name-prefix=cmCommandArgument_yy --defines=cmCommandArgumentParserTokens.h -ocmCommandArgumentParser.cxx cmCommandArgumentParser.y */ @@ -134,8 +131,17 @@ static void cmCommandArgument_yyerror(yyscan_t yyscanner, const char* message); # pragma GCC diagnostic ignored "-Wconversion" #endif -#line 138 "cmCommandArgumentParser.cxx" +#line 135 "cmCommandArgumentParser.cxx" +# ifndef YY_CAST +# ifdef __cplusplus +# define YY_CAST(Type, Val) static_cast (Val) +# define YY_REINTERPRET_CAST(Type, Val) reinterpret_cast (Val) +# else +# define YY_CAST(Type, Val) ((Type) (Val)) +# define YY_REINTERPRET_CAST(Type, Val) ((Type) (Val)) +# endif +# endif # ifndef YY_NULLPTR # if defined __cplusplus # if 201103L <= __cplusplus @@ -148,95 +154,115 @@ static void cmCommandArgument_yyerror(yyscan_t yyscanner, const char* message); # endif # endif -/* Enabling verbose error messages. */ -#ifdef YYERROR_VERBOSE -# undef YYERROR_VERBOSE -# define YYERROR_VERBOSE 1 -#else -# define YYERROR_VERBOSE 1 -#endif - -/* Use api.header.include to #include this header - instead of duplicating it here. */ -#ifndef YY_CMCOMMANDARGUMENT_YY_CMCOMMANDARGUMENTPARSERTOKENS_H_INCLUDED -# define YY_CMCOMMANDARGUMENT_YY_CMCOMMANDARGUMENTPARSERTOKENS_H_INCLUDED -/* Debug traces. */ -#ifndef YYDEBUG -# define YYDEBUG 0 -#endif -#if YYDEBUG -extern int cmCommandArgument_yydebug; -#endif - -/* Token type. */ -#ifndef YYTOKENTYPE -# define YYTOKENTYPE - enum yytokentype - { - cal_ENVCURLY = 258, - cal_NCURLY = 259, - cal_DCURLY = 260, - cal_DOLLAR = 261, - cal_LCURLY = 262, - cal_RCURLY = 263, - cal_NAME = 264, - cal_BSLASH = 265, - cal_SYMBOL = 266, - cal_AT = 267, - cal_ERROR = 268, - cal_ATNAME = 269 - }; -#endif -/* Tokens. */ -#define cal_ENVCURLY 258 -#define cal_NCURLY 259 -#define cal_DCURLY 260 -#define cal_DOLLAR 261 -#define cal_LCURLY 262 -#define cal_RCURLY 263 -#define cal_NAME 264 -#define cal_BSLASH 265 -#define cal_SYMBOL 266 -#define cal_AT 267 -#define cal_ERROR 268 -#define cal_ATNAME 269 +#include "cmCommandArgumentParserTokens.h" +/* Symbol kind. */ +enum yysymbol_kind_t +{ + YYSYMBOL_YYEMPTY = -2, + YYSYMBOL_YYEOF = 0, /* "end of file" */ + YYSYMBOL_YYerror = 1, /* error */ + YYSYMBOL_YYUNDEF = 2, /* "invalid token" */ + YYSYMBOL_cal_ENVCURLY = 3, /* cal_ENVCURLY */ + YYSYMBOL_cal_NCURLY = 4, /* cal_NCURLY */ + YYSYMBOL_cal_DCURLY = 5, /* cal_DCURLY */ + YYSYMBOL_cal_DOLLAR = 6, /* "$" */ + YYSYMBOL_cal_LCURLY = 7, /* "{" */ + YYSYMBOL_cal_RCURLY = 8, /* "}" */ + YYSYMBOL_cal_NAME = 9, /* cal_NAME */ + YYSYMBOL_cal_BSLASH = 10, /* "\\" */ + YYSYMBOL_cal_SYMBOL = 11, /* cal_SYMBOL */ + YYSYMBOL_cal_AT = 12, /* "@" */ + YYSYMBOL_cal_ERROR = 13, /* cal_ERROR */ + YYSYMBOL_cal_ATNAME = 14, /* cal_ATNAME */ + YYSYMBOL_YYACCEPT = 15, /* $accept */ + YYSYMBOL_Start = 16, /* Start */ + YYSYMBOL_GoalWithOptionalBackSlash = 17, /* GoalWithOptionalBackSlash */ + YYSYMBOL_Goal = 18, /* Goal */ + YYSYMBOL_String = 19, /* String */ + YYSYMBOL_OuterText = 20, /* OuterText */ + YYSYMBOL_Variable = 21, /* Variable */ + YYSYMBOL_EnvVarName = 22, /* EnvVarName */ + YYSYMBOL_MultipleIds = 23, /* MultipleIds */ + YYSYMBOL_ID = 24 /* ID */ +}; +typedef enum yysymbol_kind_t yysymbol_kind_t; -/* Value type. */ -int cmCommandArgument_yyparse (yyscan_t yyscanner); +#ifdef short +# undef short +#endif -#endif /* !YY_CMCOMMANDARGUMENT_YY_CMCOMMANDARGUMENTPARSERTOKENS_H_INCLUDED */ +/* On compilers that do not define __PTRDIFF_MAX__ etc., make sure + and (if available) are included + so that the code can choose integer types of a good width. */ +#ifndef __PTRDIFF_MAX__ +# include /* INFRINGES ON USER NAME SPACE */ +# if defined __STDC_VERSION__ && 199901 <= __STDC_VERSION__ +# include /* INFRINGES ON USER NAME SPACE */ +# define YY_STDINT_H +# endif +#endif +/* Narrow types that promote to a signed type and that can represent a + signed or unsigned integer of at least N bits. In tables they can + save space and decrease cache pressure. Promoting to a signed type + helps avoid bugs in integer arithmetic. */ -#ifdef short -# undef short +#ifdef __INT_LEAST8_MAX__ +typedef __INT_LEAST8_TYPE__ yytype_int8; +#elif defined YY_STDINT_H +typedef int_least8_t yytype_int8; +#else +typedef signed char yytype_int8; #endif -#ifdef YYTYPE_UINT8 -typedef YYTYPE_UINT8 yytype_uint8; +#ifdef __INT_LEAST16_MAX__ +typedef __INT_LEAST16_TYPE__ yytype_int16; +#elif defined YY_STDINT_H +typedef int_least16_t yytype_int16; #else -typedef unsigned char yytype_uint8; +typedef short yytype_int16; #endif -#ifdef YYTYPE_INT8 -typedef YYTYPE_INT8 yytype_int8; +#if defined __UINT_LEAST8_MAX__ && __UINT_LEAST8_MAX__ <= __INT_MAX__ +typedef __UINT_LEAST8_TYPE__ yytype_uint8; +#elif (!defined __UINT_LEAST8_MAX__ && defined YY_STDINT_H \ + && UINT_LEAST8_MAX <= INT_MAX) +typedef uint_least8_t yytype_uint8; +#elif !defined __UINT_LEAST8_MAX__ && UCHAR_MAX <= INT_MAX +typedef unsigned char yytype_uint8; #else -typedef signed char yytype_int8; +typedef short yytype_uint8; #endif -#ifdef YYTYPE_UINT16 -typedef YYTYPE_UINT16 yytype_uint16; -#else +#if defined __UINT_LEAST16_MAX__ && __UINT_LEAST16_MAX__ <= __INT_MAX__ +typedef __UINT_LEAST16_TYPE__ yytype_uint16; +#elif (!defined __UINT_LEAST16_MAX__ && defined YY_STDINT_H \ + && UINT_LEAST16_MAX <= INT_MAX) +typedef uint_least16_t yytype_uint16; +#elif !defined __UINT_LEAST16_MAX__ && USHRT_MAX <= INT_MAX typedef unsigned short yytype_uint16; +#else +typedef int yytype_uint16; #endif -#ifdef YYTYPE_INT16 -typedef YYTYPE_INT16 yytype_int16; -#else -typedef short yytype_int16; +#ifndef YYPTRDIFF_T +# if defined __PTRDIFF_TYPE__ && defined __PTRDIFF_MAX__ +# define YYPTRDIFF_T __PTRDIFF_TYPE__ +# define YYPTRDIFF_MAXIMUM __PTRDIFF_MAX__ +# elif defined PTRDIFF_MAX +# ifndef ptrdiff_t +# include /* INFRINGES ON USER NAME SPACE */ +# endif +# define YYPTRDIFF_T ptrdiff_t +# define YYPTRDIFF_MAXIMUM PTRDIFF_MAX +# else +# define YYPTRDIFF_T long +# define YYPTRDIFF_MAXIMUM LONG_MAX +# endif #endif #ifndef YYSIZE_T @@ -244,7 +270,7 @@ typedef short yytype_int16; # define YYSIZE_T __SIZE_TYPE__ # elif defined size_t # define YYSIZE_T size_t -# elif ! defined YYSIZE_T +# elif defined __STDC_VERSION__ && 199901 <= __STDC_VERSION__ # include /* INFRINGES ON USER NAME SPACE */ # define YYSIZE_T size_t # else @@ -252,7 +278,20 @@ typedef short yytype_int16; # endif #endif -#define YYSIZE_MAXIMUM ((YYSIZE_T) -1) +#define YYSIZE_MAXIMUM \ + YY_CAST (YYPTRDIFF_T, \ + (YYPTRDIFF_MAXIMUM < YY_CAST (YYSIZE_T, -1) \ + ? YYPTRDIFF_MAXIMUM \ + : YY_CAST (YYSIZE_T, -1))) + +#define YYSIZEOF(X) YY_CAST (YYPTRDIFF_T, sizeof (X)) + + +/* Stored state numbers (used for stacks). */ +typedef yytype_int8 yy_state_t; + +/* State numbers in computations. */ +typedef int yy_state_fast_t; #ifndef YY_ # if defined YYENABLE_NLS && YYENABLE_NLS @@ -266,22 +305,21 @@ typedef short yytype_int16; # endif #endif -#ifndef YY_ATTRIBUTE -# if (defined __GNUC__ \ - && (2 < __GNUC__ || (__GNUC__ == 2 && 96 <= __GNUC_MINOR__))) \ - || defined __SUNPRO_C && 0x5110 <= __SUNPRO_C -# define YY_ATTRIBUTE(Spec) __attribute__(Spec) -# else -# define YY_ATTRIBUTE(Spec) /* empty */ -# endif -#endif #ifndef YY_ATTRIBUTE_PURE -# define YY_ATTRIBUTE_PURE YY_ATTRIBUTE ((__pure__)) +# if defined __GNUC__ && 2 < __GNUC__ + (96 <= __GNUC_MINOR__) +# define YY_ATTRIBUTE_PURE __attribute__ ((__pure__)) +# else +# define YY_ATTRIBUTE_PURE +# endif #endif #ifndef YY_ATTRIBUTE_UNUSED -# define YY_ATTRIBUTE_UNUSED YY_ATTRIBUTE ((__unused__)) +# if defined __GNUC__ && 2 < __GNUC__ + (7 <= __GNUC_MINOR__) +# define YY_ATTRIBUTE_UNUSED __attribute__ ((__unused__)) +# else +# define YY_ATTRIBUTE_UNUSED +# endif #endif /* Suppress unused-variable warnings by "using" E. */ @@ -293,11 +331,11 @@ typedef short yytype_int16; #if defined __GNUC__ && ! defined __ICC && 407 <= __GNUC__ * 100 + __GNUC_MINOR__ /* Suppress an incorrect diagnostic about yylval being uninitialized. */ -# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \ - _Pragma ("GCC diagnostic push") \ - _Pragma ("GCC diagnostic ignored \"-Wuninitialized\"")\ +# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \ + _Pragma ("GCC diagnostic push") \ + _Pragma ("GCC diagnostic ignored \"-Wuninitialized\"") \ _Pragma ("GCC diagnostic ignored \"-Wmaybe-uninitialized\"") -# define YY_IGNORE_MAYBE_UNINITIALIZED_END \ +# define YY_IGNORE_MAYBE_UNINITIALIZED_END \ _Pragma ("GCC diagnostic pop") #else # define YY_INITIAL_VALUE(Value) Value @@ -310,10 +348,22 @@ typedef short yytype_int16; # define YY_INITIAL_VALUE(Value) /* Nothing. */ #endif +#if defined __cplusplus && defined __GNUC__ && ! defined __ICC && 6 <= __GNUC__ +# define YY_IGNORE_USELESS_CAST_BEGIN \ + _Pragma ("GCC diagnostic push") \ + _Pragma ("GCC diagnostic ignored \"-Wuseless-cast\"") +# define YY_IGNORE_USELESS_CAST_END \ + _Pragma ("GCC diagnostic pop") +#endif +#ifndef YY_IGNORE_USELESS_CAST_BEGIN +# define YY_IGNORE_USELESS_CAST_BEGIN +# define YY_IGNORE_USELESS_CAST_END +#endif + #define YY_ASSERT(E) ((void) (0 && (E))) -#if ! defined yyoverflow || YYERROR_VERBOSE +#if 1 /* The parser invokes alloca or malloc; define the necessary symbols. */ @@ -378,8 +428,7 @@ void free (void *); /* INFRINGES ON USER NAME SPACE */ # endif # endif # endif -#endif /* ! defined yyoverflow || YYERROR_VERBOSE */ - +#endif /* 1 */ #if (! defined yyoverflow \ && (! defined __cplusplus \ @@ -388,17 +437,17 @@ void free (void *); /* INFRINGES ON USER NAME SPACE */ /* A type that is properly aligned for any stack member. */ union yyalloc { - yytype_int16 yyss_alloc; + yy_state_t yyss_alloc; YYSTYPE yyvs_alloc; }; /* The size of the maximum gap between one aligned stack and the next. */ -# define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1) +# define YYSTACK_GAP_MAXIMUM (YYSIZEOF (union yyalloc) - 1) /* The size of an array large to enough to hold all stacks, each with N elements. */ # define YYSTACK_BYTES(N) \ - ((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \ + ((N) * (YYSIZEOF (yy_state_t) + YYSIZEOF (YYSTYPE)) \ + YYSTACK_GAP_MAXIMUM) # define YYCOPY_NEEDED 1 @@ -411,11 +460,11 @@ union yyalloc # define YYSTACK_RELOCATE(Stack_alloc, Stack) \ do \ { \ - YYSIZE_T yynewbytes; \ + YYPTRDIFF_T yynewbytes; \ YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \ Stack = &yyptr->Stack_alloc; \ - yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \ - yyptr += yynewbytes / sizeof (*yyptr); \ + yynewbytes = yystacksize * YYSIZEOF (*Stack) + YYSTACK_GAP_MAXIMUM; \ + yyptr += yynewbytes / YYSIZEOF (*yyptr); \ } \ while (0) @@ -427,12 +476,12 @@ union yyalloc # ifndef YYCOPY # if defined __GNUC__ && 1 < __GNUC__ # define YYCOPY(Dst, Src, Count) \ - __builtin_memcpy (Dst, Src, (Count) * sizeof (*(Src))) + __builtin_memcpy (Dst, Src, YY_CAST (YYSIZE_T, (Count)) * sizeof (*(Src))) # else # define YYCOPY(Dst, Src, Count) \ do \ { \ - YYSIZE_T yyi; \ + YYPTRDIFF_T yyi; \ for (yyi = 0; yyi < (Count); yyi++) \ (Dst)[yyi] = (Src)[yyi]; \ } \ @@ -455,17 +504,20 @@ union yyalloc /* YYNSTATES -- Number of states. */ #define YYNSTATES 33 -#define YYUNDEFTOK 2 +/* YYMAXUTOK -- Last valid token kind. */ #define YYMAXUTOK 269 + /* YYTRANSLATE(TOKEN-NUM) -- Symbol number corresponding to TOKEN-NUM as returned by yylex, with out-of-bounds checking. */ -#define YYTRANSLATE(YYX) \ - ((unsigned) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) +#define YYTRANSLATE(YYX) \ + (0 <= (YYX) && (YYX) <= YYMAXUTOK \ + ? YY_CAST (yysymbol_kind_t, yytranslate[YYX]) \ + : YYSYMBOL_YYUNDEF) /* YYTRANSLATE[TOKEN-NUM] -- Symbol number corresponding to TOKEN-NUM as returned by yylex. */ -static const yytype_uint8 yytranslate[] = +static const yytype_int8 yytranslate[] = { 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, @@ -500,43 +552,56 @@ static const yytype_uint8 yytranslate[] = /* YYRLINE[YYN] -- Source line where rule number YYN was defined. */ static const yytype_uint8 yyrline[] = { - 0, 99, 99, 105, 108, 113, 116, 121, 124, 129, - 132, 135, 138, 141, 144, 149, 152, 155, 158, 163, - 166, 171, 174, 179, 182 + 0, 96, 96, 102, 105, 110, 113, 118, 121, 126, + 129, 132, 135, 138, 141, 146, 149, 152, 155, 160, + 163, 168, 171, 176, 179 }; #endif -#if YYDEBUG || YYERROR_VERBOSE || 1 +/** Accessing symbol of state STATE. */ +#define YY_ACCESSING_SYMBOL(State) YY_CAST (yysymbol_kind_t, yystos[State]) + +#if 1 +/* The user-facing name of the symbol whose (internal) number is + YYSYMBOL. No bounds checking. */ +static const char *yysymbol_name (yysymbol_kind_t yysymbol) YY_ATTRIBUTE_UNUSED; + /* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM. First, the terminals, then, starting at YYNTOKENS, nonterminals. */ static const char *const yytname[] = { - "$end", "error", "$undefined", "cal_ENVCURLY", "cal_NCURLY", - "cal_DCURLY", "\"$\"", "\"{\"", "\"}\"", "cal_NAME", "\"\\\\\"", - "cal_SYMBOL", "\"@\"", "cal_ERROR", "cal_ATNAME", "$accept", "Start", - "GoalWithOptionalBackSlash", "Goal", "String", "OuterText", "Variable", - "EnvVarName", "MultipleIds", "ID", YY_NULLPTR + "\"end of file\"", "error", "\"invalid token\"", "cal_ENVCURLY", + "cal_NCURLY", "cal_DCURLY", "\"$\"", "\"{\"", "\"}\"", "cal_NAME", + "\"\\\\\"", "cal_SYMBOL", "\"@\"", "cal_ERROR", "cal_ATNAME", "$accept", + "Start", "GoalWithOptionalBackSlash", "Goal", "String", "OuterText", + "Variable", "EnvVarName", "MultipleIds", "ID", YY_NULLPTR }; + +static const char * +yysymbol_name (yysymbol_kind_t yysymbol) +{ + return yytname[yysymbol]; +} #endif -# ifdef YYPRINT +#ifdef YYPRINT /* YYTOKNUM[NUM] -- (External) token number corresponding to the (internal) symbol number NUM (which must be that of a token). */ -static const yytype_uint16 yytoknum[] = +static const yytype_int16 yytoknum[] = { 0, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269 }; -# endif +#endif -#define YYPACT_NINF -3 +#define YYPACT_NINF (-3) -#define yypact_value_is_default(Yystate) \ - (!!((Yystate) == (-3))) +#define yypact_value_is_default(Yyn) \ + ((Yyn) == YYPACT_NINF) -#define YYTABLE_NINF -1 +#define YYTABLE_NINF (-1) -#define yytable_value_is_error(Yytable_value) \ +#define yytable_value_is_error(Yyn) \ 0 /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing @@ -552,7 +617,7 @@ static const yytype_int8 yypact[] = /* YYDEFACT[STATE-NUM] -- Default reduction number in state STATE-NUM. Performed when YYTABLE does not specify something else to do. Zero means the default is an error. */ -static const yytype_uint8 yydefact[] = +static const yytype_int8 yydefact[] = { 5, 21, 21, 21, 11, 12, 13, 9, 14, 10, 18, 0, 2, 3, 5, 7, 8, 23, 21, 24, @@ -575,7 +640,7 @@ static const yytype_int8 yydefgoto[] = /* YYTABLE[YYPACT[STATE-NUM]] -- What to do in state STATE-NUM. If positive, shift that token. If negative, reduce the rule whose number is the opposite. If YYTABLE_NINF, syntax error. */ -static const yytype_uint8 yytable[] = +static const yytype_int8 yytable[] = { 23, 24, 16, 1, 2, 3, 4, 5, 6, 7, 25, 8, 9, 26, 10, 29, 16, 1, 2, 3, @@ -595,7 +660,7 @@ static const yytype_int8 yycheck[] = /* YYSTOS[STATE-NUM] -- The (internal number of the) accessing symbol of state STATE-NUM. */ -static const yytype_uint8 yystos[] = +static const yytype_int8 yystos[] = { 0, 3, 4, 5, 6, 7, 8, 9, 11, 12, 14, 16, 17, 18, 19, 20, 21, 9, 11, 21, @@ -604,7 +669,7 @@ static const yytype_uint8 yystos[] = }; /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */ -static const yytype_uint8 yyr1[] = +static const yytype_int8 yyr1[] = { 0, 15, 16, 17, 17, 18, 18, 19, 19, 20, 20, 20, 20, 20, 20, 21, 21, 21, 21, 22, @@ -612,7 +677,7 @@ static const yytype_uint8 yyr1[] = }; /* YYR2[YYN] -- Number of symbols on the right hand side of rule YYN. */ -static const yytype_uint8 yyr2[] = +static const yytype_int8 yyr2[] = { 0, 2, 1, 1, 2, 0, 2, 1, 1, 1, 1, 1, 1, 1, 1, 3, 3, 3, 1, 1, @@ -620,10 +685,10 @@ static const yytype_uint8 yyr2[] = }; +enum { YYENOMEM = -2 }; + #define yyerrok (yyerrstatus = 0) #define yyclearin (yychar = YYEMPTY) -#define YYEMPTY (-2) -#define YYEOF 0 #define YYACCEPT goto yyacceptlab #define YYABORT goto yyabortlab @@ -649,10 +714,9 @@ static const yytype_uint8 yyr2[] = } \ while (0) -/* Error token number */ -#define YYTERROR 1 -#define YYERRCODE 256 - +/* Backward compatibility with an undocumented macro. + Use YYerror or YYUNDEF. */ +#define YYERRCODE YYUNDEF /* Enable debugging if requested. */ @@ -670,18 +734,18 @@ do { \ } while (0) /* This macro is provided for backward compatibility. */ -#ifndef YY_LOCATION_PRINT -# define YY_LOCATION_PRINT(File, Loc) ((void) 0) -#endif +# ifndef YY_LOCATION_PRINT +# define YY_LOCATION_PRINT(File, Loc) ((void) 0) +# endif -# define YY_SYMBOL_PRINT(Title, Type, Value, Location) \ +# define YY_SYMBOL_PRINT(Title, Kind, Value, Location) \ do { \ if (yydebug) \ { \ YYFPRINTF (stderr, "%s ", Title); \ yy_symbol_print (stderr, \ - Type, Value, yyscanner); \ + Kind, Value, yyscanner); \ YYFPRINTF (stderr, "\n"); \ } \ } while (0) @@ -692,7 +756,8 @@ do { \ `-----------------------------------*/ static void -yy_symbol_value_print (FILE *yyo, int yytype, YYSTYPE const * const yyvaluep, yyscan_t yyscanner) +yy_symbol_value_print (FILE *yyo, + yysymbol_kind_t yykind, YYSTYPE const * const yyvaluep, yyscan_t yyscanner) { FILE *yyoutput = yyo; YYUSE (yyoutput); @@ -700,11 +765,11 @@ yy_symbol_value_print (FILE *yyo, int yytype, YYSTYPE const * const yyvaluep, yy if (!yyvaluep) return; # ifdef YYPRINT - if (yytype < YYNTOKENS) - YYPRINT (yyo, yytoknum[yytype], *yyvaluep); + if (yykind < YYNTOKENS) + YYPRINT (yyo, yytoknum[yykind], *yyvaluep); # endif YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN - YYUSE (yytype); + YYUSE (yykind); YY_IGNORE_MAYBE_UNINITIALIZED_END } @@ -714,12 +779,13 @@ yy_symbol_value_print (FILE *yyo, int yytype, YYSTYPE const * const yyvaluep, yy `---------------------------*/ static void -yy_symbol_print (FILE *yyo, int yytype, YYSTYPE const * const yyvaluep, yyscan_t yyscanner) +yy_symbol_print (FILE *yyo, + yysymbol_kind_t yykind, YYSTYPE const * const yyvaluep, yyscan_t yyscanner) { YYFPRINTF (yyo, "%s %s (", - yytype < YYNTOKENS ? "token" : "nterm", yytname[yytype]); + yykind < YYNTOKENS ? "token" : "nterm", yysymbol_name (yykind)); - yy_symbol_value_print (yyo, yytype, yyvaluep, yyscanner); + yy_symbol_value_print (yyo, yykind, yyvaluep, yyscanner); YYFPRINTF (yyo, ")"); } @@ -729,7 +795,7 @@ yy_symbol_print (FILE *yyo, int yytype, YYSTYPE const * const yyvaluep, yyscan_t `------------------------------------------------------------------*/ static void -yy_stack_print (yytype_int16 *yybottom, yytype_int16 *yytop) +yy_stack_print (yy_state_t *yybottom, yy_state_t *yytop) { YYFPRINTF (stderr, "Stack now"); for (; yybottom <= yytop; yybottom++) @@ -752,21 +818,21 @@ do { \ `------------------------------------------------*/ static void -yy_reduce_print (yytype_int16 *yyssp, YYSTYPE *yyvsp, int yyrule, yyscan_t yyscanner) +yy_reduce_print (yy_state_t *yyssp, YYSTYPE *yyvsp, + int yyrule, yyscan_t yyscanner) { - unsigned long yylno = yyrline[yyrule]; + int yylno = yyrline[yyrule]; int yynrhs = yyr2[yyrule]; int yyi; - YYFPRINTF (stderr, "Reducing stack by rule %d (line %lu):\n", + YYFPRINTF (stderr, "Reducing stack by rule %d (line %d):\n", yyrule - 1, yylno); /* The symbols being reduced. */ for (yyi = 0; yyi < yynrhs; yyi++) { YYFPRINTF (stderr, " $%d = ", yyi + 1); yy_symbol_print (stderr, - yystos[yyssp[yyi + 1 - yynrhs]], - &yyvsp[(yyi + 1) - (yynrhs)] - , yyscanner); + YY_ACCESSING_SYMBOL (+yyssp[yyi + 1 - yynrhs]), + &yyvsp[(yyi + 1) - (yynrhs)], yyscanner); YYFPRINTF (stderr, "\n"); } } @@ -781,8 +847,8 @@ do { \ multiple parsers can coexist. */ int yydebug; #else /* !YYDEBUG */ -# define YYDPRINTF(Args) -# define YY_SYMBOL_PRINT(Title, Type, Value, Location) +# define YYDPRINTF(Args) ((void) 0) +# define YY_SYMBOL_PRINT(Title, Kind, Value, Location) # define YY_STACK_PRINT(Bottom, Top) # define YY_REDUCE_PRINT(Rule) #endif /* !YYDEBUG */ @@ -805,28 +871,76 @@ int yydebug; #endif -#if YYERROR_VERBOSE +/* Context of a parse error. */ +typedef struct +{ + yy_state_t *yyssp; + yysymbol_kind_t yytoken; +} yypcontext_t; + +/* Put in YYARG at most YYARGN of the expected tokens given the + current YYCTX, and return the number of tokens stored in YYARG. If + YYARG is null, return the number of expected tokens (guaranteed to + be less than YYNTOKENS). Return YYENOMEM on memory exhaustion. + Return 0 if there are more than YYARGN expected tokens, yet fill + YYARG up to YYARGN. */ +static int +yypcontext_expected_tokens (const yypcontext_t *yyctx, + yysymbol_kind_t yyarg[], int yyargn) +{ + /* Actual size of YYARG. */ + int yycount = 0; + int yyn = yypact[+*yyctx->yyssp]; + if (!yypact_value_is_default (yyn)) + { + /* Start YYX at -YYN if negative to avoid negative indexes in + YYCHECK. In other words, skip the first -YYN actions for + this state because they are default actions. */ + int yyxbegin = yyn < 0 ? -yyn : 0; + /* Stay within bounds of both yycheck and yytname. */ + int yychecklim = YYLAST - yyn + 1; + int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS; + int yyx; + for (yyx = yyxbegin; yyx < yyxend; ++yyx) + if (yycheck[yyx + yyn] == yyx && yyx != YYSYMBOL_YYerror + && !yytable_value_is_error (yytable[yyx + yyn])) + { + if (!yyarg) + ++yycount; + else if (yycount == yyargn) + return 0; + else + yyarg[yycount++] = YY_CAST (yysymbol_kind_t, yyx); + } + } + if (yyarg && yycount == 0 && 0 < yyargn) + yyarg[0] = YYSYMBOL_YYEMPTY; + return yycount; +} -# ifndef yystrlen -# if defined __GLIBC__ && defined _STRING_H -# define yystrlen strlen -# else + + + +#ifndef yystrlen +# if defined __GLIBC__ && defined _STRING_H +# define yystrlen(S) (YY_CAST (YYPTRDIFF_T, strlen (S))) +# else /* Return the length of YYSTR. */ -static YYSIZE_T +static YYPTRDIFF_T yystrlen (const char *yystr) { - YYSIZE_T yylen; + YYPTRDIFF_T yylen; for (yylen = 0; yystr[yylen]; yylen++) continue; return yylen; } -# endif # endif +#endif -# ifndef yystpcpy -# if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE -# define yystpcpy stpcpy -# else +#ifndef yystpcpy +# if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE +# define yystpcpy stpcpy +# else /* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in YYDEST. */ static char * @@ -840,10 +954,10 @@ yystpcpy (char *yydest, const char *yysrc) return yyd - 1; } -# endif # endif +#endif -# ifndef yytnamerr +#ifndef yytnamerr /* Copy to YYRES the contents of YYSTR after stripping away unnecessary quotes and backslashes, so that it's suitable for yyerror. The heuristic is that double-quoting is unnecessary unless the string @@ -851,14 +965,13 @@ yystpcpy (char *yydest, const char *yysrc) backslash-backslash). YYSTR is taken from yytname. If YYRES is null, do not copy; instead, return the length of what the result would have been. */ -static YYSIZE_T +static YYPTRDIFF_T yytnamerr (char *yyres, const char *yystr) { if (*yystr == '"') { - YYSIZE_T yyn = 0; + YYPTRDIFF_T yyn = 0; char const *yyp = yystr; - for (;;) switch (*++yyp) { @@ -887,36 +1000,20 @@ yytnamerr (char *yyres, const char *yystr) do_not_strip_quotes: ; } - if (! yyres) + if (yyres) + return yystpcpy (yyres, yystr) - yyres; + else return yystrlen (yystr); - - return (YYSIZE_T) (yystpcpy (yyres, yystr) - yyres); } -# endif +#endif -/* Copy into *YYMSG, which is of size *YYMSG_ALLOC, an error message - about the unexpected token YYTOKEN for the state stack whose top is - YYSSP. - Return 0 if *YYMSG was successfully written. Return 1 if *YYMSG is - not large enough to hold the message. In that case, also set - *YYMSG_ALLOC to the required number of bytes. Return 2 if the - required number of bytes is too large to store. */ static int -yysyntax_error (YYSIZE_T *yymsg_alloc, char **yymsg, - yytype_int16 *yyssp, int yytoken) +yy_syntax_error_arguments (const yypcontext_t *yyctx, + yysymbol_kind_t yyarg[], int yyargn) { - YYSIZE_T yysize0 = yytnamerr (YY_NULLPTR, yytname[yytoken]); - YYSIZE_T yysize = yysize0; - enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 }; - /* Internationalized format string. */ - const char *yyformat = YY_NULLPTR; - /* Arguments of yyformat. */ - char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM]; - /* Number of reported tokens (one for the "unexpected", one per - "expected"). */ + /* Actual size of YYARG. */ int yycount = 0; - /* There are many possibilities here to consider: - If this state is a consistent state with a default action, then the only way this function was invoked is if the default action @@ -940,49 +1037,54 @@ yysyntax_error (YYSIZE_T *yymsg_alloc, char **yymsg, one exception: it will still contain any token that will not be accepted due to an error action in a later state. */ - if (yytoken != YYEMPTY) + if (yyctx->yytoken != YYSYMBOL_YYEMPTY) { - int yyn = yypact[*yyssp]; - yyarg[yycount++] = yytname[yytoken]; - if (!yypact_value_is_default (yyn)) - { - /* Start YYX at -YYN if negative to avoid negative indexes in - YYCHECK. In other words, skip the first -YYN actions for - this state because they are default actions. */ - int yyxbegin = yyn < 0 ? -yyn : 0; - /* Stay within bounds of both yycheck and yytname. */ - int yychecklim = YYLAST - yyn + 1; - int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS; - int yyx; - - for (yyx = yyxbegin; yyx < yyxend; ++yyx) - if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR - && !yytable_value_is_error (yytable[yyx + yyn])) - { - if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM) - { - yycount = 1; - yysize = yysize0; - break; - } - yyarg[yycount++] = yytname[yyx]; - { - YYSIZE_T yysize1 = yysize + yytnamerr (YY_NULLPTR, yytname[yyx]); - if (yysize <= yysize1 && yysize1 <= YYSTACK_ALLOC_MAXIMUM) - yysize = yysize1; - else - return 2; - } - } - } + int yyn; + if (yyarg) + yyarg[yycount] = yyctx->yytoken; + ++yycount; + yyn = yypcontext_expected_tokens (yyctx, + yyarg ? yyarg + 1 : yyarg, yyargn - 1); + if (yyn == YYENOMEM) + return YYENOMEM; + else + yycount += yyn; } + return yycount; +} + +/* Copy into *YYMSG, which is of size *YYMSG_ALLOC, an error message + about the unexpected token YYTOKEN for the state stack whose top is + YYSSP. + + Return 0 if *YYMSG was successfully written. Return -1 if *YYMSG is + not large enough to hold the message. In that case, also set + *YYMSG_ALLOC to the required number of bytes. Return YYENOMEM if the + required number of bytes is too large to store. */ +static int +yysyntax_error (YYPTRDIFF_T *yymsg_alloc, char **yymsg, + const yypcontext_t *yyctx) +{ + enum { YYARGS_MAX = 5 }; + /* Internationalized format string. */ + const char *yyformat = YY_NULLPTR; + /* Arguments of yyformat: reported tokens (one for the "unexpected", + one per "expected"). */ + yysymbol_kind_t yyarg[YYARGS_MAX]; + /* Cumulated lengths of YYARG. */ + YYPTRDIFF_T yysize = 0; + + /* Actual size of YYARG. */ + int yycount = yy_syntax_error_arguments (yyctx, yyarg, YYARGS_MAX); + if (yycount == YYENOMEM) + return YYENOMEM; switch (yycount) { -# define YYCASE_(N, S) \ +#define YYCASE_(N, S) \ case N: \ yyformat = S; \ - break + break default: /* Avoid compiler warnings. */ YYCASE_(0, YY_("syntax error")); YYCASE_(1, YY_("syntax error, unexpected %s")); @@ -990,15 +1092,23 @@ yysyntax_error (YYSIZE_T *yymsg_alloc, char **yymsg, YYCASE_(3, YY_("syntax error, unexpected %s, expecting %s or %s")); YYCASE_(4, YY_("syntax error, unexpected %s, expecting %s or %s or %s")); YYCASE_(5, YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s")); -# undef YYCASE_ +#undef YYCASE_ } + /* Compute error message size. Don't count the "%s"s, but reserve + room for the terminator. */ + yysize = yystrlen (yyformat) - 2 * yycount + 1; { - YYSIZE_T yysize1 = yysize + yystrlen (yyformat); - if (yysize <= yysize1 && yysize1 <= YYSTACK_ALLOC_MAXIMUM) - yysize = yysize1; - else - return 2; + int yyi; + for (yyi = 0; yyi < yycount; ++yyi) + { + YYPTRDIFF_T yysize1 + = yysize + yytnamerr (YY_NULLPTR, yytname[yyarg[yyi]]); + if (yysize <= yysize1 && yysize1 <= YYSTACK_ALLOC_MAXIMUM) + yysize = yysize1; + else + return YYENOMEM; + } } if (*yymsg_alloc < yysize) @@ -1007,7 +1117,7 @@ yysyntax_error (YYSIZE_T *yymsg_alloc, char **yymsg, if (! (yysize <= *yymsg_alloc && *yymsg_alloc <= YYSTACK_ALLOC_MAXIMUM)) *yymsg_alloc = YYSTACK_ALLOC_MAXIMUM; - return 1; + return -1; } /* Avoid sprintf, as that infringes on the user's name space. @@ -1019,40 +1129,43 @@ yysyntax_error (YYSIZE_T *yymsg_alloc, char **yymsg, while ((*yyp = *yyformat) != '\0') if (*yyp == '%' && yyformat[1] == 's' && yyi < yycount) { - yyp += yytnamerr (yyp, yyarg[yyi++]); + yyp += yytnamerr (yyp, yytname[yyarg[yyi++]]); yyformat += 2; } else { - yyp++; - yyformat++; + ++yyp; + ++yyformat; } } return 0; } -#endif /* YYERROR_VERBOSE */ + /*-----------------------------------------------. | Release the memory associated to this symbol. | `-----------------------------------------------*/ static void -yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep, yyscan_t yyscanner) +yydestruct (const char *yymsg, + yysymbol_kind_t yykind, YYSTYPE *yyvaluep, yyscan_t yyscanner) { YYUSE (yyvaluep); YYUSE (yyscanner); if (!yymsg) yymsg = "Deleting"; - YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp); + YY_SYMBOL_PRINT (yymsg, yykind, yyvaluep, yylocationp); YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN - YYUSE (yytype); + YYUSE (yykind); YY_IGNORE_MAYBE_UNINITIALIZED_END } + + /*----------. | yyparse. | `----------*/ @@ -1060,7 +1173,7 @@ yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep, yyscan_t yyscanner int yyparse (yyscan_t yyscanner) { -/* The lookahead symbol. */ +/* Lookahead token kind. */ int yychar; @@ -1071,45 +1184,41 @@ YY_INITIAL_VALUE (static YYSTYPE yyval_default;) YYSTYPE yylval YY_INITIAL_VALUE (= yyval_default); /* Number of syntax errors so far. */ - int yynerrs; + int yynerrs = 0; - int yystate; + yy_state_fast_t yystate = 0; /* Number of tokens to shift before error messages enabled. */ - int yyerrstatus; - - /* The stacks and their tools: - 'yyss': related to states. - 'yyvs': related to semantic values. + int yyerrstatus = 0; - Refer to the stacks through separate pointers, to allow yyoverflow + /* Refer to the stacks through separate pointers, to allow yyoverflow to reallocate them elsewhere. */ - /* The state stack. */ - yytype_int16 yyssa[YYINITDEPTH]; - yytype_int16 *yyss; - yytype_int16 *yyssp; + /* Their size. */ + YYPTRDIFF_T yystacksize = YYINITDEPTH; - /* The semantic value stack. */ - YYSTYPE yyvsa[YYINITDEPTH]; - YYSTYPE *yyvs; - YYSTYPE *yyvsp; + /* The state stack: array, bottom, top. */ + yy_state_t yyssa[YYINITDEPTH]; + yy_state_t *yyss = yyssa; + yy_state_t *yyssp = yyss; - YYSIZE_T yystacksize; + /* The semantic value stack: array, bottom, top. */ + YYSTYPE yyvsa[YYINITDEPTH]; + YYSTYPE *yyvs = yyvsa; + YYSTYPE *yyvsp = yyvs; int yyn; + /* The return value of yyparse. */ int yyresult; - /* Lookahead token as an internal (translated) token number. */ - int yytoken = 0; + /* Lookahead symbol kind. */ + yysymbol_kind_t yytoken = YYSYMBOL_YYEMPTY; /* The variables used to return semantic value and location from the action routines. */ YYSTYPE yyval; -#if YYERROR_VERBOSE /* Buffer for error messages, and its allocated size. */ char yymsgbuf[128]; char *yymsg = yymsgbuf; - YYSIZE_T yymsg_alloc = sizeof yymsgbuf; -#endif + YYPTRDIFF_T yymsg_alloc = sizeof yymsgbuf; #define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N)) @@ -1117,15 +1226,8 @@ YYSTYPE yylval YY_INITIAL_VALUE (= yyval_default); Keep to zero when no symbol should be popped. */ int yylen = 0; - yyssp = yyss = yyssa; - yyvsp = yyvs = yyvsa; - yystacksize = YYINITDEPTH; - YYDPRINTF ((stderr, "Starting parse\n")); - yystate = 0; - yyerrstatus = 0; - yynerrs = 0; yychar = YYEMPTY; /* Cause a token to be read. */ goto yysetstate; @@ -1140,12 +1242,15 @@ yynewstate: /*--------------------------------------------------------------------. -| yynewstate -- set current state (the top of the stack) to yystate. | +| yysetstate -- set current state (the top of the stack) to yystate. | `--------------------------------------------------------------------*/ yysetstate: YYDPRINTF ((stderr, "Entering state %d\n", yystate)); YY_ASSERT (0 <= yystate && yystate < YYNSTATES); - *yyssp = (yytype_int16) yystate; + YY_IGNORE_USELESS_CAST_BEGIN + *yyssp = YY_CAST (yy_state_t, yystate); + YY_IGNORE_USELESS_CAST_END + YY_STACK_PRINT (yyss, yyssp); if (yyss + yystacksize - 1 <= yyssp) #if !defined yyoverflow && !defined YYSTACK_RELOCATE @@ -1153,23 +1258,23 @@ yysetstate: #else { /* Get the current used size of the three stacks, in elements. */ - YYSIZE_T yysize = (YYSIZE_T) (yyssp - yyss + 1); + YYPTRDIFF_T yysize = yyssp - yyss + 1; # if defined yyoverflow { /* Give user a chance to reallocate the stack. Use copies of these so that the &'s don't force the real ones into memory. */ + yy_state_t *yyss1 = yyss; YYSTYPE *yyvs1 = yyvs; - yytype_int16 *yyss1 = yyss; /* Each stack pointer address is followed by the size of the data in use in that stack, in bytes. This used to be a conditional around just the two extra args, but that might be undefined if yyoverflow is a macro. */ yyoverflow (YY_("memory exhausted"), - &yyss1, yysize * sizeof (*yyssp), - &yyvs1, yysize * sizeof (*yyvsp), + &yyss1, yysize * YYSIZEOF (*yyssp), + &yyvs1, yysize * YYSIZEOF (*yyvsp), &yystacksize); yyss = yyss1; yyvs = yyvs1; @@ -1183,14 +1288,15 @@ yysetstate: yystacksize = YYMAXDEPTH; { - yytype_int16 *yyss1 = yyss; + yy_state_t *yyss1 = yyss; union yyalloc *yyptr = - (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize)); + YY_CAST (union yyalloc *, + YYSTACK_ALLOC (YY_CAST (YYSIZE_T, YYSTACK_BYTES (yystacksize)))); if (! yyptr) goto yyexhaustedlab; YYSTACK_RELOCATE (yyss_alloc, yyss); YYSTACK_RELOCATE (yyvs_alloc, yyvs); -# undef YYSTACK_RELOCATE +# undef YYSTACK_RELOCATE if (yyss1 != yyssa) YYSTACK_FREE (yyss1); } @@ -1199,8 +1305,10 @@ yysetstate: yyssp = yyss + yysize - 1; yyvsp = yyvs + yysize - 1; - YYDPRINTF ((stderr, "Stack size increased to %lu\n", - (unsigned long) yystacksize)); + YY_IGNORE_USELESS_CAST_BEGIN + YYDPRINTF ((stderr, "Stack size increased to %ld\n", + YY_CAST (long, yystacksize))); + YY_IGNORE_USELESS_CAST_END if (yyss + yystacksize - 1 <= yyssp) YYABORT; @@ -1227,18 +1335,29 @@ yybackup: /* Not known => get a lookahead token if don't already have one. */ - /* YYCHAR is either YYEMPTY or YYEOF or a valid lookahead symbol. */ + /* YYCHAR is either empty, or end-of-input, or a valid lookahead. */ if (yychar == YYEMPTY) { - YYDPRINTF ((stderr, "Reading a token: ")); + YYDPRINTF ((stderr, "Reading a token\n")); yychar = yylex (&yylval, yyscanner); } if (yychar <= YYEOF) { - yychar = yytoken = YYEOF; + yychar = YYEOF; + yytoken = YYSYMBOL_YYEOF; YYDPRINTF ((stderr, "Now at end of input.\n")); } + else if (yychar == YYerror) + { + /* The scanner already issued an error message, process directly + to error recovery. But do not keep the error token as + lookahead, it is too special and may lead us to an endless + loop in error recovery. */ + yychar = YYUNDEF; + yytoken = YYSYMBOL_YYerror; + goto yyerrlab1; + } else { yytoken = YYTRANSLATE (yychar); @@ -1266,14 +1385,13 @@ yybackup: /* Shift the lookahead token. */ YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc); - - /* Discard the shifted token. */ - yychar = YYEMPTY; - yystate = yyn; YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN *++yyvsp = yylval; YY_IGNORE_MAYBE_UNINITIALIZED_END + + /* Discard the shifted token. */ + yychar = YYEMPTY; goto yynewstate; @@ -1308,193 +1426,193 @@ yyreduce: YY_REDUCE_PRINT (yyn); switch (yyn) { - case 2: -#line 99 "cmCommandArgumentParser.y" - { + case 2: /* Start: GoalWithOptionalBackSlash */ +#line 96 "cmCommandArgumentParser.y" + { (yyval.str) = 0; yyGetParser->SetResult((yyvsp[0].str)); } -#line 1318 "cmCommandArgumentParser.cxx" +#line 1436 "cmCommandArgumentParser.cxx" break; - case 3: -#line 105 "cmCommandArgumentParser.y" - { + case 3: /* GoalWithOptionalBackSlash: Goal */ +#line 102 "cmCommandArgumentParser.y" + { (yyval.str) = (yyvsp[0].str); } -#line 1326 "cmCommandArgumentParser.cxx" +#line 1444 "cmCommandArgumentParser.cxx" break; - case 4: -#line 108 "cmCommandArgumentParser.y" - { + case 4: /* GoalWithOptionalBackSlash: Goal "\\" */ +#line 105 "cmCommandArgumentParser.y" + { (yyval.str) = yyGetParser->CombineUnions((yyvsp[-1].str), (yyvsp[0].str)); } -#line 1334 "cmCommandArgumentParser.cxx" +#line 1452 "cmCommandArgumentParser.cxx" break; - case 5: -#line 113 "cmCommandArgumentParser.y" - { + case 5: /* Goal: %empty */ +#line 110 "cmCommandArgumentParser.y" + { (yyval.str) = 0; } -#line 1342 "cmCommandArgumentParser.cxx" +#line 1460 "cmCommandArgumentParser.cxx" break; - case 6: -#line 116 "cmCommandArgumentParser.y" - { + case 6: /* Goal: String Goal */ +#line 113 "cmCommandArgumentParser.y" + { (yyval.str) = yyGetParser->CombineUnions((yyvsp[-1].str), (yyvsp[0].str)); } -#line 1350 "cmCommandArgumentParser.cxx" +#line 1468 "cmCommandArgumentParser.cxx" + break; + + case 7: /* String: OuterText */ +#line 118 "cmCommandArgumentParser.y" + { + (yyval.str) = (yyvsp[0].str); + } +#line 1476 "cmCommandArgumentParser.cxx" break; - case 7: + case 8: /* String: Variable */ #line 121 "cmCommandArgumentParser.y" - { + { (yyval.str) = (yyvsp[0].str); } -#line 1358 "cmCommandArgumentParser.cxx" +#line 1484 "cmCommandArgumentParser.cxx" break; - case 8: -#line 124 "cmCommandArgumentParser.y" - { + case 9: /* OuterText: cal_NAME */ +#line 126 "cmCommandArgumentParser.y" + { (yyval.str) = (yyvsp[0].str); } -#line 1366 "cmCommandArgumentParser.cxx" +#line 1492 "cmCommandArgumentParser.cxx" break; - case 9: + case 10: /* OuterText: "@" */ #line 129 "cmCommandArgumentParser.y" - { + { (yyval.str) = (yyvsp[0].str); } -#line 1374 "cmCommandArgumentParser.cxx" +#line 1500 "cmCommandArgumentParser.cxx" break; - case 10: + case 11: /* OuterText: "$" */ #line 132 "cmCommandArgumentParser.y" - { + { (yyval.str) = (yyvsp[0].str); } -#line 1382 "cmCommandArgumentParser.cxx" +#line 1508 "cmCommandArgumentParser.cxx" break; - case 11: + case 12: /* OuterText: "{" */ #line 135 "cmCommandArgumentParser.y" - { + { (yyval.str) = (yyvsp[0].str); } -#line 1390 "cmCommandArgumentParser.cxx" +#line 1516 "cmCommandArgumentParser.cxx" break; - case 12: + case 13: /* OuterText: "}" */ #line 138 "cmCommandArgumentParser.y" - { + { (yyval.str) = (yyvsp[0].str); } -#line 1398 "cmCommandArgumentParser.cxx" +#line 1524 "cmCommandArgumentParser.cxx" break; - case 13: + case 14: /* OuterText: cal_SYMBOL */ #line 141 "cmCommandArgumentParser.y" - { + { (yyval.str) = (yyvsp[0].str); } -#line 1406 "cmCommandArgumentParser.cxx" +#line 1532 "cmCommandArgumentParser.cxx" break; - case 14: -#line 144 "cmCommandArgumentParser.y" - { - (yyval.str) = (yyvsp[0].str); + case 15: /* Variable: cal_ENVCURLY EnvVarName "}" */ +#line 146 "cmCommandArgumentParser.y" + { + (yyval.str) = yyGetParser->ExpandSpecialVariable((yyvsp[-2].str), (yyvsp[-1].str)); } -#line 1414 "cmCommandArgumentParser.cxx" +#line 1540 "cmCommandArgumentParser.cxx" break; - case 15: + case 16: /* Variable: cal_NCURLY MultipleIds "}" */ #line 149 "cmCommandArgumentParser.y" - { + { (yyval.str) = yyGetParser->ExpandSpecialVariable((yyvsp[-2].str), (yyvsp[-1].str)); } -#line 1422 "cmCommandArgumentParser.cxx" +#line 1548 "cmCommandArgumentParser.cxx" break; - case 16: + case 17: /* Variable: cal_DCURLY MultipleIds "}" */ #line 152 "cmCommandArgumentParser.y" - { - (yyval.str) = yyGetParser->ExpandSpecialVariable((yyvsp[-2].str), (yyvsp[-1].str)); - } -#line 1430 "cmCommandArgumentParser.cxx" - break; - - case 17: -#line 155 "cmCommandArgumentParser.y" - { + { (yyval.str) = yyGetParser->ExpandVariable((yyvsp[-1].str)); } -#line 1438 "cmCommandArgumentParser.cxx" +#line 1556 "cmCommandArgumentParser.cxx" break; - case 18: -#line 158 "cmCommandArgumentParser.y" - { + case 18: /* Variable: cal_ATNAME */ +#line 155 "cmCommandArgumentParser.y" + { (yyval.str) = yyGetParser->ExpandVariableForAt((yyvsp[0].str)); } -#line 1446 "cmCommandArgumentParser.cxx" +#line 1564 "cmCommandArgumentParser.cxx" break; - case 19: -#line 163 "cmCommandArgumentParser.y" - { + case 19: /* EnvVarName: MultipleIds */ +#line 160 "cmCommandArgumentParser.y" + { (yyval.str) = (yyvsp[0].str); } -#line 1454 "cmCommandArgumentParser.cxx" +#line 1572 "cmCommandArgumentParser.cxx" break; - case 20: -#line 166 "cmCommandArgumentParser.y" - { + case 20: /* EnvVarName: cal_SYMBOL EnvVarName */ +#line 163 "cmCommandArgumentParser.y" + { (yyval.str) = (yyvsp[-1].str); } -#line 1462 "cmCommandArgumentParser.cxx" +#line 1580 "cmCommandArgumentParser.cxx" break; - case 21: -#line 171 "cmCommandArgumentParser.y" - { + case 21: /* MultipleIds: %empty */ +#line 168 "cmCommandArgumentParser.y" + { (yyval.str) = 0; } -#line 1470 "cmCommandArgumentParser.cxx" +#line 1588 "cmCommandArgumentParser.cxx" break; - case 22: -#line 174 "cmCommandArgumentParser.y" - { + case 22: /* MultipleIds: ID MultipleIds */ +#line 171 "cmCommandArgumentParser.y" + { (yyval.str) = yyGetParser->CombineUnions((yyvsp[-1].str), (yyvsp[0].str)); } -#line 1478 "cmCommandArgumentParser.cxx" +#line 1596 "cmCommandArgumentParser.cxx" break; - case 23: -#line 179 "cmCommandArgumentParser.y" - { + case 23: /* ID: cal_NAME */ +#line 176 "cmCommandArgumentParser.y" + { (yyval.str) = (yyvsp[0].str); } -#line 1486 "cmCommandArgumentParser.cxx" +#line 1604 "cmCommandArgumentParser.cxx" break; - case 24: -#line 182 "cmCommandArgumentParser.y" - { + case 24: /* ID: Variable */ +#line 179 "cmCommandArgumentParser.y" + { (yyval.str) = (yyvsp[0].str); } -#line 1494 "cmCommandArgumentParser.cxx" +#line 1612 "cmCommandArgumentParser.cxx" break; -#line 1498 "cmCommandArgumentParser.cxx" +#line 1616 "cmCommandArgumentParser.cxx" default: break; } @@ -1509,11 +1627,10 @@ yyreduce: case of YYERROR or YYBACKUP, subsequent parser actions might lead to an incorrect destructor call or verbose syntax error message before the lookahead is translated. */ - YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc); + YY_SYMBOL_PRINT ("-> $$ =", YY_CAST (yysymbol_kind_t, yyr1[yyn]), &yyval, &yyloc); YYPOPSTACK (yylen); yylen = 0; - YY_STACK_PRINT (yyss, yyssp); *++yyvsp = yyval; @@ -1537,50 +1654,44 @@ yyreduce: yyerrlab: /* Make sure we have latest lookahead translation. See comments at user semantic actions for why this is necessary. */ - yytoken = yychar == YYEMPTY ? YYEMPTY : YYTRANSLATE (yychar); - + yytoken = yychar == YYEMPTY ? YYSYMBOL_YYEMPTY : YYTRANSLATE (yychar); /* If not already recovering from an error, report this error. */ if (!yyerrstatus) { ++yynerrs; -#if ! YYERROR_VERBOSE - yyerror (yyscanner, YY_("syntax error")); -#else -# define YYSYNTAX_ERROR yysyntax_error (&yymsg_alloc, &yymsg, \ - yyssp, yytoken) { + yypcontext_t yyctx + = {yyssp, yytoken}; char const *yymsgp = YY_("syntax error"); int yysyntax_error_status; - yysyntax_error_status = YYSYNTAX_ERROR; + yysyntax_error_status = yysyntax_error (&yymsg_alloc, &yymsg, &yyctx); if (yysyntax_error_status == 0) yymsgp = yymsg; - else if (yysyntax_error_status == 1) + else if (yysyntax_error_status == -1) { if (yymsg != yymsgbuf) YYSTACK_FREE (yymsg); - yymsg = (char *) YYSTACK_ALLOC (yymsg_alloc); - if (!yymsg) + yymsg = YY_CAST (char *, + YYSTACK_ALLOC (YY_CAST (YYSIZE_T, yymsg_alloc))); + if (yymsg) { - yymsg = yymsgbuf; - yymsg_alloc = sizeof yymsgbuf; - yysyntax_error_status = 2; + yysyntax_error_status + = yysyntax_error (&yymsg_alloc, &yymsg, &yyctx); + yymsgp = yymsg; } else { - yysyntax_error_status = YYSYNTAX_ERROR; - yymsgp = yymsg; + yymsg = yymsgbuf; + yymsg_alloc = sizeof yymsgbuf; + yysyntax_error_status = YYENOMEM; } } yyerror (yyscanner, yymsgp); - if (yysyntax_error_status == 2) + if (yysyntax_error_status == YYENOMEM) goto yyexhaustedlab; } -# undef YYSYNTAX_ERROR -#endif } - - if (yyerrstatus == 3) { /* If just tried and failed to reuse lookahead token after an @@ -1600,7 +1711,6 @@ yyerrlab: } } -#if 0 /* Else will try to reuse lookahead token after shifting the error token. */ goto yyerrlab1; @@ -1628,16 +1738,16 @@ yyerrorlab: | yyerrlab1 -- common code for both syntax error and YYERROR. | `-------------------------------------------------------------*/ yyerrlab1: -#endif yyerrstatus = 3; /* Each real token shifted decrements this. */ + /* Pop stack until we find a state that shifts the error token. */ for (;;) { yyn = yypact[yystate]; if (!yypact_value_is_default (yyn)) { - yyn += YYTERROR; - if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR) + yyn += YYSYMBOL_YYerror; + if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) { yyn = yytable[yyn]; if (0 < yyn) @@ -1651,7 +1761,7 @@ yyerrlab1: yydestruct ("Error: popping", - yystos[yystate], yyvsp, yyscanner); + YY_ACCESSING_SYMBOL (yystate), yyvsp, yyscanner); YYPOPSTACK (1); yystate = *yyssp; YY_STACK_PRINT (yyss, yyssp); @@ -1663,7 +1773,7 @@ yyerrlab1: /* Shift the error token. */ - YY_SYMBOL_PRINT ("Shifting", yystos[yyn], yyvsp, yylsp); + YY_SYMBOL_PRINT ("Shifting", YY_ACCESSING_SYMBOL (yyn), yyvsp, yylsp); yystate = yyn; goto yynewstate; @@ -1685,20 +1795,20 @@ yyabortlab: goto yyreturn; -#if !defined yyoverflow || YYERROR_VERBOSE +#if 1 /*-------------------------------------------------. | yyexhaustedlab -- memory exhaustion comes here. | `-------------------------------------------------*/ yyexhaustedlab: yyerror (yyscanner, YY_("memory exhausted")); yyresult = 2; - /* Fall through. */ + goto yyreturn; #endif -/*-----------------------------------------------------. -| yyreturn -- parsing is finished, return the result. | -`-----------------------------------------------------*/ +/*-------------------------------------------------------. +| yyreturn -- parsing is finished, clean up and return. | +`-------------------------------------------------------*/ yyreturn: if (yychar != YYEMPTY) { @@ -1715,20 +1825,19 @@ yyreturn: while (yyssp != yyss) { yydestruct ("Cleanup: popping", - yystos[*yyssp], yyvsp, yyscanner); + YY_ACCESSING_SYMBOL (+*yyssp), yyvsp, yyscanner); YYPOPSTACK (1); } #ifndef yyoverflow if (yyss != yyssa) YYSTACK_FREE (yyss); #endif -#if YYERROR_VERBOSE if (yymsg != yymsgbuf) YYSTACK_FREE (yymsg); -#endif return yyresult; } -#line 187 "cmCommandArgumentParser.y" + +#line 184 "cmCommandArgumentParser.y" /* End of grammar */ diff --git a/Source/LexerParser/cmCommandArgumentParserTokens.h b/Source/LexerParser/cmCommandArgumentParserTokens.h index 033b899..578f793 100644 --- a/Source/LexerParser/cmCommandArgumentParserTokens.h +++ b/Source/LexerParser/cmCommandArgumentParserTokens.h @@ -1,8 +1,8 @@ -/* A Bison parser, made by GNU Bison 3.4.2. */ +/* A Bison parser, made by GNU Bison 3.7.4. */ /* Bison interface for Yacc-like parsers in C - Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2019 Free Software Foundation, + 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 @@ -31,8 +31,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. */ +/* DO NOT RELY ON FEATURES THAT ARE NOT DOCUMENTED in the manual, + especially those whose name start with YY_ or yy_. They are + private implementation details that can be changed or removed. */ #ifndef YY_CMCOMMANDARGUMENT_YY_CMCOMMANDARGUMENTPARSERTOKENS_H_INCLUDED # define YY_CMCOMMANDARGUMENT_YY_CMCOMMANDARGUMENTPARSERTOKENS_H_INCLUDED @@ -44,38 +45,30 @@ extern int cmCommandArgument_yydebug; #endif -/* Token type. */ +/* Token kinds. */ #ifndef YYTOKENTYPE # define YYTOKENTYPE enum yytokentype { - cal_ENVCURLY = 258, - cal_NCURLY = 259, - cal_DCURLY = 260, - cal_DOLLAR = 261, - cal_LCURLY = 262, - cal_RCURLY = 263, - cal_NAME = 264, - cal_BSLASH = 265, - cal_SYMBOL = 266, - cal_AT = 267, - cal_ERROR = 268, - cal_ATNAME = 269 + YYEMPTY = -2, + YYEOF = 0, /* "end of file" */ + YYerror = 256, /* error */ + YYUNDEF = 257, /* "invalid token" */ + cal_ENVCURLY = 258, /* cal_ENVCURLY */ + cal_NCURLY = 259, /* cal_NCURLY */ + cal_DCURLY = 260, /* cal_DCURLY */ + cal_DOLLAR = 261, /* "$" */ + cal_LCURLY = 262, /* "{" */ + cal_RCURLY = 263, /* "}" */ + cal_NAME = 264, /* cal_NAME */ + cal_BSLASH = 265, /* "\\" */ + cal_SYMBOL = 266, /* cal_SYMBOL */ + cal_AT = 267, /* "@" */ + cal_ERROR = 268, /* cal_ERROR */ + cal_ATNAME = 269 /* cal_ATNAME */ }; + typedef enum yytokentype yytoken_kind_t; #endif -/* Tokens. */ -#define cal_ENVCURLY 258 -#define cal_NCURLY 259 -#define cal_DCURLY 260 -#define cal_DOLLAR 261 -#define cal_LCURLY 262 -#define cal_RCURLY 263 -#define cal_NAME 264 -#define cal_BSLASH 265 -#define cal_SYMBOL 266 -#define cal_AT 267 -#define cal_ERROR 268 -#define cal_ATNAME 269 /* Value type. */ diff --git a/Source/LexerParser/cmDependsJavaParser.cxx b/Source/LexerParser/cmDependsJavaParser.cxx index b15082d..309f2b9 100644 --- a/Source/LexerParser/cmDependsJavaParser.cxx +++ b/Source/LexerParser/cmDependsJavaParser.cxx @@ -1,8 +1,8 @@ -/* A Bison parser, made by GNU Bison 3.4.2. */ +/* A Bison parser, made by GNU Bison 3.7.4. */ /* Bison implementation for Yacc-like parsers in C - Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2019 Free Software Foundation, + 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 @@ -34,6 +34,10 @@ /* C LALR(1) parser skeleton written by Richard Stallman, by simplifying the original so-called "semantic" parser. */ +/* DO NOT RELY ON FEATURES THAT ARE NOT DOCUMENTED in the manual, + especially those whose name start with YY_ or yy_. They are + private implementation details that can be changed or removed. */ + /* All symbols defined below should begin with yy or YY, to avoid infringing on user name space. This should be done even for local variables, as they might otherwise be expanded by user macros. @@ -41,14 +45,11 @@ define necessary library symbols; they are noted "INFRINGES ON USER NAME SPACE" below. */ -/* Undocumented macros, especially those whose name start with YY_, - are private implementation details. Do not rely on them. */ - -/* Identify Bison output. */ -#define YYBISON 1 +/* Identify Bison output, and Bison version. */ +#define YYBISON 30704 -/* Bison version. */ -#define YYBISON_VERSION "3.4.2" +/* Bison version string. */ +#define YYBISON_VERSION "3.7.4" /* Skeleton name. */ #define YYSKELETON_NAME "yacc.c" @@ -70,7 +71,6 @@ #define yydebug cmDependsJava_yydebug #define yynerrs cmDependsJava_yynerrs - /* First part of user prologue. */ #line 1 "cmDependsJavaParser.y" @@ -82,10 +82,7 @@ This file must be translated to C and modified to build everywhere. Run bison like this: - bison --yacc --name-prefix=cmDependsJava_yy --defines=cmDependsJavaParserTokens.h -ocmDependsJavaParser.cxx cmDependsJavaParser.y - -Modify cmDependsJavaParser.cxx: - - "#if 0" out yyerrorlab block in range ["goto yyerrlab1", "yyerrlab1:"] + bison --name-prefix=cmDependsJava_yy --defines=cmDependsJavaParserTokens.h -ocmDependsJavaParser.cxx cmDependsJavaParser.y */ @@ -123,8 +120,17 @@ static void cmDependsJava_yyerror(yyscan_t yyscanner, const char* message); # pragma GCC diagnostic ignored "-Wconversion" #endif -#line 127 "cmDependsJavaParser.cxx" +#line 124 "cmDependsJavaParser.cxx" +# ifndef YY_CAST +# ifdef __cplusplus +# define YY_CAST(Type, Val) static_cast (Val) +# define YY_REINTERPRET_CAST(Type, Val) reinterpret_cast (Val) +# else +# define YY_CAST(Type, Val) ((Type) (Val)) +# define YY_REINTERPRET_CAST(Type, Val) ((Type) (Val)) +# endif +# endif # ifndef YY_NULLPTR # if defined __cplusplus # if 201103L <= __cplusplus @@ -137,248 +143,278 @@ static void cmDependsJava_yyerror(yyscan_t yyscanner, const char* message); # endif # endif -/* Enabling verbose error messages. */ -#ifdef YYERROR_VERBOSE -# undef YYERROR_VERBOSE -# define YYERROR_VERBOSE 1 -#else -# define YYERROR_VERBOSE 1 -#endif - -/* Use api.header.include to #include this header - instead of duplicating it here. */ -#ifndef YY_CMDEPENDSJAVA_YY_CMDEPENDSJAVAPARSERTOKENS_H_INCLUDED -# define YY_CMDEPENDSJAVA_YY_CMDEPENDSJAVAPARSERTOKENS_H_INCLUDED -/* Debug traces. */ -#ifndef YYDEBUG -# define YYDEBUG 0 -#endif -#if YYDEBUG -extern int cmDependsJava_yydebug; -#endif +#include "cmDependsJavaParserTokens.h" +/* Symbol kind. */ +enum yysymbol_kind_t +{ + YYSYMBOL_YYEMPTY = -2, + YYSYMBOL_YYEOF = 0, /* "end of file" */ + YYSYMBOL_YYerror = 1, /* error */ + YYSYMBOL_YYUNDEF = 2, /* "invalid token" */ + YYSYMBOL_jp_ABSTRACT = 3, /* jp_ABSTRACT */ + YYSYMBOL_jp_ASSERT = 4, /* jp_ASSERT */ + YYSYMBOL_jp_BOOLEAN_TYPE = 5, /* jp_BOOLEAN_TYPE */ + YYSYMBOL_jp_BREAK = 6, /* jp_BREAK */ + YYSYMBOL_jp_BYTE_TYPE = 7, /* jp_BYTE_TYPE */ + YYSYMBOL_jp_CASE = 8, /* jp_CASE */ + YYSYMBOL_jp_CATCH = 9, /* jp_CATCH */ + YYSYMBOL_jp_CHAR_TYPE = 10, /* jp_CHAR_TYPE */ + YYSYMBOL_jp_CLASS = 11, /* jp_CLASS */ + YYSYMBOL_jp_CONTINUE = 12, /* jp_CONTINUE */ + YYSYMBOL_jp_DEFAULT = 13, /* jp_DEFAULT */ + YYSYMBOL_jp_DO = 14, /* jp_DO */ + YYSYMBOL_jp_DOUBLE_TYPE = 15, /* jp_DOUBLE_TYPE */ + YYSYMBOL_jp_ELSE = 16, /* jp_ELSE */ + YYSYMBOL_jp_EXTENDS = 17, /* jp_EXTENDS */ + YYSYMBOL_jp_FINAL = 18, /* jp_FINAL */ + YYSYMBOL_jp_FINALLY = 19, /* jp_FINALLY */ + YYSYMBOL_jp_FLOAT_TYPE = 20, /* jp_FLOAT_TYPE */ + YYSYMBOL_jp_FOR = 21, /* jp_FOR */ + YYSYMBOL_jp_IF = 22, /* jp_IF */ + YYSYMBOL_jp_IMPLEMENTS = 23, /* jp_IMPLEMENTS */ + YYSYMBOL_jp_IMPORT = 24, /* jp_IMPORT */ + YYSYMBOL_jp_INSTANCEOF = 25, /* jp_INSTANCEOF */ + YYSYMBOL_jp_INT_TYPE = 26, /* jp_INT_TYPE */ + YYSYMBOL_jp_INTERFACE = 27, /* jp_INTERFACE */ + YYSYMBOL_jp_LONG_TYPE = 28, /* jp_LONG_TYPE */ + YYSYMBOL_jp_NATIVE = 29, /* jp_NATIVE */ + YYSYMBOL_jp_NEW = 30, /* jp_NEW */ + YYSYMBOL_jp_PACKAGE = 31, /* jp_PACKAGE */ + YYSYMBOL_jp_PRIVATE = 32, /* jp_PRIVATE */ + YYSYMBOL_jp_PROTECTED = 33, /* jp_PROTECTED */ + YYSYMBOL_jp_PUBLIC = 34, /* jp_PUBLIC */ + YYSYMBOL_jp_RETURN = 35, /* jp_RETURN */ + YYSYMBOL_jp_SHORT_TYPE = 36, /* jp_SHORT_TYPE */ + YYSYMBOL_jp_STATIC = 37, /* jp_STATIC */ + YYSYMBOL_jp_STRICTFP = 38, /* jp_STRICTFP */ + YYSYMBOL_jp_SUPER = 39, /* jp_SUPER */ + YYSYMBOL_jp_SWITCH = 40, /* jp_SWITCH */ + YYSYMBOL_jp_SYNCHRONIZED = 41, /* jp_SYNCHRONIZED */ + YYSYMBOL_jp_THIS = 42, /* jp_THIS */ + YYSYMBOL_jp_THROW = 43, /* jp_THROW */ + YYSYMBOL_jp_THROWS = 44, /* jp_THROWS */ + YYSYMBOL_jp_TRANSIENT = 45, /* jp_TRANSIENT */ + YYSYMBOL_jp_TRY = 46, /* jp_TRY */ + YYSYMBOL_jp_VOID = 47, /* jp_VOID */ + YYSYMBOL_jp_VOLATILE = 48, /* jp_VOLATILE */ + YYSYMBOL_jp_WHILE = 49, /* jp_WHILE */ + YYSYMBOL_jp_BOOLEANLITERAL = 50, /* jp_BOOLEANLITERAL */ + YYSYMBOL_jp_CHARACTERLITERAL = 51, /* jp_CHARACTERLITERAL */ + YYSYMBOL_jp_DECIMALINTEGERLITERAL = 52, /* jp_DECIMALINTEGERLITERAL */ + YYSYMBOL_jp_FLOATINGPOINTLITERAL = 53, /* jp_FLOATINGPOINTLITERAL */ + YYSYMBOL_jp_HEXINTEGERLITERAL = 54, /* jp_HEXINTEGERLITERAL */ + YYSYMBOL_jp_NULLLITERAL = 55, /* jp_NULLLITERAL */ + YYSYMBOL_jp_STRINGLITERAL = 56, /* jp_STRINGLITERAL */ + YYSYMBOL_jp_NAME = 57, /* jp_NAME */ + YYSYMBOL_jp_AND = 58, /* jp_AND */ + YYSYMBOL_jp_ANDAND = 59, /* jp_ANDAND */ + YYSYMBOL_jp_ANDEQUALS = 60, /* jp_ANDEQUALS */ + YYSYMBOL_jp_BRACKETEND = 61, /* jp_BRACKETEND */ + YYSYMBOL_jp_BRACKETSTART = 62, /* jp_BRACKETSTART */ + YYSYMBOL_jp_CARROT = 63, /* jp_CARROT */ + YYSYMBOL_jp_CARROTEQUALS = 64, /* jp_CARROTEQUALS */ + YYSYMBOL_jp_COLON = 65, /* jp_COLON */ + YYSYMBOL_jp_COMMA = 66, /* jp_COMMA */ + YYSYMBOL_jp_CURLYEND = 67, /* jp_CURLYEND */ + YYSYMBOL_jp_CURLYSTART = 68, /* jp_CURLYSTART */ + YYSYMBOL_jp_DIVIDE = 69, /* jp_DIVIDE */ + YYSYMBOL_jp_DIVIDEEQUALS = 70, /* jp_DIVIDEEQUALS */ + YYSYMBOL_jp_DOLLAR = 71, /* jp_DOLLAR */ + YYSYMBOL_jp_DOT = 72, /* jp_DOT */ + YYSYMBOL_jp_EQUALS = 73, /* jp_EQUALS */ + YYSYMBOL_jp_EQUALSEQUALS = 74, /* jp_EQUALSEQUALS */ + YYSYMBOL_jp_EXCLAMATION = 75, /* jp_EXCLAMATION */ + YYSYMBOL_jp_EXCLAMATIONEQUALS = 76, /* jp_EXCLAMATIONEQUALS */ + YYSYMBOL_jp_GREATER = 77, /* jp_GREATER */ + YYSYMBOL_jp_GTEQUALS = 78, /* jp_GTEQUALS */ + YYSYMBOL_jp_GTGT = 79, /* jp_GTGT */ + YYSYMBOL_jp_GTGTEQUALS = 80, /* jp_GTGTEQUALS */ + YYSYMBOL_jp_GTGTGT = 81, /* jp_GTGTGT */ + YYSYMBOL_jp_GTGTGTEQUALS = 82, /* jp_GTGTGTEQUALS */ + YYSYMBOL_jp_LESLESEQUALS = 83, /* jp_LESLESEQUALS */ + YYSYMBOL_jp_LESSTHAN = 84, /* jp_LESSTHAN */ + YYSYMBOL_jp_LTEQUALS = 85, /* jp_LTEQUALS */ + YYSYMBOL_jp_LTLT = 86, /* jp_LTLT */ + YYSYMBOL_jp_MINUS = 87, /* jp_MINUS */ + YYSYMBOL_jp_MINUSEQUALS = 88, /* jp_MINUSEQUALS */ + YYSYMBOL_jp_MINUSMINUS = 89, /* jp_MINUSMINUS */ + YYSYMBOL_jp_PAREEND = 90, /* jp_PAREEND */ + YYSYMBOL_jp_PARESTART = 91, /* jp_PARESTART */ + YYSYMBOL_jp_PERCENT = 92, /* jp_PERCENT */ + YYSYMBOL_jp_PERCENTEQUALS = 93, /* jp_PERCENTEQUALS */ + YYSYMBOL_jp_PIPE = 94, /* jp_PIPE */ + YYSYMBOL_jp_PIPEEQUALS = 95, /* jp_PIPEEQUALS */ + YYSYMBOL_jp_PIPEPIPE = 96, /* jp_PIPEPIPE */ + YYSYMBOL_jp_PLUS = 97, /* jp_PLUS */ + YYSYMBOL_jp_PLUSEQUALS = 98, /* jp_PLUSEQUALS */ + YYSYMBOL_jp_PLUSPLUS = 99, /* jp_PLUSPLUS */ + YYSYMBOL_jp_QUESTION = 100, /* jp_QUESTION */ + YYSYMBOL_jp_SEMICOL = 101, /* jp_SEMICOL */ + YYSYMBOL_jp_TILDE = 102, /* jp_TILDE */ + YYSYMBOL_jp_TIMES = 103, /* jp_TIMES */ + YYSYMBOL_jp_TIMESEQUALS = 104, /* jp_TIMESEQUALS */ + YYSYMBOL_jp_ERROR = 105, /* jp_ERROR */ + YYSYMBOL_YYACCEPT = 106, /* $accept */ + YYSYMBOL_Goal = 107, /* Goal */ + YYSYMBOL_Literal = 108, /* Literal */ + YYSYMBOL_IntegerLiteral = 109, /* IntegerLiteral */ + YYSYMBOL_Type = 110, /* Type */ + YYSYMBOL_PrimitiveType = 111, /* PrimitiveType */ + YYSYMBOL_ReferenceType = 112, /* ReferenceType */ + YYSYMBOL_ClassOrInterfaceType = 113, /* ClassOrInterfaceType */ + YYSYMBOL_ClassType = 114, /* ClassType */ + YYSYMBOL_InterfaceType = 115, /* InterfaceType */ + YYSYMBOL_ArrayType = 116, /* ArrayType */ + YYSYMBOL_Name = 117, /* Name */ + YYSYMBOL_SimpleName = 118, /* SimpleName */ + YYSYMBOL_Identifier = 119, /* Identifier */ + YYSYMBOL_QualifiedName = 120, /* QualifiedName */ + YYSYMBOL_SimpleType = 121, /* SimpleType */ + YYSYMBOL_CompilationUnit = 122, /* CompilationUnit */ + YYSYMBOL_PackageDeclarationopt = 123, /* PackageDeclarationopt */ + YYSYMBOL_ImportDeclarations = 124, /* ImportDeclarations */ + YYSYMBOL_TypeDeclarations = 125, /* TypeDeclarations */ + YYSYMBOL_PackageDeclaration = 126, /* PackageDeclaration */ + YYSYMBOL_ImportDeclaration = 127, /* ImportDeclaration */ + YYSYMBOL_SingleTypeImportDeclaration = 128, /* SingleTypeImportDeclaration */ + YYSYMBOL_TypeImportOnDemandDeclaration = 129, /* TypeImportOnDemandDeclaration */ + YYSYMBOL_TypeDeclaration = 130, /* TypeDeclaration */ + YYSYMBOL_Modifiers = 131, /* Modifiers */ + YYSYMBOL_Modifier = 132, /* Modifier */ + YYSYMBOL_ClassHeader = 133, /* ClassHeader */ + YYSYMBOL_ClassDeclaration = 134, /* ClassDeclaration */ + YYSYMBOL_Modifiersopt = 135, /* Modifiersopt */ + YYSYMBOL_Super = 136, /* Super */ + YYSYMBOL_Interfaces = 137, /* Interfaces */ + YYSYMBOL_InterfaceTypeList = 138, /* InterfaceTypeList */ + YYSYMBOL_ClassBody = 139, /* ClassBody */ + YYSYMBOL_ClassBodyDeclarations = 140, /* ClassBodyDeclarations */ + YYSYMBOL_ClassBodyDeclaration = 141, /* ClassBodyDeclaration */ + YYSYMBOL_ClassMemberDeclaration = 142, /* ClassMemberDeclaration */ + YYSYMBOL_FieldDeclaration = 143, /* FieldDeclaration */ + YYSYMBOL_VariableDeclarators = 144, /* VariableDeclarators */ + YYSYMBOL_VariableDeclarator = 145, /* VariableDeclarator */ + YYSYMBOL_VariableDeclaratorId = 146, /* VariableDeclaratorId */ + YYSYMBOL_VariableInitializer = 147, /* VariableInitializer */ + YYSYMBOL_MethodDeclaration = 148, /* MethodDeclaration */ + YYSYMBOL_MethodHeader = 149, /* MethodHeader */ + YYSYMBOL_Throwsopt = 150, /* Throwsopt */ + YYSYMBOL_MethodDeclarator = 151, /* MethodDeclarator */ + YYSYMBOL_FormalParameterListopt = 152, /* FormalParameterListopt */ + YYSYMBOL_FormalParameterList = 153, /* FormalParameterList */ + YYSYMBOL_FormalParameter = 154, /* FormalParameter */ + YYSYMBOL_Throws = 155, /* Throws */ + YYSYMBOL_ClassTypeList = 156, /* ClassTypeList */ + YYSYMBOL_MethodBody = 157, /* MethodBody */ + YYSYMBOL_StaticInitializer = 158, /* StaticInitializer */ + YYSYMBOL_ConstructorDeclaration = 159, /* ConstructorDeclaration */ + YYSYMBOL_ConstructorDeclarator = 160, /* ConstructorDeclarator */ + YYSYMBOL_ConstructorBody = 161, /* ConstructorBody */ + YYSYMBOL_ExplicitConstructorInvocationopt = 162, /* ExplicitConstructorInvocationopt */ + YYSYMBOL_ExplicitConstructorInvocation = 163, /* ExplicitConstructorInvocation */ + YYSYMBOL_InterfaceHeader = 164, /* InterfaceHeader */ + YYSYMBOL_InterfaceDeclaration = 165, /* InterfaceDeclaration */ + YYSYMBOL_ExtendsInterfacesopt = 166, /* ExtendsInterfacesopt */ + YYSYMBOL_ExtendsInterfaces = 167, /* ExtendsInterfaces */ + YYSYMBOL_InterfaceBody = 168, /* InterfaceBody */ + YYSYMBOL_InterfaceMemberDeclarations = 169, /* InterfaceMemberDeclarations */ + YYSYMBOL_InterfaceMemberDeclaration = 170, /* InterfaceMemberDeclaration */ + YYSYMBOL_ConstantDeclaration = 171, /* ConstantDeclaration */ + YYSYMBOL_AbstractMethodDeclaration = 172, /* AbstractMethodDeclaration */ + YYSYMBOL_Semicols = 173, /* Semicols */ + YYSYMBOL_ArrayInitializer = 174, /* ArrayInitializer */ + YYSYMBOL_VariableInitializersOptional = 175, /* VariableInitializersOptional */ + YYSYMBOL_VariableInitializers = 176, /* VariableInitializers */ + YYSYMBOL_Block = 177, /* Block */ + YYSYMBOL_BlockStatementsopt = 178, /* BlockStatementsopt */ + YYSYMBOL_BlockStatements = 179, /* BlockStatements */ + YYSYMBOL_BlockStatement = 180, /* BlockStatement */ + YYSYMBOL_LocalVariableDeclarationStatement = 181, /* LocalVariableDeclarationStatement */ + YYSYMBOL_LocalVariableDeclaration = 182, /* LocalVariableDeclaration */ + YYSYMBOL_Statement = 183, /* Statement */ + YYSYMBOL_StatementNoShortIf = 184, /* StatementNoShortIf */ + YYSYMBOL_StatementWithoutTrailingSubstatement = 185, /* StatementWithoutTrailingSubstatement */ + YYSYMBOL_EmptyStatement = 186, /* EmptyStatement */ + YYSYMBOL_LabeledStatement = 187, /* LabeledStatement */ + YYSYMBOL_LabeledStatementNoShortIf = 188, /* LabeledStatementNoShortIf */ + YYSYMBOL_ExpressionStatement = 189, /* ExpressionStatement */ + YYSYMBOL_StatementExpression = 190, /* StatementExpression */ + YYSYMBOL_IfThenStatement = 191, /* IfThenStatement */ + YYSYMBOL_IfThenElseStatement = 192, /* IfThenElseStatement */ + YYSYMBOL_IfThenElseStatementNoShortIf = 193, /* IfThenElseStatementNoShortIf */ + YYSYMBOL_SwitchStatement = 194, /* SwitchStatement */ + YYSYMBOL_SwitchBlock = 195, /* SwitchBlock */ + YYSYMBOL_SwitchLabelsopt = 196, /* SwitchLabelsopt */ + YYSYMBOL_SwitchBlockStatementGroups = 197, /* SwitchBlockStatementGroups */ + YYSYMBOL_SwitchBlockStatementGroup = 198, /* SwitchBlockStatementGroup */ + YYSYMBOL_SwitchLabels = 199, /* SwitchLabels */ + YYSYMBOL_SwitchLabel = 200, /* SwitchLabel */ + YYSYMBOL_WhileStatement = 201, /* WhileStatement */ + YYSYMBOL_WhileStatementNoShortIf = 202, /* WhileStatementNoShortIf */ + YYSYMBOL_DoStatement = 203, /* DoStatement */ + YYSYMBOL_ForStatement = 204, /* ForStatement */ + YYSYMBOL_ForUpdateopt = 205, /* ForUpdateopt */ + YYSYMBOL_ForInitopt = 206, /* ForInitopt */ + YYSYMBOL_ForStatementNoShortIf = 207, /* ForStatementNoShortIf */ + YYSYMBOL_Expressionopt = 208, /* Expressionopt */ + YYSYMBOL_ForInit = 209, /* ForInit */ + YYSYMBOL_ForUpdate = 210, /* ForUpdate */ + YYSYMBOL_StatementExpressionList = 211, /* StatementExpressionList */ + YYSYMBOL_AssertStatement = 212, /* AssertStatement */ + YYSYMBOL_BreakStatement = 213, /* BreakStatement */ + YYSYMBOL_Identifieropt = 214, /* Identifieropt */ + YYSYMBOL_ContinueStatement = 215, /* ContinueStatement */ + YYSYMBOL_ReturnStatement = 216, /* ReturnStatement */ + YYSYMBOL_ThrowStatement = 217, /* ThrowStatement */ + YYSYMBOL_SynchronizedStatement = 218, /* SynchronizedStatement */ + YYSYMBOL_TryStatement = 219, /* TryStatement */ + YYSYMBOL_Catchesopt = 220, /* Catchesopt */ + YYSYMBOL_Catches = 221, /* Catches */ + YYSYMBOL_CatchClause = 222, /* CatchClause */ + YYSYMBOL_Finally = 223, /* Finally */ + YYSYMBOL_Primary = 224, /* Primary */ + YYSYMBOL_PrimaryNoNewArray = 225, /* PrimaryNoNewArray */ + YYSYMBOL_ClassInstanceCreationExpression = 226, /* ClassInstanceCreationExpression */ + YYSYMBOL_ClassBodyOpt = 227, /* ClassBodyOpt */ + YYSYMBOL_ArgumentListopt = 228, /* ArgumentListopt */ + YYSYMBOL_ArgumentList = 229, /* ArgumentList */ + YYSYMBOL_ArrayCreationExpression = 230, /* ArrayCreationExpression */ + YYSYMBOL_Dimsopt = 231, /* Dimsopt */ + YYSYMBOL_DimExprs = 232, /* DimExprs */ + YYSYMBOL_DimExpr = 233, /* DimExpr */ + YYSYMBOL_Dims = 234, /* Dims */ + YYSYMBOL_FieldAccess = 235, /* FieldAccess */ + YYSYMBOL_MethodInvocation = 236, /* MethodInvocation */ + YYSYMBOL_ArrayAccess = 237, /* ArrayAccess */ + YYSYMBOL_PostfixExpression = 238, /* PostfixExpression */ + YYSYMBOL_PostIncrementExpression = 239, /* PostIncrementExpression */ + YYSYMBOL_PostDecrementExpression = 240, /* PostDecrementExpression */ + YYSYMBOL_UnaryExpression = 241, /* UnaryExpression */ + YYSYMBOL_PreIncrementExpression = 242, /* PreIncrementExpression */ + YYSYMBOL_PreDecrementExpression = 243, /* PreDecrementExpression */ + YYSYMBOL_UnaryExpressionNotPlusMinus = 244, /* UnaryExpressionNotPlusMinus */ + YYSYMBOL_CastExpression = 245, /* CastExpression */ + YYSYMBOL_MultiplicativeExpression = 246, /* MultiplicativeExpression */ + YYSYMBOL_AdditiveExpression = 247, /* AdditiveExpression */ + YYSYMBOL_ShiftExpression = 248, /* ShiftExpression */ + YYSYMBOL_RelationalExpression = 249, /* RelationalExpression */ + YYSYMBOL_EqualityExpression = 250, /* EqualityExpression */ + YYSYMBOL_AndExpression = 251, /* AndExpression */ + YYSYMBOL_ExclusiveOrExpression = 252, /* ExclusiveOrExpression */ + YYSYMBOL_InclusiveOrExpression = 253, /* InclusiveOrExpression */ + YYSYMBOL_ConditionalAndExpression = 254, /* ConditionalAndExpression */ + YYSYMBOL_ConditionalOrExpression = 255, /* ConditionalOrExpression */ + YYSYMBOL_ConditionalExpression = 256, /* ConditionalExpression */ + YYSYMBOL_AssignmentExpression = 257, /* AssignmentExpression */ + YYSYMBOL_Assignment = 258, /* Assignment */ + YYSYMBOL_LeftHandSide = 259, /* LeftHandSide */ + YYSYMBOL_AssignmentOperator = 260, /* AssignmentOperator */ + YYSYMBOL_Expression = 261, /* Expression */ + YYSYMBOL_ConstantExpression = 262, /* ConstantExpression */ + YYSYMBOL_New = 263 /* New */ +}; +typedef enum yysymbol_kind_t yysymbol_kind_t; -/* Token type. */ -#ifndef YYTOKENTYPE -# define YYTOKENTYPE - enum yytokentype - { - jp_ABSTRACT = 258, - jp_ASSERT = 259, - jp_BOOLEAN_TYPE = 260, - jp_BREAK = 261, - jp_BYTE_TYPE = 262, - jp_CASE = 263, - jp_CATCH = 264, - jp_CHAR_TYPE = 265, - jp_CLASS = 266, - jp_CONTINUE = 267, - jp_DEFAULT = 268, - jp_DO = 269, - jp_DOUBLE_TYPE = 270, - jp_ELSE = 271, - jp_EXTENDS = 272, - jp_FINAL = 273, - jp_FINALLY = 274, - jp_FLOAT_TYPE = 275, - jp_FOR = 276, - jp_IF = 277, - jp_IMPLEMENTS = 278, - jp_IMPORT = 279, - jp_INSTANCEOF = 280, - jp_INT_TYPE = 281, - jp_INTERFACE = 282, - jp_LONG_TYPE = 283, - jp_NATIVE = 284, - jp_NEW = 285, - jp_PACKAGE = 286, - jp_PRIVATE = 287, - jp_PROTECTED = 288, - jp_PUBLIC = 289, - jp_RETURN = 290, - jp_SHORT_TYPE = 291, - jp_STATIC = 292, - jp_STRICTFP = 293, - jp_SUPER = 294, - jp_SWITCH = 295, - jp_SYNCHRONIZED = 296, - jp_THIS = 297, - jp_THROW = 298, - jp_THROWS = 299, - jp_TRANSIENT = 300, - jp_TRY = 301, - jp_VOID = 302, - jp_VOLATILE = 303, - jp_WHILE = 304, - jp_BOOLEANLITERAL = 305, - jp_CHARACTERLITERAL = 306, - jp_DECIMALINTEGERLITERAL = 307, - jp_FLOATINGPOINTLITERAL = 308, - jp_HEXINTEGERLITERAL = 309, - jp_NULLLITERAL = 310, - jp_STRINGLITERAL = 311, - jp_NAME = 312, - jp_AND = 313, - jp_ANDAND = 314, - jp_ANDEQUALS = 315, - jp_BRACKETEND = 316, - jp_BRACKETSTART = 317, - jp_CARROT = 318, - jp_CARROTEQUALS = 319, - jp_COLON = 320, - jp_COMMA = 321, - jp_CURLYEND = 322, - jp_CURLYSTART = 323, - jp_DIVIDE = 324, - jp_DIVIDEEQUALS = 325, - jp_DOLLAR = 326, - jp_DOT = 327, - jp_EQUALS = 328, - jp_EQUALSEQUALS = 329, - jp_EXCLAMATION = 330, - jp_EXCLAMATIONEQUALS = 331, - jp_GREATER = 332, - jp_GTEQUALS = 333, - jp_GTGT = 334, - jp_GTGTEQUALS = 335, - jp_GTGTGT = 336, - jp_GTGTGTEQUALS = 337, - jp_LESLESEQUALS = 338, - jp_LESSTHAN = 339, - jp_LTEQUALS = 340, - jp_LTLT = 341, - jp_MINUS = 342, - jp_MINUSEQUALS = 343, - jp_MINUSMINUS = 344, - jp_PAREEND = 345, - jp_PARESTART = 346, - jp_PERCENT = 347, - jp_PERCENTEQUALS = 348, - jp_PIPE = 349, - jp_PIPEEQUALS = 350, - jp_PIPEPIPE = 351, - jp_PLUS = 352, - jp_PLUSEQUALS = 353, - jp_PLUSPLUS = 354, - jp_QUESTION = 355, - jp_SEMICOL = 356, - jp_TILDE = 357, - jp_TIMES = 358, - jp_TIMESEQUALS = 359, - jp_ERROR = 360 - }; -#endif -/* Tokens. */ -#define jp_ABSTRACT 258 -#define jp_ASSERT 259 -#define jp_BOOLEAN_TYPE 260 -#define jp_BREAK 261 -#define jp_BYTE_TYPE 262 -#define jp_CASE 263 -#define jp_CATCH 264 -#define jp_CHAR_TYPE 265 -#define jp_CLASS 266 -#define jp_CONTINUE 267 -#define jp_DEFAULT 268 -#define jp_DO 269 -#define jp_DOUBLE_TYPE 270 -#define jp_ELSE 271 -#define jp_EXTENDS 272 -#define jp_FINAL 273 -#define jp_FINALLY 274 -#define jp_FLOAT_TYPE 275 -#define jp_FOR 276 -#define jp_IF 277 -#define jp_IMPLEMENTS 278 -#define jp_IMPORT 279 -#define jp_INSTANCEOF 280 -#define jp_INT_TYPE 281 -#define jp_INTERFACE 282 -#define jp_LONG_TYPE 283 -#define jp_NATIVE 284 -#define jp_NEW 285 -#define jp_PACKAGE 286 -#define jp_PRIVATE 287 -#define jp_PROTECTED 288 -#define jp_PUBLIC 289 -#define jp_RETURN 290 -#define jp_SHORT_TYPE 291 -#define jp_STATIC 292 -#define jp_STRICTFP 293 -#define jp_SUPER 294 -#define jp_SWITCH 295 -#define jp_SYNCHRONIZED 296 -#define jp_THIS 297 -#define jp_THROW 298 -#define jp_THROWS 299 -#define jp_TRANSIENT 300 -#define jp_TRY 301 -#define jp_VOID 302 -#define jp_VOLATILE 303 -#define jp_WHILE 304 -#define jp_BOOLEANLITERAL 305 -#define jp_CHARACTERLITERAL 306 -#define jp_DECIMALINTEGERLITERAL 307 -#define jp_FLOATINGPOINTLITERAL 308 -#define jp_HEXINTEGERLITERAL 309 -#define jp_NULLLITERAL 310 -#define jp_STRINGLITERAL 311 -#define jp_NAME 312 -#define jp_AND 313 -#define jp_ANDAND 314 -#define jp_ANDEQUALS 315 -#define jp_BRACKETEND 316 -#define jp_BRACKETSTART 317 -#define jp_CARROT 318 -#define jp_CARROTEQUALS 319 -#define jp_COLON 320 -#define jp_COMMA 321 -#define jp_CURLYEND 322 -#define jp_CURLYSTART 323 -#define jp_DIVIDE 324 -#define jp_DIVIDEEQUALS 325 -#define jp_DOLLAR 326 -#define jp_DOT 327 -#define jp_EQUALS 328 -#define jp_EQUALSEQUALS 329 -#define jp_EXCLAMATION 330 -#define jp_EXCLAMATIONEQUALS 331 -#define jp_GREATER 332 -#define jp_GTEQUALS 333 -#define jp_GTGT 334 -#define jp_GTGTEQUALS 335 -#define jp_GTGTGT 336 -#define jp_GTGTGTEQUALS 337 -#define jp_LESLESEQUALS 338 -#define jp_LESSTHAN 339 -#define jp_LTEQUALS 340 -#define jp_LTLT 341 -#define jp_MINUS 342 -#define jp_MINUSEQUALS 343 -#define jp_MINUSMINUS 344 -#define jp_PAREEND 345 -#define jp_PARESTART 346 -#define jp_PERCENT 347 -#define jp_PERCENTEQUALS 348 -#define jp_PIPE 349 -#define jp_PIPEEQUALS 350 -#define jp_PIPEPIPE 351 -#define jp_PLUS 352 -#define jp_PLUSEQUALS 353 -#define jp_PLUSPLUS 354 -#define jp_QUESTION 355 -#define jp_SEMICOL 356 -#define jp_TILDE 357 -#define jp_TIMES 358 -#define jp_TIMESEQUALS 359 -#define jp_ERROR 360 - -/* Value type. */ - - - -int cmDependsJava_yyparse (yyscan_t yyscanner); - -#endif /* !YY_CMDEPENDSJAVA_YY_CMDEPENDSJAVAPARSERTOKENS_H_INCLUDED */ @@ -386,28 +422,75 @@ int cmDependsJava_yyparse (yyscan_t yyscanner); # undef short #endif -#ifdef YYTYPE_UINT8 -typedef YYTYPE_UINT8 yytype_uint8; -#else -typedef unsigned char yytype_uint8; +/* On compilers that do not define __PTRDIFF_MAX__ etc., make sure + and (if available) are included + so that the code can choose integer types of a good width. */ + +#ifndef __PTRDIFF_MAX__ +# include /* INFRINGES ON USER NAME SPACE */ +# if defined __STDC_VERSION__ && 199901 <= __STDC_VERSION__ +# include /* INFRINGES ON USER NAME SPACE */ +# define YY_STDINT_H +# endif #endif -#ifdef YYTYPE_INT8 -typedef YYTYPE_INT8 yytype_int8; +/* Narrow types that promote to a signed type and that can represent a + signed or unsigned integer of at least N bits. In tables they can + save space and decrease cache pressure. Promoting to a signed type + helps avoid bugs in integer arithmetic. */ + +#ifdef __INT_LEAST8_MAX__ +typedef __INT_LEAST8_TYPE__ yytype_int8; +#elif defined YY_STDINT_H +typedef int_least8_t yytype_int8; #else typedef signed char yytype_int8; #endif -#ifdef YYTYPE_UINT16 -typedef YYTYPE_UINT16 yytype_uint16; +#ifdef __INT_LEAST16_MAX__ +typedef __INT_LEAST16_TYPE__ yytype_int16; +#elif defined YY_STDINT_H +typedef int_least16_t yytype_int16; #else -typedef unsigned short yytype_uint16; +typedef short yytype_int16; #endif -#ifdef YYTYPE_INT16 -typedef YYTYPE_INT16 yytype_int16; +#if defined __UINT_LEAST8_MAX__ && __UINT_LEAST8_MAX__ <= __INT_MAX__ +typedef __UINT_LEAST8_TYPE__ yytype_uint8; +#elif (!defined __UINT_LEAST8_MAX__ && defined YY_STDINT_H \ + && UINT_LEAST8_MAX <= INT_MAX) +typedef uint_least8_t yytype_uint8; +#elif !defined __UINT_LEAST8_MAX__ && UCHAR_MAX <= INT_MAX +typedef unsigned char yytype_uint8; #else -typedef short yytype_int16; +typedef short yytype_uint8; +#endif + +#if defined __UINT_LEAST16_MAX__ && __UINT_LEAST16_MAX__ <= __INT_MAX__ +typedef __UINT_LEAST16_TYPE__ yytype_uint16; +#elif (!defined __UINT_LEAST16_MAX__ && defined YY_STDINT_H \ + && UINT_LEAST16_MAX <= INT_MAX) +typedef uint_least16_t yytype_uint16; +#elif !defined __UINT_LEAST16_MAX__ && USHRT_MAX <= INT_MAX +typedef unsigned short yytype_uint16; +#else +typedef int yytype_uint16; +#endif + +#ifndef YYPTRDIFF_T +# if defined __PTRDIFF_TYPE__ && defined __PTRDIFF_MAX__ +# define YYPTRDIFF_T __PTRDIFF_TYPE__ +# define YYPTRDIFF_MAXIMUM __PTRDIFF_MAX__ +# elif defined PTRDIFF_MAX +# ifndef ptrdiff_t +# include /* INFRINGES ON USER NAME SPACE */ +# endif +# define YYPTRDIFF_T ptrdiff_t +# define YYPTRDIFF_MAXIMUM PTRDIFF_MAX +# else +# define YYPTRDIFF_T long +# define YYPTRDIFF_MAXIMUM LONG_MAX +# endif #endif #ifndef YYSIZE_T @@ -415,7 +498,7 @@ typedef short yytype_int16; # define YYSIZE_T __SIZE_TYPE__ # elif defined size_t # define YYSIZE_T size_t -# elif ! defined YYSIZE_T +# elif defined __STDC_VERSION__ && 199901 <= __STDC_VERSION__ # include /* INFRINGES ON USER NAME SPACE */ # define YYSIZE_T size_t # else @@ -423,7 +506,20 @@ typedef short yytype_int16; # endif #endif -#define YYSIZE_MAXIMUM ((YYSIZE_T) -1) +#define YYSIZE_MAXIMUM \ + YY_CAST (YYPTRDIFF_T, \ + (YYPTRDIFF_MAXIMUM < YY_CAST (YYSIZE_T, -1) \ + ? YYPTRDIFF_MAXIMUM \ + : YY_CAST (YYSIZE_T, -1))) + +#define YYSIZEOF(X) YY_CAST (YYPTRDIFF_T, sizeof (X)) + + +/* Stored state numbers (used for stacks). */ +typedef yytype_int16 yy_state_t; + +/* State numbers in computations. */ +typedef int yy_state_fast_t; #ifndef YY_ # if defined YYENABLE_NLS && YYENABLE_NLS @@ -437,22 +533,21 @@ typedef short yytype_int16; # endif #endif -#ifndef YY_ATTRIBUTE -# if (defined __GNUC__ \ - && (2 < __GNUC__ || (__GNUC__ == 2 && 96 <= __GNUC_MINOR__))) \ - || defined __SUNPRO_C && 0x5110 <= __SUNPRO_C -# define YY_ATTRIBUTE(Spec) __attribute__(Spec) -# else -# define YY_ATTRIBUTE(Spec) /* empty */ -# endif -#endif #ifndef YY_ATTRIBUTE_PURE -# define YY_ATTRIBUTE_PURE YY_ATTRIBUTE ((__pure__)) +# if defined __GNUC__ && 2 < __GNUC__ + (96 <= __GNUC_MINOR__) +# define YY_ATTRIBUTE_PURE __attribute__ ((__pure__)) +# else +# define YY_ATTRIBUTE_PURE +# endif #endif #ifndef YY_ATTRIBUTE_UNUSED -# define YY_ATTRIBUTE_UNUSED YY_ATTRIBUTE ((__unused__)) +# if defined __GNUC__ && 2 < __GNUC__ + (7 <= __GNUC_MINOR__) +# define YY_ATTRIBUTE_UNUSED __attribute__ ((__unused__)) +# else +# define YY_ATTRIBUTE_UNUSED +# endif #endif /* Suppress unused-variable warnings by "using" E. */ @@ -464,11 +559,11 @@ typedef short yytype_int16; #if defined __GNUC__ && ! defined __ICC && 407 <= __GNUC__ * 100 + __GNUC_MINOR__ /* Suppress an incorrect diagnostic about yylval being uninitialized. */ -# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \ - _Pragma ("GCC diagnostic push") \ - _Pragma ("GCC diagnostic ignored \"-Wuninitialized\"")\ +# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \ + _Pragma ("GCC diagnostic push") \ + _Pragma ("GCC diagnostic ignored \"-Wuninitialized\"") \ _Pragma ("GCC diagnostic ignored \"-Wmaybe-uninitialized\"") -# define YY_IGNORE_MAYBE_UNINITIALIZED_END \ +# define YY_IGNORE_MAYBE_UNINITIALIZED_END \ _Pragma ("GCC diagnostic pop") #else # define YY_INITIAL_VALUE(Value) Value @@ -481,10 +576,22 @@ typedef short yytype_int16; # define YY_INITIAL_VALUE(Value) /* Nothing. */ #endif +#if defined __cplusplus && defined __GNUC__ && ! defined __ICC && 6 <= __GNUC__ +# define YY_IGNORE_USELESS_CAST_BEGIN \ + _Pragma ("GCC diagnostic push") \ + _Pragma ("GCC diagnostic ignored \"-Wuseless-cast\"") +# define YY_IGNORE_USELESS_CAST_END \ + _Pragma ("GCC diagnostic pop") +#endif +#ifndef YY_IGNORE_USELESS_CAST_BEGIN +# define YY_IGNORE_USELESS_CAST_BEGIN +# define YY_IGNORE_USELESS_CAST_END +#endif + #define YY_ASSERT(E) ((void) (0 && (E))) -#if ! defined yyoverflow || YYERROR_VERBOSE +#if 1 /* The parser invokes alloca or malloc; define the necessary symbols. */ @@ -549,8 +656,7 @@ void free (void *); /* INFRINGES ON USER NAME SPACE */ # endif # endif # endif -#endif /* ! defined yyoverflow || YYERROR_VERBOSE */ - +#endif /* 1 */ #if (! defined yyoverflow \ && (! defined __cplusplus \ @@ -559,17 +665,17 @@ void free (void *); /* INFRINGES ON USER NAME SPACE */ /* A type that is properly aligned for any stack member. */ union yyalloc { - yytype_int16 yyss_alloc; + yy_state_t yyss_alloc; YYSTYPE yyvs_alloc; }; /* The size of the maximum gap between one aligned stack and the next. */ -# define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1) +# define YYSTACK_GAP_MAXIMUM (YYSIZEOF (union yyalloc) - 1) /* The size of an array large to enough to hold all stacks, each with N elements. */ # define YYSTACK_BYTES(N) \ - ((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \ + ((N) * (YYSIZEOF (yy_state_t) + YYSIZEOF (YYSTYPE)) \ + YYSTACK_GAP_MAXIMUM) # define YYCOPY_NEEDED 1 @@ -582,11 +688,11 @@ union yyalloc # define YYSTACK_RELOCATE(Stack_alloc, Stack) \ do \ { \ - YYSIZE_T yynewbytes; \ + YYPTRDIFF_T yynewbytes; \ YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \ Stack = &yyptr->Stack_alloc; \ - yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \ - yyptr += yynewbytes / sizeof (*yyptr); \ + yynewbytes = yystacksize * YYSIZEOF (*Stack) + YYSTACK_GAP_MAXIMUM; \ + yyptr += yynewbytes / YYSIZEOF (*yyptr); \ } \ while (0) @@ -598,12 +704,12 @@ union yyalloc # ifndef YYCOPY # if defined __GNUC__ && 1 < __GNUC__ # define YYCOPY(Dst, Src, Count) \ - __builtin_memcpy (Dst, Src, (Count) * sizeof (*(Src))) + __builtin_memcpy (Dst, Src, YY_CAST (YYSIZE_T, (Count)) * sizeof (*(Src))) # else # define YYCOPY(Dst, Src, Count) \ do \ { \ - YYSIZE_T yyi; \ + YYPTRDIFF_T yyi; \ for (yyi = 0; yyi < (Count); yyi++) \ (Dst)[yyi] = (Src)[yyi]; \ } \ @@ -626,17 +732,20 @@ union yyalloc /* YYNSTATES -- Number of states. */ #define YYNSTATES 575 -#define YYUNDEFTOK 2 +/* YYMAXUTOK -- Last valid token kind. */ #define YYMAXUTOK 360 + /* YYTRANSLATE(TOKEN-NUM) -- Symbol number corresponding to TOKEN-NUM as returned by yylex, with out-of-bounds checking. */ -#define YYTRANSLATE(YYX) \ - ((unsigned) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) +#define YYTRANSLATE(YYX) \ + (0 <= (YYX) && (YYX) <= YYMAXUTOK \ + ? YY_CAST (yysymbol_kind_t, yytranslate[YYX]) \ + : YYSYMBOL_YYUNDEF) /* YYTRANSLATE[TOKEN-NUM] -- Symbol number corresponding to TOKEN-NUM as returned by yylex. */ -static const yytype_uint8 yytranslate[] = +static const yytype_int8 yytranslate[] = { 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, @@ -679,63 +788,70 @@ static const yytype_uint8 yytranslate[] = #if YYDEBUG /* YYRLINE[YYN] -- Source line where rule number YYN was defined. */ -static const yytype_uint16 yyrline[] = -{ - 0, 182, 182, 191, 199, 207, 215, 223, 231, 240, - 248, 257, 265, 274, 279, 284, 289, 294, 299, 304, - 309, 315, 323, 332, 342, 351, 360, 368, 378, 384, - 391, 398, 404, 411, 420, 430, 440, 449, 457, 466, - 475, 481, 490, 496, 505, 511, 520, 532, 540, 549, - 561, 574, 582, 590, 599, 607, 616, 616, 616, 617, - 618, 618, 618, 618, 618, 618, 619, 622, 632, 641, - 650, 659, 669, 675, 684, 693, 702, 710, 719, 728, - 734, 743, 751, 759, 767, 776, 784, 793, 799, 807, - 816, 824, 833, 842, 851, 859, 868, 876, 884, 893, - 902, 912, 919, 929, 939, 946, 953, 956, 962, 972, - 982, 992, 998, 1008, 1018, 1028, 1037, 1047, 1058, 1068, - 1075, 1085, 1094, 1104, 1113, 1123, 1129, 1139, 1148, 1158, - 1168, 1175, 1184, 1193, 1202, 1211, 1219, 1228, 1237, 1247, - 1257, 1266, 1276, 1286, 1293, 1302, 1312, 1321, 1331, 1340, - 1347, 1357, 1366, 1376, 1385, 1394, 1404, 1414, 1423, 1433, - 1442, 1451, 1460, 1469, 1478, 1488, 1497, 1506, 1515, 1524, - 1534, 1543, 1552, 1561, 1570, 1579, 1588, 1597, 1606, 1615, - 1624, 1633, 1643, 1653, 1664, 1674, 1684, 1693, 1702, 1711, - 1720, 1729, 1738, 1748, 1758, 1768, 1778, 1785, 1792, 1799, - 1809, 1816, 1826, 1836, 1845, 1855, 1864, 1874, 1881, 1888, - 1895, 1903, 1910, 1920, 1927, 1937, 1947, 1954, 1964, 1973, - 1983, 1993, 2002, 2012, 2021, 2031, 2042, 2049, 2056, 2067, - 2077, 2087, 2097, 2106, 2116, 2123, 2133, 2142, 2152, 2159, - 2169, 2178, 2188, 2197, 2203, 2212, 2221, 2230, 2239, 2249, - 2259, 2266, 2276, 2283, 2293, 2302, 2312, 2321, 2330, 2339, - 2349, 2356, 2366, 2375, 2385, 2395, 2401, 2408, 2418, 2428, - 2438, 2449, 2459, 2470, 2480, 2491, 2501, 2511, 2520, 2529, - 2538, 2547, 2557, 2567, 2577, 2586, 2595, 2604, 2613, 2623, - 2633, 2643, 2652, 2661, 2670, 2680, 2689, 2698, 2705, 2714, - 2723, 2732, 2742, 2751, 2760, 2770, 2779, 2788, 2797, 2807, - 2816, 2825, 2834, 2843, 2852, 2862, 2871, 2880, 2890, 2899, - 2909, 2918, 2928, 2937, 2947, 2956, 2966, 2975, 2985, 2994, - 3004, 3013, 3023, 3033, 3043, 3052, 3062, 3071, 3080, 3089, - 3098, 3107, 3116, 3125, 3134, 3143, 3152, 3161, 3171, 3181, - 3191, 3200 +static const yytype_int16 yyrline[] = +{ + 0, 179, 179, 188, 196, 204, 212, 220, 228, 237, + 245, 254, 262, 271, 276, 281, 286, 291, 296, 301, + 306, 312, 320, 329, 339, 348, 357, 365, 375, 381, + 388, 395, 401, 408, 417, 427, 437, 446, 454, 463, + 472, 478, 487, 493, 502, 508, 517, 529, 537, 546, + 558, 571, 579, 587, 596, 604, 613, 613, 613, 614, + 615, 615, 615, 615, 615, 615, 616, 619, 629, 638, + 647, 656, 666, 672, 681, 690, 699, 707, 716, 725, + 731, 740, 748, 756, 764, 773, 781, 790, 796, 804, + 813, 821, 830, 839, 848, 856, 865, 873, 881, 890, + 899, 909, 916, 926, 936, 943, 950, 953, 959, 969, + 979, 989, 995, 1005, 1015, 1025, 1034, 1044, 1055, 1065, + 1072, 1082, 1091, 1101, 1110, 1120, 1126, 1136, 1145, 1155, + 1165, 1172, 1181, 1190, 1199, 1208, 1216, 1225, 1234, 1244, + 1254, 1263, 1273, 1283, 1290, 1299, 1309, 1318, 1328, 1337, + 1344, 1354, 1363, 1373, 1382, 1391, 1401, 1411, 1420, 1430, + 1439, 1448, 1457, 1466, 1475, 1485, 1494, 1503, 1512, 1521, + 1531, 1540, 1549, 1558, 1567, 1576, 1585, 1594, 1603, 1612, + 1621, 1630, 1640, 1650, 1661, 1671, 1681, 1690, 1699, 1708, + 1717, 1726, 1735, 1745, 1755, 1765, 1775, 1782, 1789, 1796, + 1806, 1813, 1823, 1833, 1842, 1852, 1861, 1871, 1878, 1885, + 1892, 1900, 1907, 1917, 1924, 1934, 1944, 1951, 1961, 1970, + 1980, 1990, 1999, 2009, 2018, 2028, 2039, 2046, 2053, 2064, + 2074, 2084, 2094, 2103, 2113, 2120, 2130, 2139, 2149, 2156, + 2166, 2175, 2185, 2194, 2200, 2209, 2218, 2227, 2236, 2246, + 2256, 2263, 2273, 2280, 2290, 2299, 2309, 2318, 2327, 2336, + 2346, 2353, 2363, 2372, 2382, 2392, 2398, 2405, 2415, 2425, + 2435, 2446, 2456, 2467, 2477, 2488, 2498, 2508, 2517, 2526, + 2535, 2544, 2554, 2564, 2574, 2583, 2592, 2601, 2610, 2620, + 2630, 2640, 2649, 2658, 2667, 2677, 2686, 2695, 2702, 2711, + 2720, 2729, 2739, 2748, 2757, 2767, 2776, 2785, 2794, 2804, + 2813, 2822, 2831, 2840, 2849, 2859, 2868, 2877, 2887, 2896, + 2906, 2915, 2925, 2934, 2944, 2953, 2963, 2972, 2982, 2991, + 3001, 3010, 3020, 3030, 3040, 3049, 3059, 3068, 3077, 3086, + 3095, 3104, 3113, 3122, 3131, 3140, 3149, 3158, 3168, 3178, + 3188, 3197 }; #endif -#if YYDEBUG || YYERROR_VERBOSE || 1 +/** Accessing symbol of state STATE. */ +#define YY_ACCESSING_SYMBOL(State) YY_CAST (yysymbol_kind_t, yystos[State]) + +#if 1 +/* The user-facing name of the symbol whose (internal) number is + YYSYMBOL. No bounds checking. */ +static const char *yysymbol_name (yysymbol_kind_t yysymbol) YY_ATTRIBUTE_UNUSED; + /* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM. First, the terminals, then, starting at YYNTOKENS, nonterminals. */ static const char *const yytname[] = { - "$end", "error", "$undefined", "jp_ABSTRACT", "jp_ASSERT", - "jp_BOOLEAN_TYPE", "jp_BREAK", "jp_BYTE_TYPE", "jp_CASE", "jp_CATCH", - "jp_CHAR_TYPE", "jp_CLASS", "jp_CONTINUE", "jp_DEFAULT", "jp_DO", - "jp_DOUBLE_TYPE", "jp_ELSE", "jp_EXTENDS", "jp_FINAL", "jp_FINALLY", - "jp_FLOAT_TYPE", "jp_FOR", "jp_IF", "jp_IMPLEMENTS", "jp_IMPORT", - "jp_INSTANCEOF", "jp_INT_TYPE", "jp_INTERFACE", "jp_LONG_TYPE", - "jp_NATIVE", "jp_NEW", "jp_PACKAGE", "jp_PRIVATE", "jp_PROTECTED", - "jp_PUBLIC", "jp_RETURN", "jp_SHORT_TYPE", "jp_STATIC", "jp_STRICTFP", - "jp_SUPER", "jp_SWITCH", "jp_SYNCHRONIZED", "jp_THIS", "jp_THROW", - "jp_THROWS", "jp_TRANSIENT", "jp_TRY", "jp_VOID", "jp_VOLATILE", - "jp_WHILE", "jp_BOOLEANLITERAL", "jp_CHARACTERLITERAL", + "\"end of file\"", "error", "\"invalid token\"", "jp_ABSTRACT", + "jp_ASSERT", "jp_BOOLEAN_TYPE", "jp_BREAK", "jp_BYTE_TYPE", "jp_CASE", + "jp_CATCH", "jp_CHAR_TYPE", "jp_CLASS", "jp_CONTINUE", "jp_DEFAULT", + "jp_DO", "jp_DOUBLE_TYPE", "jp_ELSE", "jp_EXTENDS", "jp_FINAL", + "jp_FINALLY", "jp_FLOAT_TYPE", "jp_FOR", "jp_IF", "jp_IMPLEMENTS", + "jp_IMPORT", "jp_INSTANCEOF", "jp_INT_TYPE", "jp_INTERFACE", + "jp_LONG_TYPE", "jp_NATIVE", "jp_NEW", "jp_PACKAGE", "jp_PRIVATE", + "jp_PROTECTED", "jp_PUBLIC", "jp_RETURN", "jp_SHORT_TYPE", "jp_STATIC", + "jp_STRICTFP", "jp_SUPER", "jp_SWITCH", "jp_SYNCHRONIZED", "jp_THIS", + "jp_THROW", "jp_THROWS", "jp_TRANSIENT", "jp_TRY", "jp_VOID", + "jp_VOLATILE", "jp_WHILE", "jp_BOOLEANLITERAL", "jp_CHARACTERLITERAL", "jp_DECIMALINTEGERLITERAL", "jp_FLOATINGPOINTLITERAL", "jp_HEXINTEGERLITERAL", "jp_NULLLITERAL", "jp_STRINGLITERAL", "jp_NAME", "jp_AND", "jp_ANDAND", "jp_ANDEQUALS", "jp_BRACKETEND", @@ -801,12 +917,18 @@ static const char *const yytname[] = "LeftHandSide", "AssignmentOperator", "Expression", "ConstantExpression", "New", YY_NULLPTR }; + +static const char * +yysymbol_name (yysymbol_kind_t yysymbol) +{ + return yytname[yysymbol]; +} #endif -# ifdef YYPRINT +#ifdef YYPRINT /* YYTOKNUM[NUM] -- (External) token number corresponding to the (internal) symbol number NUM (which must be that of a token). */ -static const yytype_uint16 yytoknum[] = +static const yytype_int16 yytoknum[] = { 0, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, @@ -820,16 +942,16 @@ static const yytype_uint16 yytoknum[] = 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360 }; -# endif +#endif -#define YYPACT_NINF -503 +#define YYPACT_NINF (-503) -#define yypact_value_is_default(Yystate) \ - (!!((Yystate) == (-503))) +#define yypact_value_is_default(Yyn) \ + ((Yyn) == YYPACT_NINF) -#define YYTABLE_NINF -336 +#define YYTABLE_NINF (-336) -#define yytable_value_is_error(Yytable_value) \ +#define yytable_value_is_error(Yyn) \ 0 /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing @@ -899,7 +1021,7 @@ static const yytype_int16 yypact[] = /* YYDEFACT[STATE-NUM] -- Default reduction number in state STATE-NUM. Performed when YYTABLE does not specify something else to do. Zero means the default is an error. */ -static const yytype_uint16 yydefact[] = +static const yytype_int16 yydefact[] = { 40, 0, 0, 2, 42, 41, 20, 13, 17, 19, 18, 15, 16, 14, 38, 31, 0, 37, 0, 28, @@ -1460,7 +1582,7 @@ static const yytype_int16 yycheck[] = /* YYSTOS[STATE-NUM] -- The (internal number of the) accessing symbol of state STATE-NUM. */ -static const yytype_uint16 yystos[] = +static const yytype_int16 yystos[] = { 0, 31, 107, 122, 123, 126, 5, 7, 10, 15, 20, 26, 28, 36, 47, 57, 71, 111, 117, 118, @@ -1523,7 +1645,7 @@ static const yytype_uint16 yystos[] = }; /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */ -static const yytype_uint16 yyr1[] = +static const yytype_int16 yyr1[] = { 0, 106, 107, 108, 108, 108, 108, 108, 108, 109, 109, 110, 110, 111, 111, 111, 111, 111, 111, 111, @@ -1564,7 +1686,7 @@ static const yytype_uint16 yyr1[] = }; /* YYR2[YYN] -- Number of symbols on the right hand side of rule YYN. */ -static const yytype_uint8 yyr2[] = +static const yytype_int8 yyr2[] = { 0, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, @@ -1605,10 +1727,10 @@ static const yytype_uint8 yyr2[] = }; +enum { YYENOMEM = -2 }; + #define yyerrok (yyerrstatus = 0) #define yyclearin (yychar = YYEMPTY) -#define YYEMPTY (-2) -#define YYEOF 0 #define YYACCEPT goto yyacceptlab #define YYABORT goto yyabortlab @@ -1634,10 +1756,9 @@ static const yytype_uint8 yyr2[] = } \ while (0) -/* Error token number */ -#define YYTERROR 1 -#define YYERRCODE 256 - +/* Backward compatibility with an undocumented macro. + Use YYerror or YYUNDEF. */ +#define YYERRCODE YYUNDEF /* Enable debugging if requested. */ @@ -1655,18 +1776,18 @@ do { \ } while (0) /* This macro is provided for backward compatibility. */ -#ifndef YY_LOCATION_PRINT -# define YY_LOCATION_PRINT(File, Loc) ((void) 0) -#endif +# ifndef YY_LOCATION_PRINT +# define YY_LOCATION_PRINT(File, Loc) ((void) 0) +# endif -# define YY_SYMBOL_PRINT(Title, Type, Value, Location) \ +# define YY_SYMBOL_PRINT(Title, Kind, Value, Location) \ do { \ if (yydebug) \ { \ YYFPRINTF (stderr, "%s ", Title); \ yy_symbol_print (stderr, \ - Type, Value, yyscanner); \ + Kind, Value, yyscanner); \ YYFPRINTF (stderr, "\n"); \ } \ } while (0) @@ -1677,7 +1798,8 @@ do { \ `-----------------------------------*/ static void -yy_symbol_value_print (FILE *yyo, int yytype, YYSTYPE const * const yyvaluep, yyscan_t yyscanner) +yy_symbol_value_print (FILE *yyo, + yysymbol_kind_t yykind, YYSTYPE const * const yyvaluep, yyscan_t yyscanner) { FILE *yyoutput = yyo; YYUSE (yyoutput); @@ -1685,11 +1807,11 @@ yy_symbol_value_print (FILE *yyo, int yytype, YYSTYPE const * const yyvaluep, yy if (!yyvaluep) return; # ifdef YYPRINT - if (yytype < YYNTOKENS) - YYPRINT (yyo, yytoknum[yytype], *yyvaluep); + if (yykind < YYNTOKENS) + YYPRINT (yyo, yytoknum[yykind], *yyvaluep); # endif YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN - YYUSE (yytype); + YYUSE (yykind); YY_IGNORE_MAYBE_UNINITIALIZED_END } @@ -1699,12 +1821,13 @@ yy_symbol_value_print (FILE *yyo, int yytype, YYSTYPE const * const yyvaluep, yy `---------------------------*/ static void -yy_symbol_print (FILE *yyo, int yytype, YYSTYPE const * const yyvaluep, yyscan_t yyscanner) +yy_symbol_print (FILE *yyo, + yysymbol_kind_t yykind, YYSTYPE const * const yyvaluep, yyscan_t yyscanner) { YYFPRINTF (yyo, "%s %s (", - yytype < YYNTOKENS ? "token" : "nterm", yytname[yytype]); + yykind < YYNTOKENS ? "token" : "nterm", yysymbol_name (yykind)); - yy_symbol_value_print (yyo, yytype, yyvaluep, yyscanner); + yy_symbol_value_print (yyo, yykind, yyvaluep, yyscanner); YYFPRINTF (yyo, ")"); } @@ -1714,7 +1837,7 @@ yy_symbol_print (FILE *yyo, int yytype, YYSTYPE const * const yyvaluep, yyscan_t `------------------------------------------------------------------*/ static void -yy_stack_print (yytype_int16 *yybottom, yytype_int16 *yytop) +yy_stack_print (yy_state_t *yybottom, yy_state_t *yytop) { YYFPRINTF (stderr, "Stack now"); for (; yybottom <= yytop; yybottom++) @@ -1737,21 +1860,21 @@ do { \ `------------------------------------------------*/ static void -yy_reduce_print (yytype_int16 *yyssp, YYSTYPE *yyvsp, int yyrule, yyscan_t yyscanner) +yy_reduce_print (yy_state_t *yyssp, YYSTYPE *yyvsp, + int yyrule, yyscan_t yyscanner) { - unsigned long yylno = yyrline[yyrule]; + int yylno = yyrline[yyrule]; int yynrhs = yyr2[yyrule]; int yyi; - YYFPRINTF (stderr, "Reducing stack by rule %d (line %lu):\n", + YYFPRINTF (stderr, "Reducing stack by rule %d (line %d):\n", yyrule - 1, yylno); /* The symbols being reduced. */ for (yyi = 0; yyi < yynrhs; yyi++) { YYFPRINTF (stderr, " $%d = ", yyi + 1); yy_symbol_print (stderr, - yystos[yyssp[yyi + 1 - yynrhs]], - &yyvsp[(yyi + 1) - (yynrhs)] - , yyscanner); + YY_ACCESSING_SYMBOL (+yyssp[yyi + 1 - yynrhs]), + &yyvsp[(yyi + 1) - (yynrhs)], yyscanner); YYFPRINTF (stderr, "\n"); } } @@ -1766,8 +1889,8 @@ do { \ multiple parsers can coexist. */ int yydebug; #else /* !YYDEBUG */ -# define YYDPRINTF(Args) -# define YY_SYMBOL_PRINT(Title, Type, Value, Location) +# define YYDPRINTF(Args) ((void) 0) +# define YY_SYMBOL_PRINT(Title, Kind, Value, Location) # define YY_STACK_PRINT(Bottom, Top) # define YY_REDUCE_PRINT(Rule) #endif /* !YYDEBUG */ @@ -1790,28 +1913,76 @@ int yydebug; #endif -#if YYERROR_VERBOSE +/* Context of a parse error. */ +typedef struct +{ + yy_state_t *yyssp; + yysymbol_kind_t yytoken; +} yypcontext_t; + +/* Put in YYARG at most YYARGN of the expected tokens given the + current YYCTX, and return the number of tokens stored in YYARG. If + YYARG is null, return the number of expected tokens (guaranteed to + be less than YYNTOKENS). Return YYENOMEM on memory exhaustion. + Return 0 if there are more than YYARGN expected tokens, yet fill + YYARG up to YYARGN. */ +static int +yypcontext_expected_tokens (const yypcontext_t *yyctx, + yysymbol_kind_t yyarg[], int yyargn) +{ + /* Actual size of YYARG. */ + int yycount = 0; + int yyn = yypact[+*yyctx->yyssp]; + if (!yypact_value_is_default (yyn)) + { + /* Start YYX at -YYN if negative to avoid negative indexes in + YYCHECK. In other words, skip the first -YYN actions for + this state because they are default actions. */ + int yyxbegin = yyn < 0 ? -yyn : 0; + /* Stay within bounds of both yycheck and yytname. */ + int yychecklim = YYLAST - yyn + 1; + int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS; + int yyx; + for (yyx = yyxbegin; yyx < yyxend; ++yyx) + if (yycheck[yyx + yyn] == yyx && yyx != YYSYMBOL_YYerror + && !yytable_value_is_error (yytable[yyx + yyn])) + { + if (!yyarg) + ++yycount; + else if (yycount == yyargn) + return 0; + else + yyarg[yycount++] = YY_CAST (yysymbol_kind_t, yyx); + } + } + if (yyarg && yycount == 0 && 0 < yyargn) + yyarg[0] = YYSYMBOL_YYEMPTY; + return yycount; +} + + -# ifndef yystrlen -# if defined __GLIBC__ && defined _STRING_H -# define yystrlen strlen -# else + +#ifndef yystrlen +# if defined __GLIBC__ && defined _STRING_H +# define yystrlen(S) (YY_CAST (YYPTRDIFF_T, strlen (S))) +# else /* Return the length of YYSTR. */ -static YYSIZE_T +static YYPTRDIFF_T yystrlen (const char *yystr) { - YYSIZE_T yylen; + YYPTRDIFF_T yylen; for (yylen = 0; yystr[yylen]; yylen++) continue; return yylen; } -# endif # endif +#endif -# ifndef yystpcpy -# if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE -# define yystpcpy stpcpy -# else +#ifndef yystpcpy +# if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE +# define yystpcpy stpcpy +# else /* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in YYDEST. */ static char * @@ -1825,10 +1996,10 @@ yystpcpy (char *yydest, const char *yysrc) return yyd - 1; } -# endif # endif +#endif -# ifndef yytnamerr +#ifndef yytnamerr /* Copy to YYRES the contents of YYSTR after stripping away unnecessary quotes and backslashes, so that it's suitable for yyerror. The heuristic is that double-quoting is unnecessary unless the string @@ -1836,14 +2007,13 @@ yystpcpy (char *yydest, const char *yysrc) backslash-backslash). YYSTR is taken from yytname. If YYRES is null, do not copy; instead, return the length of what the result would have been. */ -static YYSIZE_T +static YYPTRDIFF_T yytnamerr (char *yyres, const char *yystr) { if (*yystr == '"') { - YYSIZE_T yyn = 0; + YYPTRDIFF_T yyn = 0; char const *yyp = yystr; - for (;;) switch (*++yyp) { @@ -1872,36 +2042,20 @@ yytnamerr (char *yyres, const char *yystr) do_not_strip_quotes: ; } - if (! yyres) + if (yyres) + return yystpcpy (yyres, yystr) - yyres; + else return yystrlen (yystr); - - return (YYSIZE_T) (yystpcpy (yyres, yystr) - yyres); } -# endif +#endif -/* Copy into *YYMSG, which is of size *YYMSG_ALLOC, an error message - about the unexpected token YYTOKEN for the state stack whose top is - YYSSP. - Return 0 if *YYMSG was successfully written. Return 1 if *YYMSG is - not large enough to hold the message. In that case, also set - *YYMSG_ALLOC to the required number of bytes. Return 2 if the - required number of bytes is too large to store. */ static int -yysyntax_error (YYSIZE_T *yymsg_alloc, char **yymsg, - yytype_int16 *yyssp, int yytoken) +yy_syntax_error_arguments (const yypcontext_t *yyctx, + yysymbol_kind_t yyarg[], int yyargn) { - YYSIZE_T yysize0 = yytnamerr (YY_NULLPTR, yytname[yytoken]); - YYSIZE_T yysize = yysize0; - enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 }; - /* Internationalized format string. */ - const char *yyformat = YY_NULLPTR; - /* Arguments of yyformat. */ - char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM]; - /* Number of reported tokens (one for the "unexpected", one per - "expected"). */ + /* Actual size of YYARG. */ int yycount = 0; - /* There are many possibilities here to consider: - If this state is a consistent state with a default action, then the only way this function was invoked is if the default action @@ -1925,49 +2079,54 @@ yysyntax_error (YYSIZE_T *yymsg_alloc, char **yymsg, one exception: it will still contain any token that will not be accepted due to an error action in a later state. */ - if (yytoken != YYEMPTY) - { - int yyn = yypact[*yyssp]; - yyarg[yycount++] = yytname[yytoken]; - if (!yypact_value_is_default (yyn)) - { - /* Start YYX at -YYN if negative to avoid negative indexes in - YYCHECK. In other words, skip the first -YYN actions for - this state because they are default actions. */ - int yyxbegin = yyn < 0 ? -yyn : 0; - /* Stay within bounds of both yycheck and yytname. */ - int yychecklim = YYLAST - yyn + 1; - int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS; - int yyx; - - for (yyx = yyxbegin; yyx < yyxend; ++yyx) - if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR - && !yytable_value_is_error (yytable[yyx + yyn])) - { - if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM) - { - yycount = 1; - yysize = yysize0; - break; - } - yyarg[yycount++] = yytname[yyx]; - { - YYSIZE_T yysize1 = yysize + yytnamerr (YY_NULLPTR, yytname[yyx]); - if (yysize <= yysize1 && yysize1 <= YYSTACK_ALLOC_MAXIMUM) - yysize = yysize1; - else - return 2; - } - } - } + if (yyctx->yytoken != YYSYMBOL_YYEMPTY) + { + int yyn; + if (yyarg) + yyarg[yycount] = yyctx->yytoken; + ++yycount; + yyn = yypcontext_expected_tokens (yyctx, + yyarg ? yyarg + 1 : yyarg, yyargn - 1); + if (yyn == YYENOMEM) + return YYENOMEM; + else + yycount += yyn; } + return yycount; +} + +/* Copy into *YYMSG, which is of size *YYMSG_ALLOC, an error message + about the unexpected token YYTOKEN for the state stack whose top is + YYSSP. + + Return 0 if *YYMSG was successfully written. Return -1 if *YYMSG is + not large enough to hold the message. In that case, also set + *YYMSG_ALLOC to the required number of bytes. Return YYENOMEM if the + required number of bytes is too large to store. */ +static int +yysyntax_error (YYPTRDIFF_T *yymsg_alloc, char **yymsg, + const yypcontext_t *yyctx) +{ + enum { YYARGS_MAX = 5 }; + /* Internationalized format string. */ + const char *yyformat = YY_NULLPTR; + /* Arguments of yyformat: reported tokens (one for the "unexpected", + one per "expected"). */ + yysymbol_kind_t yyarg[YYARGS_MAX]; + /* Cumulated lengths of YYARG. */ + YYPTRDIFF_T yysize = 0; + + /* Actual size of YYARG. */ + int yycount = yy_syntax_error_arguments (yyctx, yyarg, YYARGS_MAX); + if (yycount == YYENOMEM) + return YYENOMEM; switch (yycount) { -# define YYCASE_(N, S) \ +#define YYCASE_(N, S) \ case N: \ yyformat = S; \ - break + break default: /* Avoid compiler warnings. */ YYCASE_(0, YY_("syntax error")); YYCASE_(1, YY_("syntax error, unexpected %s")); @@ -1975,15 +2134,23 @@ yysyntax_error (YYSIZE_T *yymsg_alloc, char **yymsg, YYCASE_(3, YY_("syntax error, unexpected %s, expecting %s or %s")); YYCASE_(4, YY_("syntax error, unexpected %s, expecting %s or %s or %s")); YYCASE_(5, YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s")); -# undef YYCASE_ +#undef YYCASE_ } + /* Compute error message size. Don't count the "%s"s, but reserve + room for the terminator. */ + yysize = yystrlen (yyformat) - 2 * yycount + 1; { - YYSIZE_T yysize1 = yysize + yystrlen (yyformat); - if (yysize <= yysize1 && yysize1 <= YYSTACK_ALLOC_MAXIMUM) - yysize = yysize1; - else - return 2; + int yyi; + for (yyi = 0; yyi < yycount; ++yyi) + { + YYPTRDIFF_T yysize1 + = yysize + yytnamerr (YY_NULLPTR, yytname[yyarg[yyi]]); + if (yysize <= yysize1 && yysize1 <= YYSTACK_ALLOC_MAXIMUM) + yysize = yysize1; + else + return YYENOMEM; + } } if (*yymsg_alloc < yysize) @@ -1992,7 +2159,7 @@ yysyntax_error (YYSIZE_T *yymsg_alloc, char **yymsg, if (! (yysize <= *yymsg_alloc && *yymsg_alloc <= YYSTACK_ALLOC_MAXIMUM)) *yymsg_alloc = YYSTACK_ALLOC_MAXIMUM; - return 1; + return -1; } /* Avoid sprintf, as that infringes on the user's name space. @@ -2004,40 +2171,43 @@ yysyntax_error (YYSIZE_T *yymsg_alloc, char **yymsg, while ((*yyp = *yyformat) != '\0') if (*yyp == '%' && yyformat[1] == 's' && yyi < yycount) { - yyp += yytnamerr (yyp, yyarg[yyi++]); + yyp += yytnamerr (yyp, yytname[yyarg[yyi++]]); yyformat += 2; } else { - yyp++; - yyformat++; + ++yyp; + ++yyformat; } } return 0; } -#endif /* YYERROR_VERBOSE */ + /*-----------------------------------------------. | Release the memory associated to this symbol. | `-----------------------------------------------*/ static void -yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep, yyscan_t yyscanner) +yydestruct (const char *yymsg, + yysymbol_kind_t yykind, YYSTYPE *yyvaluep, yyscan_t yyscanner) { YYUSE (yyvaluep); YYUSE (yyscanner); if (!yymsg) yymsg = "Deleting"; - YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp); + YY_SYMBOL_PRINT (yymsg, yykind, yyvaluep, yylocationp); YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN - YYUSE (yytype); + YYUSE (yykind); YY_IGNORE_MAYBE_UNINITIALIZED_END } + + /*----------. | yyparse. | `----------*/ @@ -2045,7 +2215,7 @@ yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep, yyscan_t yyscanner int yyparse (yyscan_t yyscanner) { -/* The lookahead symbol. */ +/* Lookahead token kind. */ int yychar; @@ -2056,45 +2226,41 @@ YY_INITIAL_VALUE (static YYSTYPE yyval_default;) YYSTYPE yylval YY_INITIAL_VALUE (= yyval_default); /* Number of syntax errors so far. */ - int yynerrs; + int yynerrs = 0; - int yystate; + yy_state_fast_t yystate = 0; /* Number of tokens to shift before error messages enabled. */ - int yyerrstatus; - - /* The stacks and their tools: - 'yyss': related to states. - 'yyvs': related to semantic values. + int yyerrstatus = 0; - Refer to the stacks through separate pointers, to allow yyoverflow + /* Refer to the stacks through separate pointers, to allow yyoverflow to reallocate them elsewhere. */ - /* The state stack. */ - yytype_int16 yyssa[YYINITDEPTH]; - yytype_int16 *yyss; - yytype_int16 *yyssp; + /* Their size. */ + YYPTRDIFF_T yystacksize = YYINITDEPTH; - /* The semantic value stack. */ - YYSTYPE yyvsa[YYINITDEPTH]; - YYSTYPE *yyvs; - YYSTYPE *yyvsp; + /* The state stack: array, bottom, top. */ + yy_state_t yyssa[YYINITDEPTH]; + yy_state_t *yyss = yyssa; + yy_state_t *yyssp = yyss; - YYSIZE_T yystacksize; + /* The semantic value stack: array, bottom, top. */ + YYSTYPE yyvsa[YYINITDEPTH]; + YYSTYPE *yyvs = yyvsa; + YYSTYPE *yyvsp = yyvs; int yyn; + /* The return value of yyparse. */ int yyresult; - /* Lookahead token as an internal (translated) token number. */ - int yytoken = 0; + /* Lookahead symbol kind. */ + yysymbol_kind_t yytoken = YYSYMBOL_YYEMPTY; /* The variables used to return semantic value and location from the action routines. */ YYSTYPE yyval; -#if YYERROR_VERBOSE /* Buffer for error messages, and its allocated size. */ char yymsgbuf[128]; char *yymsg = yymsgbuf; - YYSIZE_T yymsg_alloc = sizeof yymsgbuf; -#endif + YYPTRDIFF_T yymsg_alloc = sizeof yymsgbuf; #define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N)) @@ -2102,15 +2268,8 @@ YYSTYPE yylval YY_INITIAL_VALUE (= yyval_default); Keep to zero when no symbol should be popped. */ int yylen = 0; - yyssp = yyss = yyssa; - yyvsp = yyvs = yyvsa; - yystacksize = YYINITDEPTH; - YYDPRINTF ((stderr, "Starting parse\n")); - yystate = 0; - yyerrstatus = 0; - yynerrs = 0; yychar = YYEMPTY; /* Cause a token to be read. */ goto yysetstate; @@ -2125,12 +2284,15 @@ yynewstate: /*--------------------------------------------------------------------. -| yynewstate -- set current state (the top of the stack) to yystate. | +| yysetstate -- set current state (the top of the stack) to yystate. | `--------------------------------------------------------------------*/ yysetstate: YYDPRINTF ((stderr, "Entering state %d\n", yystate)); YY_ASSERT (0 <= yystate && yystate < YYNSTATES); - *yyssp = (yytype_int16) yystate; + YY_IGNORE_USELESS_CAST_BEGIN + *yyssp = YY_CAST (yy_state_t, yystate); + YY_IGNORE_USELESS_CAST_END + YY_STACK_PRINT (yyss, yyssp); if (yyss + yystacksize - 1 <= yyssp) #if !defined yyoverflow && !defined YYSTACK_RELOCATE @@ -2138,23 +2300,23 @@ yysetstate: #else { /* Get the current used size of the three stacks, in elements. */ - YYSIZE_T yysize = (YYSIZE_T) (yyssp - yyss + 1); + YYPTRDIFF_T yysize = yyssp - yyss + 1; # if defined yyoverflow { /* Give user a chance to reallocate the stack. Use copies of these so that the &'s don't force the real ones into memory. */ + yy_state_t *yyss1 = yyss; YYSTYPE *yyvs1 = yyvs; - yytype_int16 *yyss1 = yyss; /* Each stack pointer address is followed by the size of the data in use in that stack, in bytes. This used to be a conditional around just the two extra args, but that might be undefined if yyoverflow is a macro. */ yyoverflow (YY_("memory exhausted"), - &yyss1, yysize * sizeof (*yyssp), - &yyvs1, yysize * sizeof (*yyvsp), + &yyss1, yysize * YYSIZEOF (*yyssp), + &yyvs1, yysize * YYSIZEOF (*yyvsp), &yystacksize); yyss = yyss1; yyvs = yyvs1; @@ -2168,14 +2330,15 @@ yysetstate: yystacksize = YYMAXDEPTH; { - yytype_int16 *yyss1 = yyss; + yy_state_t *yyss1 = yyss; union yyalloc *yyptr = - (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize)); + YY_CAST (union yyalloc *, + YYSTACK_ALLOC (YY_CAST (YYSIZE_T, YYSTACK_BYTES (yystacksize)))); if (! yyptr) goto yyexhaustedlab; YYSTACK_RELOCATE (yyss_alloc, yyss); YYSTACK_RELOCATE (yyvs_alloc, yyvs); -# undef YYSTACK_RELOCATE +# undef YYSTACK_RELOCATE if (yyss1 != yyssa) YYSTACK_FREE (yyss1); } @@ -2184,8 +2347,10 @@ yysetstate: yyssp = yyss + yysize - 1; yyvsp = yyvs + yysize - 1; - YYDPRINTF ((stderr, "Stack size increased to %lu\n", - (unsigned long) yystacksize)); + YY_IGNORE_USELESS_CAST_BEGIN + YYDPRINTF ((stderr, "Stack size increased to %ld\n", + YY_CAST (long, yystacksize))); + YY_IGNORE_USELESS_CAST_END if (yyss + yystacksize - 1 <= yyssp) YYABORT; @@ -2212,18 +2377,29 @@ yybackup: /* Not known => get a lookahead token if don't already have one. */ - /* YYCHAR is either YYEMPTY or YYEOF or a valid lookahead symbol. */ + /* YYCHAR is either empty, or end-of-input, or a valid lookahead. */ if (yychar == YYEMPTY) { - YYDPRINTF ((stderr, "Reading a token: ")); + YYDPRINTF ((stderr, "Reading a token\n")); yychar = yylex (&yylval, yyscanner); } if (yychar <= YYEOF) { - yychar = yytoken = YYEOF; + yychar = YYEOF; + yytoken = YYSYMBOL_YYEOF; YYDPRINTF ((stderr, "Now at end of input.\n")); } + else if (yychar == YYerror) + { + /* The scanner already issued an error message, process directly + to error recovery. But do not keep the error token as + lookahead, it is too special and may lead us to an endless + loop in error recovery. */ + yychar = YYUNDEF; + yytoken = YYSYMBOL_YYerror; + goto yyerrlab1; + } else { yytoken = YYTRANSLATE (yychar); @@ -2251,14 +2427,13 @@ yybackup: /* Shift the lookahead token. */ YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc); - - /* Discard the shifted token. */ - yychar = YYEMPTY; - yystate = yyn; YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN *++yyvsp = yylval; YY_IGNORE_MAYBE_UNINITIALIZED_END + + /* Discard the shifted token. */ + yychar = YYEMPTY; goto yynewstate; @@ -2293,330 +2468,330 @@ yyreduce: YY_REDUCE_PRINT (yyn); switch (yyn) { - case 2: -#line 183 "cmDependsJavaParser.y" - { + case 2: /* Goal: CompilationUnit */ +#line 180 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 2305 "cmDependsJavaParser.cxx" +#line 2480 "cmDependsJavaParser.cxx" break; - case 3: -#line 192 "cmDependsJavaParser.y" - { + case 3: /* Literal: IntegerLiteral */ +#line 189 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 2316 "cmDependsJavaParser.cxx" +#line 2491 "cmDependsJavaParser.cxx" break; - case 4: -#line 200 "cmDependsJavaParser.y" - { + case 4: /* Literal: jp_FLOATINGPOINTLITERAL */ +#line 197 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 2327 "cmDependsJavaParser.cxx" +#line 2502 "cmDependsJavaParser.cxx" break; - case 5: -#line 208 "cmDependsJavaParser.y" - { + case 5: /* Literal: jp_BOOLEANLITERAL */ +#line 205 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 2338 "cmDependsJavaParser.cxx" +#line 2513 "cmDependsJavaParser.cxx" break; - case 6: -#line 216 "cmDependsJavaParser.y" - { + case 6: /* Literal: jp_CHARACTERLITERAL */ +#line 213 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 2349 "cmDependsJavaParser.cxx" +#line 2524 "cmDependsJavaParser.cxx" break; - case 7: -#line 224 "cmDependsJavaParser.y" - { + case 7: /* Literal: jp_STRINGLITERAL */ +#line 221 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 2360 "cmDependsJavaParser.cxx" +#line 2535 "cmDependsJavaParser.cxx" break; - case 8: -#line 232 "cmDependsJavaParser.y" - { + case 8: /* Literal: jp_NULLLITERAL */ +#line 229 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 2371 "cmDependsJavaParser.cxx" +#line 2546 "cmDependsJavaParser.cxx" break; - case 9: -#line 241 "cmDependsJavaParser.y" - { + case 9: /* IntegerLiteral: jp_DECIMALINTEGERLITERAL */ +#line 238 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 2382 "cmDependsJavaParser.cxx" +#line 2557 "cmDependsJavaParser.cxx" break; - case 10: -#line 249 "cmDependsJavaParser.y" - { + case 10: /* IntegerLiteral: jp_HEXINTEGERLITERAL */ +#line 246 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 2393 "cmDependsJavaParser.cxx" +#line 2568 "cmDependsJavaParser.cxx" break; - case 11: -#line 258 "cmDependsJavaParser.y" - { + case 11: /* Type: PrimitiveType */ +#line 255 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 2404 "cmDependsJavaParser.cxx" +#line 2579 "cmDependsJavaParser.cxx" break; - case 12: -#line 266 "cmDependsJavaParser.y" - { + case 12: /* Type: ReferenceType */ +#line 263 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 2415 "cmDependsJavaParser.cxx" +#line 2590 "cmDependsJavaParser.cxx" break; - case 13: -#line 275 "cmDependsJavaParser.y" - { + case 13: /* PrimitiveType: jp_BYTE_TYPE */ +#line 272 "cmDependsJavaParser.y" +{ jpElementStart(0); } -#line 2423 "cmDependsJavaParser.cxx" +#line 2598 "cmDependsJavaParser.cxx" break; - case 14: -#line 280 "cmDependsJavaParser.y" - { + case 14: /* PrimitiveType: jp_SHORT_TYPE */ +#line 277 "cmDependsJavaParser.y" +{ jpElementStart(0); } -#line 2431 "cmDependsJavaParser.cxx" +#line 2606 "cmDependsJavaParser.cxx" break; - case 15: -#line 285 "cmDependsJavaParser.y" - { + case 15: /* PrimitiveType: jp_INT_TYPE */ +#line 282 "cmDependsJavaParser.y" +{ jpElementStart(0); } -#line 2439 "cmDependsJavaParser.cxx" +#line 2614 "cmDependsJavaParser.cxx" break; - case 16: -#line 290 "cmDependsJavaParser.y" - { + case 16: /* PrimitiveType: jp_LONG_TYPE */ +#line 287 "cmDependsJavaParser.y" +{ jpElementStart(0); } -#line 2447 "cmDependsJavaParser.cxx" +#line 2622 "cmDependsJavaParser.cxx" break; - case 17: -#line 295 "cmDependsJavaParser.y" - { + case 17: /* PrimitiveType: jp_CHAR_TYPE */ +#line 292 "cmDependsJavaParser.y" +{ jpElementStart(0); } -#line 2455 "cmDependsJavaParser.cxx" +#line 2630 "cmDependsJavaParser.cxx" break; - case 18: -#line 300 "cmDependsJavaParser.y" - { + case 18: /* PrimitiveType: jp_FLOAT_TYPE */ +#line 297 "cmDependsJavaParser.y" +{ jpElementStart(0); } -#line 2463 "cmDependsJavaParser.cxx" +#line 2638 "cmDependsJavaParser.cxx" break; - case 19: -#line 305 "cmDependsJavaParser.y" - { + case 19: /* PrimitiveType: jp_DOUBLE_TYPE */ +#line 302 "cmDependsJavaParser.y" +{ jpElementStart(0); } -#line 2471 "cmDependsJavaParser.cxx" +#line 2646 "cmDependsJavaParser.cxx" break; - case 20: -#line 310 "cmDependsJavaParser.y" - { + case 20: /* PrimitiveType: jp_BOOLEAN_TYPE */ +#line 307 "cmDependsJavaParser.y" +{ jpElementStart(0); } -#line 2479 "cmDependsJavaParser.cxx" +#line 2654 "cmDependsJavaParser.cxx" break; - case 21: -#line 316 "cmDependsJavaParser.y" - { + case 21: /* ReferenceType: ClassOrInterfaceType */ +#line 313 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 2490 "cmDependsJavaParser.cxx" +#line 2665 "cmDependsJavaParser.cxx" break; - case 22: -#line 324 "cmDependsJavaParser.y" - { + case 22: /* ReferenceType: ArrayType */ +#line 321 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 2501 "cmDependsJavaParser.cxx" +#line 2676 "cmDependsJavaParser.cxx" break; - case 23: -#line 333 "cmDependsJavaParser.y" - { + case 23: /* ClassOrInterfaceType: Name */ +#line 330 "cmDependsJavaParser.y" +{ jpElementStart(1); jpStoreClass((yyvsp[0].str)); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 2513 "cmDependsJavaParser.cxx" +#line 2688 "cmDependsJavaParser.cxx" break; - case 24: -#line 343 "cmDependsJavaParser.y" - { + case 24: /* ClassType: ClassOrInterfaceType */ +#line 340 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 2524 "cmDependsJavaParser.cxx" +#line 2699 "cmDependsJavaParser.cxx" break; - case 25: -#line 352 "cmDependsJavaParser.y" - { + case 25: /* InterfaceType: ClassOrInterfaceType */ +#line 349 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 2535 "cmDependsJavaParser.cxx" +#line 2710 "cmDependsJavaParser.cxx" break; - case 26: -#line 361 "cmDependsJavaParser.y" - { + case 26: /* ArrayType: PrimitiveType Dims */ +#line 358 "cmDependsJavaParser.y" +{ jpElementStart(2); jpCheckEmpty(2); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 2546 "cmDependsJavaParser.cxx" +#line 2721 "cmDependsJavaParser.cxx" break; - case 27: -#line 369 "cmDependsJavaParser.y" - { + case 27: /* ArrayType: Name Dims */ +#line 366 "cmDependsJavaParser.y" +{ jpElementStart(2); jpStoreClass((yyvsp[-1].str)); jpCheckEmpty(2); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 2558 "cmDependsJavaParser.cxx" +#line 2733 "cmDependsJavaParser.cxx" break; - case 28: -#line 379 "cmDependsJavaParser.y" - { + case 28: /* Name: SimpleName */ +#line 376 "cmDependsJavaParser.y" +{ jpElementStart(1); (yyval.str) = (yyvsp[0].str); } -#line 2567 "cmDependsJavaParser.cxx" +#line 2742 "cmDependsJavaParser.cxx" break; - case 29: -#line 385 "cmDependsJavaParser.y" - { + case 29: /* Name: QualifiedName */ +#line 382 "cmDependsJavaParser.y" +{ jpElementStart(1); (yyval.str) = (yyvsp[0].str); } -#line 2576 "cmDependsJavaParser.cxx" +#line 2751 "cmDependsJavaParser.cxx" break; - case 30: -#line 392 "cmDependsJavaParser.y" - { + case 30: /* SimpleName: Identifier */ +#line 389 "cmDependsJavaParser.y" +{ jpElementStart(1); (yyval.str) = (yyvsp[0].str); } -#line 2585 "cmDependsJavaParser.cxx" +#line 2760 "cmDependsJavaParser.cxx" break; - case 31: -#line 399 "cmDependsJavaParser.y" - { + case 31: /* Identifier: jp_NAME */ +#line 396 "cmDependsJavaParser.y" +{ jpElementStart(1); (yyval.str) = (yyvsp[0].str); } -#line 2594 "cmDependsJavaParser.cxx" +#line 2769 "cmDependsJavaParser.cxx" break; - case 32: -#line 405 "cmDependsJavaParser.y" - { + case 32: /* Identifier: jp_DOLLAR jp_NAME */ +#line 402 "cmDependsJavaParser.y" +{ jpElementStart(2); (yyval.str) = (yyvsp[0].str); } -#line 2603 "cmDependsJavaParser.cxx" +#line 2778 "cmDependsJavaParser.cxx" break; - case 33: -#line 412 "cmDependsJavaParser.y" - { + case 33: /* QualifiedName: Name jp_DOT Identifier */ +#line 409 "cmDependsJavaParser.y" +{ jpElementStart(3); yyGetParser->AddClassFound((yyvsp[-2].str)); yyGetParser->UpdateCombine((yyvsp[-2].str), (yyvsp[0].str)); yyGetParser->DeallocateParserType(&((yyvsp[-2].str))); (yyval.str) = const_cast(yyGetParser->GetCurrentCombine()); } -#line 2615 "cmDependsJavaParser.cxx" +#line 2790 "cmDependsJavaParser.cxx" break; - case 34: -#line 421 "cmDependsJavaParser.y" - { + case 34: /* QualifiedName: Name jp_DOT jp_CLASS */ +#line 418 "cmDependsJavaParser.y" +{ jpElementStart(3); jpStoreClass((yyvsp[-2].str)); jpCheckEmpty(3); @@ -2624,12 +2799,12 @@ yyreduce: (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 2628 "cmDependsJavaParser.cxx" +#line 2803 "cmDependsJavaParser.cxx" break; - case 35: -#line 431 "cmDependsJavaParser.y" - { + case 35: /* QualifiedName: Name jp_DOT jp_THIS */ +#line 428 "cmDependsJavaParser.y" +{ jpElementStart(3); jpStoreClass((yyvsp[-2].str)); yyGetParser->SetCurrentCombine(""); @@ -2637,119 +2812,119 @@ yyreduce: (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 2641 "cmDependsJavaParser.cxx" +#line 2816 "cmDependsJavaParser.cxx" break; - case 36: -#line 441 "cmDependsJavaParser.y" - { + case 36: /* QualifiedName: SimpleType jp_DOT jp_CLASS */ +#line 438 "cmDependsJavaParser.y" +{ jpElementStart(3); jpCheckEmpty(3); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 2652 "cmDependsJavaParser.cxx" +#line 2827 "cmDependsJavaParser.cxx" break; - case 37: -#line 450 "cmDependsJavaParser.y" - { + case 37: /* SimpleType: PrimitiveType */ +#line 447 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 2663 "cmDependsJavaParser.cxx" +#line 2838 "cmDependsJavaParser.cxx" break; - case 38: -#line 458 "cmDependsJavaParser.y" - { + case 38: /* SimpleType: jp_VOID */ +#line 455 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 2674 "cmDependsJavaParser.cxx" +#line 2849 "cmDependsJavaParser.cxx" break; - case 39: -#line 467 "cmDependsJavaParser.y" - { + case 39: /* CompilationUnit: PackageDeclarationopt ImportDeclarations TypeDeclarations */ +#line 464 "cmDependsJavaParser.y" +{ jpElementStart(3); jpCheckEmpty(3); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 2685 "cmDependsJavaParser.cxx" +#line 2860 "cmDependsJavaParser.cxx" break; - case 40: -#line 475 "cmDependsJavaParser.y" - { + case 40: /* PackageDeclarationopt: %empty */ +#line 472 "cmDependsJavaParser.y" +{ jpElementStart(0); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 2695 "cmDependsJavaParser.cxx" +#line 2870 "cmDependsJavaParser.cxx" break; - case 41: -#line 482 "cmDependsJavaParser.y" - { + case 41: /* PackageDeclarationopt: PackageDeclaration */ +#line 479 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 2706 "cmDependsJavaParser.cxx" +#line 2881 "cmDependsJavaParser.cxx" break; - case 42: -#line 490 "cmDependsJavaParser.y" - { + case 42: /* ImportDeclarations: %empty */ +#line 487 "cmDependsJavaParser.y" +{ jpElementStart(0); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 2716 "cmDependsJavaParser.cxx" +#line 2891 "cmDependsJavaParser.cxx" break; - case 43: -#line 497 "cmDependsJavaParser.y" - { + case 43: /* ImportDeclarations: ImportDeclarations ImportDeclaration */ +#line 494 "cmDependsJavaParser.y" +{ jpElementStart(2); jpCheckEmpty(2); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 2727 "cmDependsJavaParser.cxx" +#line 2902 "cmDependsJavaParser.cxx" break; - case 44: -#line 505 "cmDependsJavaParser.y" - { + case 44: /* TypeDeclarations: %empty */ +#line 502 "cmDependsJavaParser.y" +{ jpElementStart(0); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 2737 "cmDependsJavaParser.cxx" +#line 2912 "cmDependsJavaParser.cxx" break; - case 45: -#line 512 "cmDependsJavaParser.y" - { + case 45: /* TypeDeclarations: TypeDeclarations TypeDeclaration */ +#line 509 "cmDependsJavaParser.y" +{ jpElementStart(2); jpCheckEmpty(2); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 2748 "cmDependsJavaParser.cxx" +#line 2923 "cmDependsJavaParser.cxx" break; - case 46: -#line 521 "cmDependsJavaParser.y" - { + case 46: /* PackageDeclaration: jp_PACKAGE Name jp_SEMICOL */ +#line 518 "cmDependsJavaParser.y" +{ jpElementStart(3); yyGetParser->SetCurrentPackage((yyvsp[-1].str)); yyGetParser->DeallocateParserType(&((yyvsp[-1].str))); @@ -2758,34 +2933,34 @@ yyreduce: (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 2762 "cmDependsJavaParser.cxx" +#line 2937 "cmDependsJavaParser.cxx" break; - case 47: -#line 533 "cmDependsJavaParser.y" - { + case 47: /* ImportDeclaration: SingleTypeImportDeclaration */ +#line 530 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 2773 "cmDependsJavaParser.cxx" +#line 2948 "cmDependsJavaParser.cxx" break; - case 48: -#line 541 "cmDependsJavaParser.y" - { + case 48: /* ImportDeclaration: TypeImportOnDemandDeclaration */ +#line 538 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 2784 "cmDependsJavaParser.cxx" +#line 2959 "cmDependsJavaParser.cxx" break; - case 49: -#line 550 "cmDependsJavaParser.y" - { + case 49: /* SingleTypeImportDeclaration: jp_IMPORT Name jp_SEMICOL */ +#line 547 "cmDependsJavaParser.y" +{ jpElementStart(3); yyGetParser->AddPackagesImport((yyvsp[-1].str)); yyGetParser->DeallocateParserType(&((yyvsp[-1].str))); @@ -2794,12 +2969,12 @@ yyreduce: (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 2798 "cmDependsJavaParser.cxx" +#line 2973 "cmDependsJavaParser.cxx" break; - case 50: -#line 562 "cmDependsJavaParser.y" - { + case 50: /* TypeImportOnDemandDeclaration: jp_IMPORT Name jp_DOT jp_TIMES jp_SEMICOL */ +#line 559 "cmDependsJavaParser.y" +{ jpElementStart(5); std::string str = (yyvsp[-3].str); str += ".*"; @@ -2809,466 +2984,466 @@ yyreduce: (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 2813 "cmDependsJavaParser.cxx" +#line 2988 "cmDependsJavaParser.cxx" break; - case 51: -#line 575 "cmDependsJavaParser.y" - { + case 51: /* TypeDeclaration: ClassDeclaration */ +#line 572 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 2824 "cmDependsJavaParser.cxx" +#line 2999 "cmDependsJavaParser.cxx" break; - case 52: -#line 583 "cmDependsJavaParser.y" - { + case 52: /* TypeDeclaration: InterfaceDeclaration */ +#line 580 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 2835 "cmDependsJavaParser.cxx" +#line 3010 "cmDependsJavaParser.cxx" break; - case 53: -#line 591 "cmDependsJavaParser.y" - { + case 53: /* TypeDeclaration: jp_SEMICOL */ +#line 588 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 2846 "cmDependsJavaParser.cxx" +#line 3021 "cmDependsJavaParser.cxx" break; - case 54: -#line 600 "cmDependsJavaParser.y" - { + case 54: /* Modifiers: Modifier */ +#line 597 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 2857 "cmDependsJavaParser.cxx" +#line 3032 "cmDependsJavaParser.cxx" break; - case 55: -#line 608 "cmDependsJavaParser.y" - { + case 55: /* Modifiers: Modifiers Modifier */ +#line 605 "cmDependsJavaParser.y" +{ jpElementStart(2); jpCheckEmpty(2); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 2868 "cmDependsJavaParser.cxx" +#line 3043 "cmDependsJavaParser.cxx" break; - case 67: -#line 623 "cmDependsJavaParser.y" - { + case 67: /* ClassHeader: Modifiersopt jp_CLASS Identifier */ +#line 620 "cmDependsJavaParser.y" +{ yyGetParser->StartClass((yyvsp[0].str)); jpElementStart(3); yyGetParser->DeallocateParserType(&((yyvsp[0].str))); jpCheckEmpty(3); } -#line 2879 "cmDependsJavaParser.cxx" +#line 3054 "cmDependsJavaParser.cxx" break; - case 68: -#line 633 "cmDependsJavaParser.y" - { + case 68: /* ClassDeclaration: ClassHeader ClassBody */ +#line 630 "cmDependsJavaParser.y" +{ jpElementStart(2); jpCheckEmpty(2); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); yyGetParser->EndClass(); } -#line 2891 "cmDependsJavaParser.cxx" +#line 3066 "cmDependsJavaParser.cxx" break; - case 69: -#line 642 "cmDependsJavaParser.y" - { + case 69: /* ClassDeclaration: ClassHeader Interfaces ClassBody */ +#line 639 "cmDependsJavaParser.y" +{ jpElementStart(3); jpCheckEmpty(2); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); yyGetParser->EndClass(); } -#line 2903 "cmDependsJavaParser.cxx" +#line 3078 "cmDependsJavaParser.cxx" break; - case 70: -#line 651 "cmDependsJavaParser.y" - { + case 70: /* ClassDeclaration: ClassHeader Super ClassBody */ +#line 648 "cmDependsJavaParser.y" +{ jpElementStart(3); jpCheckEmpty(3); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); yyGetParser->EndClass(); } -#line 2915 "cmDependsJavaParser.cxx" +#line 3090 "cmDependsJavaParser.cxx" break; - case 71: -#line 660 "cmDependsJavaParser.y" - { + case 71: /* ClassDeclaration: ClassHeader Super Interfaces ClassBody */ +#line 657 "cmDependsJavaParser.y" +{ jpElementStart(4); jpCheckEmpty(4); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); yyGetParser->EndClass(); } -#line 2927 "cmDependsJavaParser.cxx" +#line 3102 "cmDependsJavaParser.cxx" break; - case 72: -#line 669 "cmDependsJavaParser.y" - { + case 72: /* Modifiersopt: %empty */ +#line 666 "cmDependsJavaParser.y" +{ jpElementStart(0); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 2937 "cmDependsJavaParser.cxx" +#line 3112 "cmDependsJavaParser.cxx" break; - case 73: -#line 676 "cmDependsJavaParser.y" - { + case 73: /* Modifiersopt: Modifiers */ +#line 673 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 2948 "cmDependsJavaParser.cxx" +#line 3123 "cmDependsJavaParser.cxx" break; - case 74: -#line 685 "cmDependsJavaParser.y" - { + case 74: /* Super: jp_EXTENDS ClassType */ +#line 682 "cmDependsJavaParser.y" +{ jpElementStart(2); jpCheckEmpty(2); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 2959 "cmDependsJavaParser.cxx" +#line 3134 "cmDependsJavaParser.cxx" break; - case 75: -#line 694 "cmDependsJavaParser.y" - { + case 75: /* Interfaces: jp_IMPLEMENTS InterfaceTypeList */ +#line 691 "cmDependsJavaParser.y" +{ jpElementStart(2); jpCheckEmpty(2); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 2970 "cmDependsJavaParser.cxx" +#line 3145 "cmDependsJavaParser.cxx" break; - case 76: -#line 703 "cmDependsJavaParser.y" - { + case 76: /* InterfaceTypeList: InterfaceType */ +#line 700 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 2981 "cmDependsJavaParser.cxx" +#line 3156 "cmDependsJavaParser.cxx" break; - case 77: -#line 711 "cmDependsJavaParser.y" - { + case 77: /* InterfaceTypeList: InterfaceTypeList jp_COMMA InterfaceType */ +#line 708 "cmDependsJavaParser.y" +{ jpElementStart(3); jpCheckEmpty(3); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 2992 "cmDependsJavaParser.cxx" +#line 3167 "cmDependsJavaParser.cxx" break; - case 78: -#line 720 "cmDependsJavaParser.y" - { + case 78: /* ClassBody: jp_CURLYSTART ClassBodyDeclarations jp_CURLYEND */ +#line 717 "cmDependsJavaParser.y" +{ jpElementStart(3); jpCheckEmpty(3); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 3003 "cmDependsJavaParser.cxx" +#line 3178 "cmDependsJavaParser.cxx" break; - case 79: -#line 728 "cmDependsJavaParser.y" - { + case 79: /* ClassBodyDeclarations: %empty */ +#line 725 "cmDependsJavaParser.y" +{ jpElementStart(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 3013 "cmDependsJavaParser.cxx" +#line 3188 "cmDependsJavaParser.cxx" break; - case 80: -#line 735 "cmDependsJavaParser.y" - { + case 80: /* ClassBodyDeclarations: ClassBodyDeclarations ClassBodyDeclaration */ +#line 732 "cmDependsJavaParser.y" +{ jpElementStart(2); jpCheckEmpty(2); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 3024 "cmDependsJavaParser.cxx" +#line 3199 "cmDependsJavaParser.cxx" break; - case 81: -#line 744 "cmDependsJavaParser.y" - { + case 81: /* ClassBodyDeclaration: ClassMemberDeclaration */ +#line 741 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 3035 "cmDependsJavaParser.cxx" +#line 3210 "cmDependsJavaParser.cxx" break; - case 82: -#line 752 "cmDependsJavaParser.y" - { + case 82: /* ClassBodyDeclaration: StaticInitializer */ +#line 749 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 3046 "cmDependsJavaParser.cxx" +#line 3221 "cmDependsJavaParser.cxx" break; - case 83: -#line 760 "cmDependsJavaParser.y" - { + case 83: /* ClassBodyDeclaration: ConstructorDeclaration */ +#line 757 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 3057 "cmDependsJavaParser.cxx" +#line 3232 "cmDependsJavaParser.cxx" break; - case 84: -#line 768 "cmDependsJavaParser.y" - { + case 84: /* ClassBodyDeclaration: TypeDeclaration */ +#line 765 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 3068 "cmDependsJavaParser.cxx" +#line 3243 "cmDependsJavaParser.cxx" break; - case 85: -#line 777 "cmDependsJavaParser.y" - { + case 85: /* ClassMemberDeclaration: FieldDeclaration */ +#line 774 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 3079 "cmDependsJavaParser.cxx" +#line 3254 "cmDependsJavaParser.cxx" break; - case 86: -#line 785 "cmDependsJavaParser.y" - { + case 86: /* ClassMemberDeclaration: MethodDeclaration */ +#line 782 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 3090 "cmDependsJavaParser.cxx" +#line 3265 "cmDependsJavaParser.cxx" break; - case 87: -#line 794 "cmDependsJavaParser.y" - { + case 87: /* FieldDeclaration: Modifiersopt Type VariableDeclarators jp_SEMICOL */ +#line 791 "cmDependsJavaParser.y" +{ jpElementStart(4); } -#line 3098 "cmDependsJavaParser.cxx" +#line 3273 "cmDependsJavaParser.cxx" break; - case 88: -#line 800 "cmDependsJavaParser.y" - { + case 88: /* VariableDeclarators: VariableDeclarator */ +#line 797 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 3109 "cmDependsJavaParser.cxx" +#line 3284 "cmDependsJavaParser.cxx" break; - case 89: -#line 808 "cmDependsJavaParser.y" - { + case 89: /* VariableDeclarators: VariableDeclarators jp_COMMA VariableDeclarator */ +#line 805 "cmDependsJavaParser.y" +{ jpElementStart(3); jpCheckEmpty(3); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 3120 "cmDependsJavaParser.cxx" +#line 3295 "cmDependsJavaParser.cxx" break; - case 90: -#line 817 "cmDependsJavaParser.y" - { + case 90: /* VariableDeclarator: VariableDeclaratorId */ +#line 814 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 3131 "cmDependsJavaParser.cxx" +#line 3306 "cmDependsJavaParser.cxx" break; - case 91: -#line 825 "cmDependsJavaParser.y" - { + case 91: /* VariableDeclarator: VariableDeclaratorId jp_EQUALS VariableInitializer */ +#line 822 "cmDependsJavaParser.y" +{ jpElementStart(3); jpCheckEmpty(3); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 3142 "cmDependsJavaParser.cxx" +#line 3317 "cmDependsJavaParser.cxx" break; - case 92: -#line 834 "cmDependsJavaParser.y" - { + case 92: /* VariableDeclaratorId: Identifier */ +#line 831 "cmDependsJavaParser.y" +{ jpElementStart(1); yyGetParser->DeallocateParserType(&((yyvsp[0].str))); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 3154 "cmDependsJavaParser.cxx" +#line 3329 "cmDependsJavaParser.cxx" break; - case 93: -#line 843 "cmDependsJavaParser.y" - { + case 93: /* VariableDeclaratorId: VariableDeclaratorId jp_BRACKETSTART jp_BRACKETEND */ +#line 840 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 3165 "cmDependsJavaParser.cxx" +#line 3340 "cmDependsJavaParser.cxx" break; - case 94: -#line 852 "cmDependsJavaParser.y" - { + case 94: /* VariableInitializer: Expression */ +#line 849 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 3176 "cmDependsJavaParser.cxx" +#line 3351 "cmDependsJavaParser.cxx" break; - case 95: -#line 860 "cmDependsJavaParser.y" - { + case 95: /* VariableInitializer: ArrayInitializer */ +#line 857 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 3187 "cmDependsJavaParser.cxx" +#line 3362 "cmDependsJavaParser.cxx" break; - case 96: -#line 869 "cmDependsJavaParser.y" - { + case 96: /* MethodDeclaration: MethodHeader jp_SEMICOL */ +#line 866 "cmDependsJavaParser.y" +{ jpElementStart(2); jpCheckEmpty(2); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 3198 "cmDependsJavaParser.cxx" +#line 3373 "cmDependsJavaParser.cxx" break; - case 97: -#line 877 "cmDependsJavaParser.y" - { + case 97: /* MethodDeclaration: MethodHeader MethodBody */ +#line 874 "cmDependsJavaParser.y" +{ jpElementStart(2); jpCheckEmpty(2); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 3209 "cmDependsJavaParser.cxx" +#line 3384 "cmDependsJavaParser.cxx" break; - case 98: -#line 885 "cmDependsJavaParser.y" - { + case 98: /* MethodDeclaration: MethodHeader MethodBody jp_SEMICOL */ +#line 882 "cmDependsJavaParser.y" +{ jpElementStart(3); jpCheckEmpty(3); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 3220 "cmDependsJavaParser.cxx" +#line 3395 "cmDependsJavaParser.cxx" break; - case 99: -#line 894 "cmDependsJavaParser.y" - { + case 99: /* MethodHeader: Modifiersopt Type MethodDeclarator Throwsopt */ +#line 891 "cmDependsJavaParser.y" +{ jpElementStart(4); jpCheckEmpty(4); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 3232 "cmDependsJavaParser.cxx" +#line 3407 "cmDependsJavaParser.cxx" break; - case 100: -#line 903 "cmDependsJavaParser.y" - { + case 100: /* MethodHeader: Modifiersopt jp_VOID MethodDeclarator Throwsopt */ +#line 900 "cmDependsJavaParser.y" +{ jpElementStart(4); jpCheckEmpty(4); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 3244 "cmDependsJavaParser.cxx" +#line 3419 "cmDependsJavaParser.cxx" break; - case 101: -#line 912 "cmDependsJavaParser.y" - { + case 101: /* Throwsopt: %empty */ +#line 909 "cmDependsJavaParser.y" +{ jpElementStart(0); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 3255 "cmDependsJavaParser.cxx" +#line 3430 "cmDependsJavaParser.cxx" break; - case 102: -#line 920 "cmDependsJavaParser.y" - { + case 102: /* Throwsopt: Throws */ +#line 917 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 3267 "cmDependsJavaParser.cxx" +#line 3442 "cmDependsJavaParser.cxx" break; - case 103: -#line 930 "cmDependsJavaParser.y" - { + case 103: /* MethodDeclarator: Identifier jp_PARESTART FormalParameterListopt jp_PAREEND */ +#line 927 "cmDependsJavaParser.y" +{ jpElementStart(4); yyGetParser->DeallocateParserType(&((yyvsp[-3].str))); jpCheckEmpty(4); @@ -3276,146 +3451,146 @@ yyreduce: yyGetParser->SetCurrentCombine(""); } -#line 3280 "cmDependsJavaParser.cxx" +#line 3455 "cmDependsJavaParser.cxx" break; - case 104: -#line 940 "cmDependsJavaParser.y" - { + case 104: /* MethodDeclarator: MethodDeclarator jp_BRACKETSTART jp_BRACKETEND */ +#line 937 "cmDependsJavaParser.y" +{ jpElementStart(3); } -#line 3289 "cmDependsJavaParser.cxx" +#line 3464 "cmDependsJavaParser.cxx" break; - case 105: -#line 946 "cmDependsJavaParser.y" - { + case 105: /* FormalParameterListopt: %empty */ +#line 943 "cmDependsJavaParser.y" +{ jpElementStart(0); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 3300 "cmDependsJavaParser.cxx" +#line 3475 "cmDependsJavaParser.cxx" break; - case 107: -#line 957 "cmDependsJavaParser.y" - { + case 107: /* FormalParameterList: FormalParameter */ +#line 954 "cmDependsJavaParser.y" +{ jpElementStart(1); } -#line 3309 "cmDependsJavaParser.cxx" +#line 3484 "cmDependsJavaParser.cxx" break; - case 108: -#line 963 "cmDependsJavaParser.y" - { + case 108: /* FormalParameterList: FormalParameterList jp_COMMA FormalParameter */ +#line 960 "cmDependsJavaParser.y" +{ jpElementStart(3); jpCheckEmpty(3); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 3321 "cmDependsJavaParser.cxx" +#line 3496 "cmDependsJavaParser.cxx" break; - case 109: -#line 973 "cmDependsJavaParser.y" - { + case 109: /* FormalParameter: Modifiersopt Type VariableDeclaratorId */ +#line 970 "cmDependsJavaParser.y" +{ jpElementStart(3); jpCheckEmpty(3); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 3333 "cmDependsJavaParser.cxx" +#line 3508 "cmDependsJavaParser.cxx" break; - case 110: -#line 983 "cmDependsJavaParser.y" - { + case 110: /* Throws: jp_THROWS ClassTypeList */ +#line 980 "cmDependsJavaParser.y" +{ jpElementStart(2); jpCheckEmpty(2); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 3345 "cmDependsJavaParser.cxx" +#line 3520 "cmDependsJavaParser.cxx" break; - case 111: -#line 993 "cmDependsJavaParser.y" - { + case 111: /* ClassTypeList: ClassType */ +#line 990 "cmDependsJavaParser.y" +{ jpElementStart(1); } -#line 3354 "cmDependsJavaParser.cxx" +#line 3529 "cmDependsJavaParser.cxx" break; - case 112: -#line 999 "cmDependsJavaParser.y" - { + case 112: /* ClassTypeList: ClassTypeList jp_COMMA ClassType */ +#line 996 "cmDependsJavaParser.y" +{ jpElementStart(3); jpCheckEmpty(3); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 3366 "cmDependsJavaParser.cxx" +#line 3541 "cmDependsJavaParser.cxx" break; - case 113: -#line 1009 "cmDependsJavaParser.y" - { + case 113: /* MethodBody: Block */ +#line 1006 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 3378 "cmDependsJavaParser.cxx" +#line 3553 "cmDependsJavaParser.cxx" break; - case 114: -#line 1019 "cmDependsJavaParser.y" - { + case 114: /* StaticInitializer: jp_STATIC Block */ +#line 1016 "cmDependsJavaParser.y" +{ jpElementStart(2); jpCheckEmpty(2); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 3390 "cmDependsJavaParser.cxx" +#line 3565 "cmDependsJavaParser.cxx" break; - case 115: -#line 1029 "cmDependsJavaParser.y" - { + case 115: /* ConstructorDeclaration: Modifiersopt ConstructorDeclarator Throwsopt ConstructorBody */ +#line 1026 "cmDependsJavaParser.y" +{ jpElementStart(4); jpCheckEmpty(4); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 3402 "cmDependsJavaParser.cxx" +#line 3577 "cmDependsJavaParser.cxx" break; - case 116: -#line 1038 "cmDependsJavaParser.y" - { + case 116: /* ConstructorDeclaration: Modifiersopt ConstructorDeclarator Throwsopt ConstructorBody jp_SEMICOL */ +#line 1035 "cmDependsJavaParser.y" +{ jpElementStart(5); jpCheckEmpty(5); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 3414 "cmDependsJavaParser.cxx" +#line 3589 "cmDependsJavaParser.cxx" break; - case 117: -#line 1048 "cmDependsJavaParser.y" - { + case 117: /* ConstructorDeclarator: SimpleName jp_PARESTART FormalParameterListopt jp_PAREEND */ +#line 1045 "cmDependsJavaParser.y" +{ jpElementStart(4); yyGetParser->DeallocateParserType(&((yyvsp[-3].str))); jpCheckEmpty(4); @@ -3423,781 +3598,781 @@ yyreduce: yyGetParser->SetCurrentCombine(""); } -#line 3427 "cmDependsJavaParser.cxx" +#line 3602 "cmDependsJavaParser.cxx" break; - case 118: -#line 1059 "cmDependsJavaParser.y" - { + case 118: /* ConstructorBody: jp_CURLYSTART ExplicitConstructorInvocationopt BlockStatementsopt jp_CURLYEND */ +#line 1056 "cmDependsJavaParser.y" +{ jpElementStart(4); jpCheckEmpty(4); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 3439 "cmDependsJavaParser.cxx" +#line 3614 "cmDependsJavaParser.cxx" break; - case 119: -#line 1068 "cmDependsJavaParser.y" - { + case 119: /* ExplicitConstructorInvocationopt: %empty */ +#line 1065 "cmDependsJavaParser.y" +{ jpElementStart(0); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 3450 "cmDependsJavaParser.cxx" +#line 3625 "cmDependsJavaParser.cxx" break; - case 120: -#line 1076 "cmDependsJavaParser.y" - { + case 120: /* ExplicitConstructorInvocationopt: ExplicitConstructorInvocationopt ExplicitConstructorInvocation */ +#line 1073 "cmDependsJavaParser.y" +{ jpElementStart(2); jpCheckEmpty(2); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 3462 "cmDependsJavaParser.cxx" +#line 3637 "cmDependsJavaParser.cxx" break; - case 121: -#line 1086 "cmDependsJavaParser.y" - { + case 121: /* ExplicitConstructorInvocation: jp_THIS jp_PARESTART ArgumentListopt jp_PAREEND jp_SEMICOL */ +#line 1083 "cmDependsJavaParser.y" +{ jpElementStart(5); jpCheckEmpty(5); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 3474 "cmDependsJavaParser.cxx" +#line 3649 "cmDependsJavaParser.cxx" break; - case 122: -#line 1095 "cmDependsJavaParser.y" - { + case 122: /* ExplicitConstructorInvocation: jp_SUPER jp_PARESTART ArgumentListopt jp_PAREEND jp_SEMICOL */ +#line 1092 "cmDependsJavaParser.y" +{ jpElementStart(5); jpCheckEmpty(5); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 3486 "cmDependsJavaParser.cxx" +#line 3661 "cmDependsJavaParser.cxx" break; - case 123: -#line 1105 "cmDependsJavaParser.y" - { + case 123: /* InterfaceHeader: Modifiersopt jp_INTERFACE Identifier */ +#line 1102 "cmDependsJavaParser.y" +{ yyGetParser->StartClass((yyvsp[0].str)); jpElementStart(3); yyGetParser->DeallocateParserType(&((yyvsp[0].str))); jpCheckEmpty(3); } -#line 3497 "cmDependsJavaParser.cxx" +#line 3672 "cmDependsJavaParser.cxx" break; - case 124: -#line 1114 "cmDependsJavaParser.y" - { + case 124: /* InterfaceDeclaration: InterfaceHeader ExtendsInterfacesopt InterfaceBody */ +#line 1111 "cmDependsJavaParser.y" +{ jpElementStart(2); jpCheckEmpty(2); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); yyGetParser->EndClass(); } -#line 3509 "cmDependsJavaParser.cxx" +#line 3684 "cmDependsJavaParser.cxx" break; - case 125: -#line 1123 "cmDependsJavaParser.y" - { + case 125: /* ExtendsInterfacesopt: %empty */ +#line 1120 "cmDependsJavaParser.y" +{ jpElementStart(0); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 3519 "cmDependsJavaParser.cxx" +#line 3694 "cmDependsJavaParser.cxx" break; - case 126: -#line 1130 "cmDependsJavaParser.y" - { + case 126: /* ExtendsInterfacesopt: ExtendsInterfaces */ +#line 1127 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 3531 "cmDependsJavaParser.cxx" +#line 3706 "cmDependsJavaParser.cxx" break; - case 127: -#line 1140 "cmDependsJavaParser.y" - { + case 127: /* ExtendsInterfaces: jp_EXTENDS InterfaceType */ +#line 1137 "cmDependsJavaParser.y" +{ jpElementStart(2); jpCheckEmpty(2); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 3543 "cmDependsJavaParser.cxx" +#line 3718 "cmDependsJavaParser.cxx" break; - case 128: -#line 1149 "cmDependsJavaParser.y" - { + case 128: /* ExtendsInterfaces: ExtendsInterfaces jp_COMMA InterfaceType */ +#line 1146 "cmDependsJavaParser.y" +{ jpElementStart(3); jpCheckEmpty(3); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 3555 "cmDependsJavaParser.cxx" +#line 3730 "cmDependsJavaParser.cxx" break; - case 129: -#line 1159 "cmDependsJavaParser.y" - { + case 129: /* InterfaceBody: jp_CURLYSTART InterfaceMemberDeclarations jp_CURLYEND */ +#line 1156 "cmDependsJavaParser.y" +{ jpElementStart(3); jpCheckEmpty(3); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 3567 "cmDependsJavaParser.cxx" +#line 3742 "cmDependsJavaParser.cxx" break; - case 130: -#line 1168 "cmDependsJavaParser.y" - { + case 130: /* InterfaceMemberDeclarations: %empty */ +#line 1165 "cmDependsJavaParser.y" +{ jpElementStart(0); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 3578 "cmDependsJavaParser.cxx" +#line 3753 "cmDependsJavaParser.cxx" break; - case 131: -#line 1176 "cmDependsJavaParser.y" - { + case 131: /* InterfaceMemberDeclarations: InterfaceMemberDeclarations InterfaceMemberDeclaration */ +#line 1173 "cmDependsJavaParser.y" +{ jpElementStart(2); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 3589 "cmDependsJavaParser.cxx" +#line 3764 "cmDependsJavaParser.cxx" break; - case 132: -#line 1185 "cmDependsJavaParser.y" - { + case 132: /* InterfaceMemberDeclaration: ConstantDeclaration */ +#line 1182 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 3601 "cmDependsJavaParser.cxx" +#line 3776 "cmDependsJavaParser.cxx" break; - case 133: -#line 1194 "cmDependsJavaParser.y" - { + case 133: /* InterfaceMemberDeclaration: AbstractMethodDeclaration */ +#line 1191 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 3613 "cmDependsJavaParser.cxx" +#line 3788 "cmDependsJavaParser.cxx" break; - case 134: -#line 1203 "cmDependsJavaParser.y" - { + case 134: /* InterfaceMemberDeclaration: ClassDeclaration */ +#line 1200 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 3625 "cmDependsJavaParser.cxx" +#line 3800 "cmDependsJavaParser.cxx" break; - case 135: -#line 1212 "cmDependsJavaParser.y" - { + case 135: /* InterfaceMemberDeclaration: ClassDeclaration jp_SEMICOL */ +#line 1209 "cmDependsJavaParser.y" +{ jpElementStart(2); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 3636 "cmDependsJavaParser.cxx" +#line 3811 "cmDependsJavaParser.cxx" break; - case 136: -#line 1220 "cmDependsJavaParser.y" - { + case 136: /* InterfaceMemberDeclaration: InterfaceDeclaration */ +#line 1217 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 3648 "cmDependsJavaParser.cxx" +#line 3823 "cmDependsJavaParser.cxx" break; - case 137: -#line 1229 "cmDependsJavaParser.y" - { + case 137: /* InterfaceMemberDeclaration: InterfaceDeclaration jp_SEMICOL */ +#line 1226 "cmDependsJavaParser.y" +{ jpElementStart(2); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 3659 "cmDependsJavaParser.cxx" +#line 3834 "cmDependsJavaParser.cxx" break; - case 138: -#line 1238 "cmDependsJavaParser.y" - { + case 138: /* ConstantDeclaration: FieldDeclaration */ +#line 1235 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 3671 "cmDependsJavaParser.cxx" +#line 3846 "cmDependsJavaParser.cxx" break; - case 139: -#line 1248 "cmDependsJavaParser.y" - { + case 139: /* AbstractMethodDeclaration: MethodHeader Semicols */ +#line 1245 "cmDependsJavaParser.y" +{ jpElementStart(2); jpCheckEmpty(2); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 3683 "cmDependsJavaParser.cxx" +#line 3858 "cmDependsJavaParser.cxx" break; - case 140: -#line 1258 "cmDependsJavaParser.y" - { + case 140: /* Semicols: jp_SEMICOL */ +#line 1255 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 3695 "cmDependsJavaParser.cxx" +#line 3870 "cmDependsJavaParser.cxx" break; - case 141: -#line 1267 "cmDependsJavaParser.y" - { + case 141: /* Semicols: Semicols jp_SEMICOL */ +#line 1264 "cmDependsJavaParser.y" +{ jpElementStart(2); jpCheckEmpty(2); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 3707 "cmDependsJavaParser.cxx" +#line 3882 "cmDependsJavaParser.cxx" break; - case 142: -#line 1277 "cmDependsJavaParser.y" - { + case 142: /* ArrayInitializer: jp_CURLYSTART VariableInitializersOptional jp_CURLYEND */ +#line 1274 "cmDependsJavaParser.y" +{ jpElementStart(3); jpCheckEmpty(3); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 3719 "cmDependsJavaParser.cxx" +#line 3894 "cmDependsJavaParser.cxx" break; - case 143: -#line 1286 "cmDependsJavaParser.y" - { + case 143: /* VariableInitializersOptional: %empty */ +#line 1283 "cmDependsJavaParser.y" +{ jpElementStart(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 3730 "cmDependsJavaParser.cxx" +#line 3905 "cmDependsJavaParser.cxx" break; - case 144: -#line 1294 "cmDependsJavaParser.y" - { + case 144: /* VariableInitializersOptional: VariableInitializers */ +#line 1291 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 3742 "cmDependsJavaParser.cxx" +#line 3917 "cmDependsJavaParser.cxx" break; - case 145: -#line 1303 "cmDependsJavaParser.y" - { + case 145: /* VariableInitializersOptional: VariableInitializers jp_COMMA */ +#line 1300 "cmDependsJavaParser.y" +{ jpElementStart(2); jpCheckEmpty(2); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 3754 "cmDependsJavaParser.cxx" +#line 3929 "cmDependsJavaParser.cxx" break; - case 146: -#line 1313 "cmDependsJavaParser.y" - { + case 146: /* VariableInitializers: VariableInitializer */ +#line 1310 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 3766 "cmDependsJavaParser.cxx" +#line 3941 "cmDependsJavaParser.cxx" break; - case 147: -#line 1322 "cmDependsJavaParser.y" - { + case 147: /* VariableInitializers: VariableInitializers jp_COMMA VariableInitializer */ +#line 1319 "cmDependsJavaParser.y" +{ jpElementStart(3); jpCheckEmpty(3); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 3778 "cmDependsJavaParser.cxx" +#line 3953 "cmDependsJavaParser.cxx" break; - case 148: -#line 1332 "cmDependsJavaParser.y" - { + case 148: /* Block: jp_CURLYSTART BlockStatementsopt jp_CURLYEND */ +#line 1329 "cmDependsJavaParser.y" +{ jpElementStart(4); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 3789 "cmDependsJavaParser.cxx" +#line 3964 "cmDependsJavaParser.cxx" break; - case 149: -#line 1340 "cmDependsJavaParser.y" - { + case 149: /* BlockStatementsopt: %empty */ +#line 1337 "cmDependsJavaParser.y" +{ jpElementStart(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 3800 "cmDependsJavaParser.cxx" +#line 3975 "cmDependsJavaParser.cxx" break; - case 150: -#line 1348 "cmDependsJavaParser.y" - { + case 150: /* BlockStatementsopt: BlockStatements */ +#line 1345 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 3812 "cmDependsJavaParser.cxx" +#line 3987 "cmDependsJavaParser.cxx" break; - case 151: -#line 1358 "cmDependsJavaParser.y" - { + case 151: /* BlockStatements: BlockStatement */ +#line 1355 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 3824 "cmDependsJavaParser.cxx" +#line 3999 "cmDependsJavaParser.cxx" break; - case 152: -#line 1367 "cmDependsJavaParser.y" - { + case 152: /* BlockStatements: BlockStatements BlockStatement */ +#line 1364 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(2); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 3836 "cmDependsJavaParser.cxx" +#line 4011 "cmDependsJavaParser.cxx" break; - case 153: -#line 1377 "cmDependsJavaParser.y" - { + case 153: /* BlockStatement: LocalVariableDeclarationStatement */ +#line 1374 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 3848 "cmDependsJavaParser.cxx" +#line 4023 "cmDependsJavaParser.cxx" break; - case 154: -#line 1386 "cmDependsJavaParser.y" - { + case 154: /* BlockStatement: Statement */ +#line 1383 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 3860 "cmDependsJavaParser.cxx" +#line 4035 "cmDependsJavaParser.cxx" break; - case 155: -#line 1395 "cmDependsJavaParser.y" - { + case 155: /* BlockStatement: ClassDeclaration */ +#line 1392 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 3872 "cmDependsJavaParser.cxx" +#line 4047 "cmDependsJavaParser.cxx" break; - case 156: -#line 1405 "cmDependsJavaParser.y" - { + case 156: /* LocalVariableDeclarationStatement: LocalVariableDeclaration jp_SEMICOL */ +#line 1402 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(2); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 3884 "cmDependsJavaParser.cxx" +#line 4059 "cmDependsJavaParser.cxx" break; - case 157: -#line 1415 "cmDependsJavaParser.y" - { + case 157: /* LocalVariableDeclaration: Modifiers Type VariableDeclarators */ +#line 1412 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(3); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 3896 "cmDependsJavaParser.cxx" +#line 4071 "cmDependsJavaParser.cxx" break; - case 158: -#line 1424 "cmDependsJavaParser.y" - { + case 158: /* LocalVariableDeclaration: Type VariableDeclarators */ +#line 1421 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(2); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 3908 "cmDependsJavaParser.cxx" +#line 4083 "cmDependsJavaParser.cxx" break; - case 159: -#line 1434 "cmDependsJavaParser.y" - { + case 159: /* Statement: StatementWithoutTrailingSubstatement */ +#line 1431 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 3920 "cmDependsJavaParser.cxx" +#line 4095 "cmDependsJavaParser.cxx" break; - case 160: -#line 1443 "cmDependsJavaParser.y" - { + case 160: /* Statement: LabeledStatement */ +#line 1440 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 3932 "cmDependsJavaParser.cxx" +#line 4107 "cmDependsJavaParser.cxx" break; - case 161: -#line 1452 "cmDependsJavaParser.y" - { + case 161: /* Statement: IfThenStatement */ +#line 1449 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 3944 "cmDependsJavaParser.cxx" +#line 4119 "cmDependsJavaParser.cxx" break; - case 162: -#line 1461 "cmDependsJavaParser.y" - { + case 162: /* Statement: IfThenElseStatement */ +#line 1458 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 3956 "cmDependsJavaParser.cxx" +#line 4131 "cmDependsJavaParser.cxx" break; - case 163: -#line 1470 "cmDependsJavaParser.y" - { + case 163: /* Statement: WhileStatement */ +#line 1467 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 3968 "cmDependsJavaParser.cxx" +#line 4143 "cmDependsJavaParser.cxx" break; - case 164: -#line 1479 "cmDependsJavaParser.y" - { + case 164: /* Statement: ForStatement */ +#line 1476 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 3980 "cmDependsJavaParser.cxx" +#line 4155 "cmDependsJavaParser.cxx" break; - case 165: -#line 1489 "cmDependsJavaParser.y" - { + case 165: /* StatementNoShortIf: StatementWithoutTrailingSubstatement */ +#line 1486 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 3992 "cmDependsJavaParser.cxx" +#line 4167 "cmDependsJavaParser.cxx" break; - case 166: -#line 1498 "cmDependsJavaParser.y" - { + case 166: /* StatementNoShortIf: LabeledStatementNoShortIf */ +#line 1495 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 4004 "cmDependsJavaParser.cxx" +#line 4179 "cmDependsJavaParser.cxx" break; - case 167: -#line 1507 "cmDependsJavaParser.y" - { + case 167: /* StatementNoShortIf: IfThenElseStatementNoShortIf */ +#line 1504 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 4016 "cmDependsJavaParser.cxx" +#line 4191 "cmDependsJavaParser.cxx" break; - case 168: -#line 1516 "cmDependsJavaParser.y" - { + case 168: /* StatementNoShortIf: WhileStatementNoShortIf */ +#line 1513 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 4028 "cmDependsJavaParser.cxx" +#line 4203 "cmDependsJavaParser.cxx" break; - case 169: -#line 1525 "cmDependsJavaParser.y" - { + case 169: /* StatementNoShortIf: ForStatementNoShortIf */ +#line 1522 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 4040 "cmDependsJavaParser.cxx" +#line 4215 "cmDependsJavaParser.cxx" break; - case 170: -#line 1535 "cmDependsJavaParser.y" - { + case 170: /* StatementWithoutTrailingSubstatement: Block */ +#line 1532 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 4052 "cmDependsJavaParser.cxx" +#line 4227 "cmDependsJavaParser.cxx" break; - case 171: -#line 1544 "cmDependsJavaParser.y" - { + case 171: /* StatementWithoutTrailingSubstatement: EmptyStatement */ +#line 1541 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 4064 "cmDependsJavaParser.cxx" +#line 4239 "cmDependsJavaParser.cxx" break; - case 172: -#line 1553 "cmDependsJavaParser.y" - { + case 172: /* StatementWithoutTrailingSubstatement: ExpressionStatement */ +#line 1550 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 4076 "cmDependsJavaParser.cxx" +#line 4251 "cmDependsJavaParser.cxx" break; - case 173: -#line 1562 "cmDependsJavaParser.y" - { + case 173: /* StatementWithoutTrailingSubstatement: SwitchStatement */ +#line 1559 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 4088 "cmDependsJavaParser.cxx" +#line 4263 "cmDependsJavaParser.cxx" break; - case 174: -#line 1571 "cmDependsJavaParser.y" - { + case 174: /* StatementWithoutTrailingSubstatement: DoStatement */ +#line 1568 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 4100 "cmDependsJavaParser.cxx" +#line 4275 "cmDependsJavaParser.cxx" break; - case 175: -#line 1580 "cmDependsJavaParser.y" - { + case 175: /* StatementWithoutTrailingSubstatement: BreakStatement */ +#line 1577 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 4112 "cmDependsJavaParser.cxx" +#line 4287 "cmDependsJavaParser.cxx" break; - case 176: -#line 1589 "cmDependsJavaParser.y" - { + case 176: /* StatementWithoutTrailingSubstatement: ContinueStatement */ +#line 1586 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 4124 "cmDependsJavaParser.cxx" +#line 4299 "cmDependsJavaParser.cxx" break; - case 177: -#line 1598 "cmDependsJavaParser.y" - { + case 177: /* StatementWithoutTrailingSubstatement: ReturnStatement */ +#line 1595 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 4136 "cmDependsJavaParser.cxx" +#line 4311 "cmDependsJavaParser.cxx" break; - case 178: -#line 1607 "cmDependsJavaParser.y" - { + case 178: /* StatementWithoutTrailingSubstatement: SynchronizedStatement */ +#line 1604 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 4148 "cmDependsJavaParser.cxx" +#line 4323 "cmDependsJavaParser.cxx" break; - case 179: -#line 1616 "cmDependsJavaParser.y" - { + case 179: /* StatementWithoutTrailingSubstatement: ThrowStatement */ +#line 1613 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 4160 "cmDependsJavaParser.cxx" +#line 4335 "cmDependsJavaParser.cxx" break; - case 180: -#line 1625 "cmDependsJavaParser.y" - { + case 180: /* StatementWithoutTrailingSubstatement: TryStatement */ +#line 1622 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 4172 "cmDependsJavaParser.cxx" +#line 4347 "cmDependsJavaParser.cxx" break; - case 181: -#line 1634 "cmDependsJavaParser.y" - { + case 181: /* StatementWithoutTrailingSubstatement: AssertStatement */ +#line 1631 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 4184 "cmDependsJavaParser.cxx" +#line 4359 "cmDependsJavaParser.cxx" break; - case 182: -#line 1644 "cmDependsJavaParser.y" - { + case 182: /* EmptyStatement: jp_SEMICOL */ +#line 1641 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 4196 "cmDependsJavaParser.cxx" +#line 4371 "cmDependsJavaParser.cxx" break; - case 183: -#line 1654 "cmDependsJavaParser.y" - { + case 183: /* LabeledStatement: Identifier jp_COLON Statement */ +#line 1651 "cmDependsJavaParser.y" +{ jpElementStart(3); yyGetParser->DeallocateParserType(&((yyvsp[-2].str))); jpCheckEmpty(3); @@ -4205,480 +4380,480 @@ yyreduce: yyGetParser->SetCurrentCombine(""); } -#line 4209 "cmDependsJavaParser.cxx" +#line 4384 "cmDependsJavaParser.cxx" break; - case 184: -#line 1665 "cmDependsJavaParser.y" - { + case 184: /* LabeledStatementNoShortIf: Identifier jp_COLON StatementNoShortIf */ +#line 1662 "cmDependsJavaParser.y" +{ jpElementStart(3); jpCheckEmpty(3); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 4221 "cmDependsJavaParser.cxx" +#line 4396 "cmDependsJavaParser.cxx" break; - case 185: -#line 1675 "cmDependsJavaParser.y" - { + case 185: /* ExpressionStatement: StatementExpression jp_SEMICOL */ +#line 1672 "cmDependsJavaParser.y" +{ jpElementStart(2); jpCheckEmpty(2); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 4233 "cmDependsJavaParser.cxx" +#line 4408 "cmDependsJavaParser.cxx" break; - case 186: -#line 1685 "cmDependsJavaParser.y" - { + case 186: /* StatementExpression: Assignment */ +#line 1682 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 4245 "cmDependsJavaParser.cxx" +#line 4420 "cmDependsJavaParser.cxx" break; - case 187: -#line 1694 "cmDependsJavaParser.y" - { + case 187: /* StatementExpression: PreIncrementExpression */ +#line 1691 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 4257 "cmDependsJavaParser.cxx" +#line 4432 "cmDependsJavaParser.cxx" break; - case 188: -#line 1703 "cmDependsJavaParser.y" - { + case 188: /* StatementExpression: PreDecrementExpression */ +#line 1700 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 4269 "cmDependsJavaParser.cxx" +#line 4444 "cmDependsJavaParser.cxx" break; - case 189: -#line 1712 "cmDependsJavaParser.y" - { + case 189: /* StatementExpression: PostIncrementExpression */ +#line 1709 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 4281 "cmDependsJavaParser.cxx" +#line 4456 "cmDependsJavaParser.cxx" break; - case 190: -#line 1721 "cmDependsJavaParser.y" - { + case 190: /* StatementExpression: PostDecrementExpression */ +#line 1718 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 4293 "cmDependsJavaParser.cxx" +#line 4468 "cmDependsJavaParser.cxx" break; - case 191: -#line 1730 "cmDependsJavaParser.y" - { + case 191: /* StatementExpression: MethodInvocation */ +#line 1727 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 4305 "cmDependsJavaParser.cxx" +#line 4480 "cmDependsJavaParser.cxx" break; - case 192: -#line 1739 "cmDependsJavaParser.y" - { + case 192: /* StatementExpression: ClassInstanceCreationExpression */ +#line 1736 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 4317 "cmDependsJavaParser.cxx" +#line 4492 "cmDependsJavaParser.cxx" break; - case 193: -#line 1749 "cmDependsJavaParser.y" - { + case 193: /* IfThenStatement: jp_IF jp_PARESTART Expression jp_PAREEND Statement */ +#line 1746 "cmDependsJavaParser.y" +{ jpElementStart(5); jpCheckEmpty(5); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 4329 "cmDependsJavaParser.cxx" +#line 4504 "cmDependsJavaParser.cxx" break; - case 194: -#line 1759 "cmDependsJavaParser.y" - { + case 194: /* IfThenElseStatement: jp_IF jp_PARESTART Expression jp_PAREEND StatementNoShortIf jp_ELSE Statement */ +#line 1756 "cmDependsJavaParser.y" +{ jpElementStart(7); jpCheckEmpty(7); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 4341 "cmDependsJavaParser.cxx" +#line 4516 "cmDependsJavaParser.cxx" break; - case 195: -#line 1769 "cmDependsJavaParser.y" - { + case 195: /* IfThenElseStatementNoShortIf: jp_IF jp_PARESTART Expression jp_PAREEND StatementNoShortIf jp_ELSE StatementNoShortIf */ +#line 1766 "cmDependsJavaParser.y" +{ jpElementStart(7); jpCheckEmpty(7); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 4353 "cmDependsJavaParser.cxx" +#line 4528 "cmDependsJavaParser.cxx" break; - case 196: -#line 1779 "cmDependsJavaParser.y" - { + case 196: /* SwitchStatement: jp_SWITCH jp_PARESTART Expression jp_PAREEND SwitchBlock */ +#line 1776 "cmDependsJavaParser.y" +{ jpElementStart(5); } -#line 4362 "cmDependsJavaParser.cxx" +#line 4537 "cmDependsJavaParser.cxx" break; - case 197: -#line 1786 "cmDependsJavaParser.y" - { + case 197: /* SwitchBlock: jp_CURLYSTART SwitchBlockStatementGroups SwitchLabelsopt jp_CURLYEND */ +#line 1783 "cmDependsJavaParser.y" +{ jpElementStart(4); } -#line 4371 "cmDependsJavaParser.cxx" +#line 4546 "cmDependsJavaParser.cxx" break; - case 198: -#line 1792 "cmDependsJavaParser.y" - { + case 198: /* SwitchLabelsopt: %empty */ +#line 1789 "cmDependsJavaParser.y" +{ jpElementStart(0); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 4382 "cmDependsJavaParser.cxx" +#line 4557 "cmDependsJavaParser.cxx" break; - case 199: -#line 1800 "cmDependsJavaParser.y" - { + case 199: /* SwitchLabelsopt: SwitchLabels */ +#line 1797 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 4394 "cmDependsJavaParser.cxx" +#line 4569 "cmDependsJavaParser.cxx" break; - case 200: -#line 1809 "cmDependsJavaParser.y" - { + case 200: /* SwitchBlockStatementGroups: %empty */ +#line 1806 "cmDependsJavaParser.y" +{ jpElementStart(0); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 4405 "cmDependsJavaParser.cxx" +#line 4580 "cmDependsJavaParser.cxx" break; - case 201: -#line 1817 "cmDependsJavaParser.y" - { + case 201: /* SwitchBlockStatementGroups: SwitchBlockStatementGroups SwitchBlockStatementGroup */ +#line 1814 "cmDependsJavaParser.y" +{ jpElementStart(2); jpCheckEmpty(2); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 4417 "cmDependsJavaParser.cxx" +#line 4592 "cmDependsJavaParser.cxx" break; - case 202: -#line 1827 "cmDependsJavaParser.y" - { + case 202: /* SwitchBlockStatementGroup: SwitchLabels BlockStatements */ +#line 1824 "cmDependsJavaParser.y" +{ jpElementStart(2); jpCheckEmpty(2); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 4429 "cmDependsJavaParser.cxx" +#line 4604 "cmDependsJavaParser.cxx" break; - case 203: -#line 1837 "cmDependsJavaParser.y" - { + case 203: /* SwitchLabels: SwitchLabel */ +#line 1834 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 4441 "cmDependsJavaParser.cxx" +#line 4616 "cmDependsJavaParser.cxx" break; - case 204: -#line 1846 "cmDependsJavaParser.y" - { + case 204: /* SwitchLabels: SwitchLabels SwitchLabel */ +#line 1843 "cmDependsJavaParser.y" +{ jpElementStart(2); jpCheckEmpty(2); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 4453 "cmDependsJavaParser.cxx" +#line 4628 "cmDependsJavaParser.cxx" break; - case 205: -#line 1856 "cmDependsJavaParser.y" - { + case 205: /* SwitchLabel: jp_CASE ConstantExpression jp_COLON */ +#line 1853 "cmDependsJavaParser.y" +{ jpElementStart(3); jpCheckEmpty(3); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 4465 "cmDependsJavaParser.cxx" +#line 4640 "cmDependsJavaParser.cxx" break; - case 206: -#line 1865 "cmDependsJavaParser.y" - { + case 206: /* SwitchLabel: jp_DEFAULT jp_COLON */ +#line 1862 "cmDependsJavaParser.y" +{ jpElementStart(2); jpCheckEmpty(2); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 4477 "cmDependsJavaParser.cxx" +#line 4652 "cmDependsJavaParser.cxx" break; - case 207: -#line 1875 "cmDependsJavaParser.y" - { + case 207: /* WhileStatement: jp_WHILE jp_PARESTART Expression jp_PAREEND Statement */ +#line 1872 "cmDependsJavaParser.y" +{ jpElementStart(5); } -#line 4486 "cmDependsJavaParser.cxx" +#line 4661 "cmDependsJavaParser.cxx" break; - case 208: -#line 1882 "cmDependsJavaParser.y" - { + case 208: /* WhileStatementNoShortIf: jp_WHILE jp_PARESTART Expression jp_PAREEND StatementNoShortIf */ +#line 1879 "cmDependsJavaParser.y" +{ jpElementStart(5); } -#line 4495 "cmDependsJavaParser.cxx" +#line 4670 "cmDependsJavaParser.cxx" break; - case 209: -#line 1889 "cmDependsJavaParser.y" - { + case 209: /* DoStatement: jp_DO Statement jp_WHILE jp_PARESTART Expression jp_PAREEND jp_SEMICOL */ +#line 1886 "cmDependsJavaParser.y" +{ jpElementStart(7); } -#line 4504 "cmDependsJavaParser.cxx" +#line 4679 "cmDependsJavaParser.cxx" break; - case 210: -#line 1897 "cmDependsJavaParser.y" - { + case 210: /* ForStatement: jp_FOR jp_PARESTART ForInitopt jp_SEMICOL Expressionopt jp_SEMICOL ForUpdateopt jp_PAREEND Statement */ +#line 1894 "cmDependsJavaParser.y" +{ jpElementStart(9); } -#line 4513 "cmDependsJavaParser.cxx" +#line 4688 "cmDependsJavaParser.cxx" break; - case 211: -#line 1903 "cmDependsJavaParser.y" - { + case 211: /* ForUpdateopt: %empty */ +#line 1900 "cmDependsJavaParser.y" +{ jpElementStart(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 4524 "cmDependsJavaParser.cxx" +#line 4699 "cmDependsJavaParser.cxx" break; - case 212: -#line 1911 "cmDependsJavaParser.y" - { + case 212: /* ForUpdateopt: ForUpdate */ +#line 1908 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 4536 "cmDependsJavaParser.cxx" +#line 4711 "cmDependsJavaParser.cxx" break; - case 213: -#line 1920 "cmDependsJavaParser.y" - { + case 213: /* ForInitopt: %empty */ +#line 1917 "cmDependsJavaParser.y" +{ jpElementStart(0); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 4547 "cmDependsJavaParser.cxx" +#line 4722 "cmDependsJavaParser.cxx" break; - case 214: -#line 1928 "cmDependsJavaParser.y" - { + case 214: /* ForInitopt: ForInit */ +#line 1925 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 4559 "cmDependsJavaParser.cxx" +#line 4734 "cmDependsJavaParser.cxx" break; - case 215: -#line 1939 "cmDependsJavaParser.y" - { + case 215: /* ForStatementNoShortIf: jp_FOR jp_PARESTART ForInitopt jp_SEMICOL Expressionopt jp_SEMICOL ForUpdateopt jp_PAREEND StatementNoShortIf */ +#line 1936 "cmDependsJavaParser.y" +{ jpElementStart(9); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 4570 "cmDependsJavaParser.cxx" +#line 4745 "cmDependsJavaParser.cxx" break; - case 216: -#line 1947 "cmDependsJavaParser.y" - { + case 216: /* Expressionopt: %empty */ +#line 1944 "cmDependsJavaParser.y" +{ jpElementStart(0); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 4581 "cmDependsJavaParser.cxx" +#line 4756 "cmDependsJavaParser.cxx" break; - case 217: -#line 1955 "cmDependsJavaParser.y" - { + case 217: /* Expressionopt: Expression */ +#line 1952 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 4593 "cmDependsJavaParser.cxx" +#line 4768 "cmDependsJavaParser.cxx" break; - case 218: -#line 1965 "cmDependsJavaParser.y" - { + case 218: /* ForInit: StatementExpressionList */ +#line 1962 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 4605 "cmDependsJavaParser.cxx" +#line 4780 "cmDependsJavaParser.cxx" break; - case 219: -#line 1974 "cmDependsJavaParser.y" - { + case 219: /* ForInit: LocalVariableDeclaration */ +#line 1971 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 4617 "cmDependsJavaParser.cxx" +#line 4792 "cmDependsJavaParser.cxx" break; - case 220: -#line 1984 "cmDependsJavaParser.y" - { + case 220: /* ForUpdate: StatementExpressionList */ +#line 1981 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 4629 "cmDependsJavaParser.cxx" +#line 4804 "cmDependsJavaParser.cxx" break; - case 221: -#line 1994 "cmDependsJavaParser.y" - { + case 221: /* StatementExpressionList: StatementExpression */ +#line 1991 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 4641 "cmDependsJavaParser.cxx" +#line 4816 "cmDependsJavaParser.cxx" break; - case 222: -#line 2003 "cmDependsJavaParser.y" - { + case 222: /* StatementExpressionList: StatementExpressionList jp_COMMA StatementExpression */ +#line 2000 "cmDependsJavaParser.y" +{ jpElementStart(3); jpCheckEmpty(3); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 4653 "cmDependsJavaParser.cxx" +#line 4828 "cmDependsJavaParser.cxx" break; - case 223: -#line 2013 "cmDependsJavaParser.y" - { + case 223: /* AssertStatement: jp_ASSERT Expression jp_SEMICOL */ +#line 2010 "cmDependsJavaParser.y" +{ jpElementStart(3); jpCheckEmpty(3); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 4665 "cmDependsJavaParser.cxx" +#line 4840 "cmDependsJavaParser.cxx" break; - case 224: -#line 2022 "cmDependsJavaParser.y" - { + case 224: /* AssertStatement: jp_ASSERT Expression jp_COLON Expression jp_SEMICOL */ +#line 2019 "cmDependsJavaParser.y" +{ jpElementStart(5); jpCheckEmpty(5); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 4677 "cmDependsJavaParser.cxx" +#line 4852 "cmDependsJavaParser.cxx" break; - case 225: -#line 2032 "cmDependsJavaParser.y" - { + case 225: /* BreakStatement: jp_BREAK Identifieropt jp_SEMICOL */ +#line 2029 "cmDependsJavaParser.y" +{ jpElementStart(3); yyGetParser->DeallocateParserType(&((yyvsp[-1].str))); jpCheckEmpty(3); @@ -4686,32 +4861,32 @@ yyreduce: yyGetParser->SetCurrentCombine(""); } -#line 4690 "cmDependsJavaParser.cxx" +#line 4865 "cmDependsJavaParser.cxx" break; - case 226: -#line 2042 "cmDependsJavaParser.y" - { + case 226: /* Identifieropt: %empty */ +#line 2039 "cmDependsJavaParser.y" +{ jpElementStart(0); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 4701 "cmDependsJavaParser.cxx" +#line 4876 "cmDependsJavaParser.cxx" break; - case 227: -#line 2050 "cmDependsJavaParser.y" - { + case 227: /* Identifieropt: Identifier */ +#line 2047 "cmDependsJavaParser.y" +{ jpElementStart(1); } -#line 4710 "cmDependsJavaParser.cxx" +#line 4885 "cmDependsJavaParser.cxx" break; - case 228: -#line 2057 "cmDependsJavaParser.y" - { + case 228: /* ContinueStatement: jp_CONTINUE Identifieropt jp_SEMICOL */ +#line 2054 "cmDependsJavaParser.y" +{ jpElementStart(3); yyGetParser->DeallocateParserType(&((yyvsp[-1].str))); jpCheckEmpty(3); @@ -4719,452 +4894,452 @@ yyreduce: yyGetParser->SetCurrentCombine(""); } -#line 4723 "cmDependsJavaParser.cxx" +#line 4898 "cmDependsJavaParser.cxx" break; - case 229: -#line 2068 "cmDependsJavaParser.y" - { + case 229: /* ReturnStatement: jp_RETURN Expressionopt jp_SEMICOL */ +#line 2065 "cmDependsJavaParser.y" +{ jpElementStart(3); jpCheckEmpty(3); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 4735 "cmDependsJavaParser.cxx" +#line 4910 "cmDependsJavaParser.cxx" break; - case 230: -#line 2078 "cmDependsJavaParser.y" - { + case 230: /* ThrowStatement: jp_THROW Expression jp_SEMICOL */ +#line 2075 "cmDependsJavaParser.y" +{ jpElementStart(3); jpCheckEmpty(3); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 4747 "cmDependsJavaParser.cxx" +#line 4922 "cmDependsJavaParser.cxx" break; - case 231: -#line 2088 "cmDependsJavaParser.y" - { + case 231: /* SynchronizedStatement: jp_SYNCHRONIZED jp_PARESTART Expression jp_PAREEND Block */ +#line 2085 "cmDependsJavaParser.y" +{ jpElementStart(5); jpCheckEmpty(5); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 4759 "cmDependsJavaParser.cxx" +#line 4934 "cmDependsJavaParser.cxx" break; - case 232: -#line 2098 "cmDependsJavaParser.y" - { + case 232: /* TryStatement: jp_TRY Block Catches */ +#line 2095 "cmDependsJavaParser.y" +{ jpElementStart(3); jpCheckEmpty(3); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 4771 "cmDependsJavaParser.cxx" +#line 4946 "cmDependsJavaParser.cxx" break; - case 233: -#line 2107 "cmDependsJavaParser.y" - { + case 233: /* TryStatement: jp_TRY Block Catchesopt Finally */ +#line 2104 "cmDependsJavaParser.y" +{ jpElementStart(4); jpCheckEmpty(4); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 4783 "cmDependsJavaParser.cxx" +#line 4958 "cmDependsJavaParser.cxx" break; - case 234: -#line 2116 "cmDependsJavaParser.y" - { + case 234: /* Catchesopt: %empty */ +#line 2113 "cmDependsJavaParser.y" +{ jpElementStart(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 4794 "cmDependsJavaParser.cxx" +#line 4969 "cmDependsJavaParser.cxx" break; - case 235: -#line 2124 "cmDependsJavaParser.y" - { + case 235: /* Catchesopt: Catches */ +#line 2121 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 4806 "cmDependsJavaParser.cxx" +#line 4981 "cmDependsJavaParser.cxx" break; - case 236: -#line 2134 "cmDependsJavaParser.y" - { + case 236: /* Catches: CatchClause */ +#line 2131 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 4818 "cmDependsJavaParser.cxx" +#line 4993 "cmDependsJavaParser.cxx" break; - case 237: -#line 2143 "cmDependsJavaParser.y" - { + case 237: /* Catches: Catches CatchClause */ +#line 2140 "cmDependsJavaParser.y" +{ jpElementStart(2); jpCheckEmpty(2); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 4830 "cmDependsJavaParser.cxx" +#line 5005 "cmDependsJavaParser.cxx" break; - case 238: -#line 2153 "cmDependsJavaParser.y" - { + case 238: /* CatchClause: jp_CATCH jp_PARESTART FormalParameter jp_PAREEND Block */ +#line 2150 "cmDependsJavaParser.y" +{ jpElementStart(5); } -#line 4839 "cmDependsJavaParser.cxx" +#line 5014 "cmDependsJavaParser.cxx" break; - case 239: -#line 2160 "cmDependsJavaParser.y" - { + case 239: /* Finally: jp_FINALLY Block */ +#line 2157 "cmDependsJavaParser.y" +{ jpElementStart(2); jpCheckEmpty(2); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 4851 "cmDependsJavaParser.cxx" +#line 5026 "cmDependsJavaParser.cxx" break; - case 240: -#line 2170 "cmDependsJavaParser.y" - { + case 240: /* Primary: PrimaryNoNewArray */ +#line 2167 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 4863 "cmDependsJavaParser.cxx" +#line 5038 "cmDependsJavaParser.cxx" break; - case 241: -#line 2179 "cmDependsJavaParser.y" - { + case 241: /* Primary: ArrayCreationExpression */ +#line 2176 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 4875 "cmDependsJavaParser.cxx" +#line 5050 "cmDependsJavaParser.cxx" break; - case 242: -#line 2189 "cmDependsJavaParser.y" - { + case 242: /* PrimaryNoNewArray: Literal */ +#line 2186 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 4887 "cmDependsJavaParser.cxx" +#line 5062 "cmDependsJavaParser.cxx" break; - case 243: -#line 2198 "cmDependsJavaParser.y" - { + case 243: /* PrimaryNoNewArray: jp_THIS */ +#line 2195 "cmDependsJavaParser.y" +{ jpElementStart(1); } -#line 4896 "cmDependsJavaParser.cxx" +#line 5071 "cmDependsJavaParser.cxx" break; - case 244: -#line 2204 "cmDependsJavaParser.y" - { + case 244: /* PrimaryNoNewArray: jp_PARESTART Expression jp_PAREEND */ +#line 2201 "cmDependsJavaParser.y" +{ jpElementStart(3); jpCheckEmpty(3); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 4908 "cmDependsJavaParser.cxx" +#line 5083 "cmDependsJavaParser.cxx" break; - case 245: -#line 2213 "cmDependsJavaParser.y" - { + case 245: /* PrimaryNoNewArray: ClassInstanceCreationExpression */ +#line 2210 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 4920 "cmDependsJavaParser.cxx" +#line 5095 "cmDependsJavaParser.cxx" break; - case 246: -#line 2222 "cmDependsJavaParser.y" - { + case 246: /* PrimaryNoNewArray: FieldAccess */ +#line 2219 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 4932 "cmDependsJavaParser.cxx" +#line 5107 "cmDependsJavaParser.cxx" break; - case 247: -#line 2231 "cmDependsJavaParser.y" - { + case 247: /* PrimaryNoNewArray: MethodInvocation */ +#line 2228 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 4944 "cmDependsJavaParser.cxx" +#line 5119 "cmDependsJavaParser.cxx" break; - case 248: -#line 2240 "cmDependsJavaParser.y" - { + case 248: /* PrimaryNoNewArray: ArrayAccess */ +#line 2237 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 4956 "cmDependsJavaParser.cxx" +#line 5131 "cmDependsJavaParser.cxx" break; - case 249: -#line 2250 "cmDependsJavaParser.y" - { + case 249: /* ClassInstanceCreationExpression: New ClassType jp_PARESTART ArgumentListopt jp_PAREEND ClassBodyOpt */ +#line 2247 "cmDependsJavaParser.y" +{ jpElementStart(6); jpCheckEmpty(6); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 4968 "cmDependsJavaParser.cxx" +#line 5143 "cmDependsJavaParser.cxx" break; - case 250: -#line 2259 "cmDependsJavaParser.y" - { + case 250: /* ClassBodyOpt: %empty */ +#line 2256 "cmDependsJavaParser.y" +{ jpElementStart(0); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 4979 "cmDependsJavaParser.cxx" +#line 5154 "cmDependsJavaParser.cxx" break; - case 251: -#line 2267 "cmDependsJavaParser.y" - { + case 251: /* ClassBodyOpt: ClassBody */ +#line 2264 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 4991 "cmDependsJavaParser.cxx" +#line 5166 "cmDependsJavaParser.cxx" break; - case 252: -#line 2276 "cmDependsJavaParser.y" - { + case 252: /* ArgumentListopt: %empty */ +#line 2273 "cmDependsJavaParser.y" +{ jpElementStart(0); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 5002 "cmDependsJavaParser.cxx" +#line 5177 "cmDependsJavaParser.cxx" break; - case 253: -#line 2284 "cmDependsJavaParser.y" - { + case 253: /* ArgumentListopt: ArgumentList */ +#line 2281 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 5014 "cmDependsJavaParser.cxx" +#line 5189 "cmDependsJavaParser.cxx" break; - case 254: -#line 2294 "cmDependsJavaParser.y" - { + case 254: /* ArgumentList: Expression */ +#line 2291 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 5026 "cmDependsJavaParser.cxx" +#line 5201 "cmDependsJavaParser.cxx" break; - case 255: -#line 2303 "cmDependsJavaParser.y" - { + case 255: /* ArgumentList: ArgumentList jp_COMMA Expression */ +#line 2300 "cmDependsJavaParser.y" +{ jpElementStart(3); jpCheckEmpty(3); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 5038 "cmDependsJavaParser.cxx" +#line 5213 "cmDependsJavaParser.cxx" break; - case 256: -#line 2313 "cmDependsJavaParser.y" - { + case 256: /* ArrayCreationExpression: New PrimitiveType DimExprs Dimsopt */ +#line 2310 "cmDependsJavaParser.y" +{ jpElementStart(4); jpCheckEmpty(4); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 5050 "cmDependsJavaParser.cxx" +#line 5225 "cmDependsJavaParser.cxx" break; - case 257: -#line 2322 "cmDependsJavaParser.y" - { + case 257: /* ArrayCreationExpression: New ClassOrInterfaceType DimExprs Dimsopt */ +#line 2319 "cmDependsJavaParser.y" +{ jpElementStart(4); jpCheckEmpty(4); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 5062 "cmDependsJavaParser.cxx" +#line 5237 "cmDependsJavaParser.cxx" break; - case 258: -#line 2331 "cmDependsJavaParser.y" - { + case 258: /* ArrayCreationExpression: New PrimitiveType Dims ArrayInitializer */ +#line 2328 "cmDependsJavaParser.y" +{ jpElementStart(4); jpCheckEmpty(4); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 5074 "cmDependsJavaParser.cxx" +#line 5249 "cmDependsJavaParser.cxx" break; - case 259: -#line 2340 "cmDependsJavaParser.y" - { + case 259: /* ArrayCreationExpression: New ClassOrInterfaceType Dims ArrayInitializer */ +#line 2337 "cmDependsJavaParser.y" +{ jpElementStart(4); jpCheckEmpty(4); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 5086 "cmDependsJavaParser.cxx" +#line 5261 "cmDependsJavaParser.cxx" break; - case 260: -#line 2349 "cmDependsJavaParser.y" - { + case 260: /* Dimsopt: %empty */ +#line 2346 "cmDependsJavaParser.y" +{ jpElementStart(0); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 5097 "cmDependsJavaParser.cxx" +#line 5272 "cmDependsJavaParser.cxx" break; - case 261: -#line 2357 "cmDependsJavaParser.y" - { + case 261: /* Dimsopt: Dims */ +#line 2354 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 5109 "cmDependsJavaParser.cxx" +#line 5284 "cmDependsJavaParser.cxx" break; - case 262: -#line 2367 "cmDependsJavaParser.y" - { + case 262: /* DimExprs: DimExpr */ +#line 2364 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 5121 "cmDependsJavaParser.cxx" +#line 5296 "cmDependsJavaParser.cxx" break; - case 263: -#line 2376 "cmDependsJavaParser.y" - { + case 263: /* DimExprs: DimExprs DimExpr */ +#line 2373 "cmDependsJavaParser.y" +{ jpElementStart(2); jpCheckEmpty(2); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 5133 "cmDependsJavaParser.cxx" +#line 5308 "cmDependsJavaParser.cxx" break; - case 264: -#line 2386 "cmDependsJavaParser.y" - { + case 264: /* DimExpr: jp_BRACKETSTART Expression jp_BRACKETEND */ +#line 2383 "cmDependsJavaParser.y" +{ jpElementStart(3); jpCheckEmpty(3); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 5145 "cmDependsJavaParser.cxx" +#line 5320 "cmDependsJavaParser.cxx" break; - case 265: -#line 2396 "cmDependsJavaParser.y" - { + case 265: /* Dims: jp_BRACKETSTART jp_BRACKETEND */ +#line 2393 "cmDependsJavaParser.y" +{ jpElementStart(2); } -#line 5154 "cmDependsJavaParser.cxx" +#line 5329 "cmDependsJavaParser.cxx" break; - case 266: -#line 2402 "cmDependsJavaParser.y" - { + case 266: /* Dims: Dims jp_BRACKETSTART jp_BRACKETEND */ +#line 2399 "cmDependsJavaParser.y" +{ jpElementStart(3); } -#line 5163 "cmDependsJavaParser.cxx" +#line 5338 "cmDependsJavaParser.cxx" break; - case 267: -#line 2409 "cmDependsJavaParser.y" - { + case 267: /* FieldAccess: Primary jp_DOT Identifier */ +#line 2406 "cmDependsJavaParser.y" +{ jpElementStart(3); yyGetParser->DeallocateParserType(&((yyvsp[0].str))); jpCheckEmpty(3); @@ -5172,12 +5347,12 @@ yyreduce: yyGetParser->SetCurrentCombine(""); } -#line 5176 "cmDependsJavaParser.cxx" +#line 5351 "cmDependsJavaParser.cxx" break; - case 268: -#line 2419 "cmDependsJavaParser.y" - { + case 268: /* FieldAccess: jp_SUPER jp_DOT Identifier */ +#line 2416 "cmDependsJavaParser.y" +{ jpElementStart(3); yyGetParser->DeallocateParserType(&((yyvsp[0].str))); jpCheckEmpty(3); @@ -5185,12 +5360,12 @@ yyreduce: yyGetParser->SetCurrentCombine(""); } -#line 5189 "cmDependsJavaParser.cxx" +#line 5364 "cmDependsJavaParser.cxx" break; - case 269: -#line 2429 "cmDependsJavaParser.y" - { + case 269: /* FieldAccess: jp_THIS jp_DOT Identifier */ +#line 2426 "cmDependsJavaParser.y" +{ jpElementStart(3); yyGetParser->DeallocateParserType(&((yyvsp[0].str))); jpCheckEmpty(3); @@ -5198,12 +5373,12 @@ yyreduce: yyGetParser->SetCurrentCombine(""); } -#line 5202 "cmDependsJavaParser.cxx" +#line 5377 "cmDependsJavaParser.cxx" break; - case 270: -#line 2439 "cmDependsJavaParser.y" - { + case 270: /* FieldAccess: Primary jp_DOT jp_THIS */ +#line 2436 "cmDependsJavaParser.y" +{ jpElementStart(3); yyGetParser->DeallocateParserType(&((yyvsp[0].str))); jpCheckEmpty(3); @@ -5211,12 +5386,12 @@ yyreduce: yyGetParser->SetCurrentCombine(""); } -#line 5215 "cmDependsJavaParser.cxx" +#line 5390 "cmDependsJavaParser.cxx" break; - case 271: -#line 2450 "cmDependsJavaParser.y" - { + case 271: /* MethodInvocation: Name jp_PARESTART ArgumentListopt jp_PAREEND */ +#line 2447 "cmDependsJavaParser.y" +{ jpElementStart(4); yyGetParser->DeallocateParserType(&((yyvsp[-3].str))); jpCheckEmpty(4); @@ -5224,12 +5399,12 @@ yyreduce: yyGetParser->SetCurrentCombine(""); } -#line 5228 "cmDependsJavaParser.cxx" +#line 5403 "cmDependsJavaParser.cxx" break; - case 272: -#line 2460 "cmDependsJavaParser.y" - { + case 272: /* MethodInvocation: Primary jp_DOT Identifier jp_PARESTART ArgumentListopt jp_PAREEND */ +#line 2457 "cmDependsJavaParser.y" +{ jpElementStart(6); yyGetParser->DeallocateParserType(&((yyvsp[-5].str))); yyGetParser->DeallocateParserType(&((yyvsp[-3].str))); @@ -5238,12 +5413,12 @@ yyreduce: yyGetParser->SetCurrentCombine(""); } -#line 5242 "cmDependsJavaParser.cxx" +#line 5417 "cmDependsJavaParser.cxx" break; - case 273: -#line 2471 "cmDependsJavaParser.y" - { + case 273: /* MethodInvocation: jp_SUPER jp_DOT Identifier jp_PARESTART ArgumentListopt jp_PAREEND */ +#line 2468 "cmDependsJavaParser.y" +{ jpElementStart(6); yyGetParser->DeallocateParserType(&((yyvsp[-3].str))); jpCheckEmpty(6); @@ -5251,12 +5426,12 @@ yyreduce: yyGetParser->SetCurrentCombine(""); } -#line 5255 "cmDependsJavaParser.cxx" +#line 5430 "cmDependsJavaParser.cxx" break; - case 274: -#line 2481 "cmDependsJavaParser.y" - { + case 274: /* MethodInvocation: jp_THIS jp_DOT Identifier jp_PARESTART ArgumentListopt jp_PAREEND */ +#line 2478 "cmDependsJavaParser.y" +{ jpElementStart(6); yyGetParser->DeallocateParserType(&((yyvsp[-3].str))); jpCheckEmpty(6); @@ -5264,12 +5439,12 @@ yyreduce: yyGetParser->SetCurrentCombine(""); } -#line 5268 "cmDependsJavaParser.cxx" +#line 5443 "cmDependsJavaParser.cxx" break; - case 275: -#line 2492 "cmDependsJavaParser.y" - { + case 275: /* ArrayAccess: Name jp_BRACKETSTART Expression jp_BRACKETEND */ +#line 2489 "cmDependsJavaParser.y" +{ jpElementStart(4); yyGetParser->DeallocateParserType(&((yyvsp[-3].str))); jpCheckEmpty(4); @@ -5277,693 +5452,693 @@ yyreduce: yyGetParser->SetCurrentCombine(""); } -#line 5281 "cmDependsJavaParser.cxx" +#line 5456 "cmDependsJavaParser.cxx" break; - case 276: -#line 2502 "cmDependsJavaParser.y" - { + case 276: /* ArrayAccess: PrimaryNoNewArray jp_BRACKETSTART Expression jp_BRACKETEND */ +#line 2499 "cmDependsJavaParser.y" +{ jpElementStart(4); jpCheckEmpty(4); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 5293 "cmDependsJavaParser.cxx" +#line 5468 "cmDependsJavaParser.cxx" break; - case 277: -#line 2512 "cmDependsJavaParser.y" - { + case 277: /* PostfixExpression: Primary */ +#line 2509 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 5305 "cmDependsJavaParser.cxx" +#line 5480 "cmDependsJavaParser.cxx" break; - case 278: -#line 2521 "cmDependsJavaParser.y" - { + case 278: /* PostfixExpression: Name */ +#line 2518 "cmDependsJavaParser.y" +{ jpElementStart(1); yyGetParser->DeallocateParserType(&((yyvsp[0].str))); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 5317 "cmDependsJavaParser.cxx" +#line 5492 "cmDependsJavaParser.cxx" break; - case 279: -#line 2530 "cmDependsJavaParser.y" - { + case 279: /* PostfixExpression: ArrayType jp_DOT jp_CLASS */ +#line 2527 "cmDependsJavaParser.y" +{ jpElementStart(3); jpCheckEmpty(3); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 5329 "cmDependsJavaParser.cxx" +#line 5504 "cmDependsJavaParser.cxx" break; - case 280: -#line 2539 "cmDependsJavaParser.y" - { + case 280: /* PostfixExpression: PostIncrementExpression */ +#line 2536 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 5341 "cmDependsJavaParser.cxx" +#line 5516 "cmDependsJavaParser.cxx" break; - case 281: -#line 2548 "cmDependsJavaParser.y" - { + case 281: /* PostfixExpression: PostDecrementExpression */ +#line 2545 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 5353 "cmDependsJavaParser.cxx" +#line 5528 "cmDependsJavaParser.cxx" break; - case 282: -#line 2558 "cmDependsJavaParser.y" - { + case 282: /* PostIncrementExpression: PostfixExpression jp_PLUSPLUS */ +#line 2555 "cmDependsJavaParser.y" +{ jpElementStart(2); jpCheckEmpty(2); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 5365 "cmDependsJavaParser.cxx" +#line 5540 "cmDependsJavaParser.cxx" break; - case 283: -#line 2568 "cmDependsJavaParser.y" - { + case 283: /* PostDecrementExpression: PostfixExpression jp_MINUSMINUS */ +#line 2565 "cmDependsJavaParser.y" +{ jpElementStart(2); jpCheckEmpty(2); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 5377 "cmDependsJavaParser.cxx" +#line 5552 "cmDependsJavaParser.cxx" break; - case 284: -#line 2578 "cmDependsJavaParser.y" - { + case 284: /* UnaryExpression: PreIncrementExpression */ +#line 2575 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 5389 "cmDependsJavaParser.cxx" +#line 5564 "cmDependsJavaParser.cxx" break; - case 285: -#line 2587 "cmDependsJavaParser.y" - { + case 285: /* UnaryExpression: PreDecrementExpression */ +#line 2584 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 5401 "cmDependsJavaParser.cxx" +#line 5576 "cmDependsJavaParser.cxx" break; - case 286: -#line 2596 "cmDependsJavaParser.y" - { + case 286: /* UnaryExpression: jp_PLUS UnaryExpression */ +#line 2593 "cmDependsJavaParser.y" +{ jpElementStart(2); jpCheckEmpty(2); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 5413 "cmDependsJavaParser.cxx" +#line 5588 "cmDependsJavaParser.cxx" break; - case 287: -#line 2605 "cmDependsJavaParser.y" - { + case 287: /* UnaryExpression: jp_MINUS UnaryExpression */ +#line 2602 "cmDependsJavaParser.y" +{ jpElementStart(2); jpCheckEmpty(2); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 5425 "cmDependsJavaParser.cxx" +#line 5600 "cmDependsJavaParser.cxx" break; - case 288: -#line 2614 "cmDependsJavaParser.y" - { + case 288: /* UnaryExpression: UnaryExpressionNotPlusMinus */ +#line 2611 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 5437 "cmDependsJavaParser.cxx" +#line 5612 "cmDependsJavaParser.cxx" break; - case 289: -#line 2624 "cmDependsJavaParser.y" - { + case 289: /* PreIncrementExpression: jp_PLUSPLUS UnaryExpression */ +#line 2621 "cmDependsJavaParser.y" +{ jpElementStart(2); jpCheckEmpty(2); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 5449 "cmDependsJavaParser.cxx" +#line 5624 "cmDependsJavaParser.cxx" break; - case 290: -#line 2634 "cmDependsJavaParser.y" - { + case 290: /* PreDecrementExpression: jp_MINUSMINUS UnaryExpression */ +#line 2631 "cmDependsJavaParser.y" +{ jpElementStart(2); jpCheckEmpty(2); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 5461 "cmDependsJavaParser.cxx" +#line 5636 "cmDependsJavaParser.cxx" break; - case 291: -#line 2644 "cmDependsJavaParser.y" - { + case 291: /* UnaryExpressionNotPlusMinus: PostfixExpression */ +#line 2641 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 5473 "cmDependsJavaParser.cxx" +#line 5648 "cmDependsJavaParser.cxx" break; - case 292: -#line 2653 "cmDependsJavaParser.y" - { + case 292: /* UnaryExpressionNotPlusMinus: jp_TILDE UnaryExpression */ +#line 2650 "cmDependsJavaParser.y" +{ jpElementStart(2); jpCheckEmpty(2); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 5485 "cmDependsJavaParser.cxx" +#line 5660 "cmDependsJavaParser.cxx" break; - case 293: -#line 2662 "cmDependsJavaParser.y" - { + case 293: /* UnaryExpressionNotPlusMinus: jp_EXCLAMATION UnaryExpression */ +#line 2659 "cmDependsJavaParser.y" +{ jpElementStart(2); jpCheckEmpty(2); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 5497 "cmDependsJavaParser.cxx" +#line 5672 "cmDependsJavaParser.cxx" break; - case 294: -#line 2671 "cmDependsJavaParser.y" - { + case 294: /* UnaryExpressionNotPlusMinus: CastExpression */ +#line 2668 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 5509 "cmDependsJavaParser.cxx" +#line 5684 "cmDependsJavaParser.cxx" break; - case 295: -#line 2681 "cmDependsJavaParser.y" - { + case 295: /* CastExpression: jp_PARESTART PrimitiveType Dimsopt jp_PAREEND UnaryExpression */ +#line 2678 "cmDependsJavaParser.y" +{ jpElementStart(5); jpCheckEmpty(5); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 5521 "cmDependsJavaParser.cxx" +#line 5696 "cmDependsJavaParser.cxx" break; - case 296: -#line 2690 "cmDependsJavaParser.y" - { + case 296: /* CastExpression: jp_PARESTART Expression jp_PAREEND UnaryExpressionNotPlusMinus */ +#line 2687 "cmDependsJavaParser.y" +{ jpElementStart(4); jpCheckEmpty(4); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 5533 "cmDependsJavaParser.cxx" +#line 5708 "cmDependsJavaParser.cxx" break; - case 297: -#line 2699 "cmDependsJavaParser.y" - { + case 297: /* CastExpression: jp_PARESTART Name Dims jp_PAREEND UnaryExpressionNotPlusMinus */ +#line 2696 "cmDependsJavaParser.y" +{ jpElementStart(5); } -#line 5542 "cmDependsJavaParser.cxx" +#line 5717 "cmDependsJavaParser.cxx" break; - case 298: -#line 2706 "cmDependsJavaParser.y" - { + case 298: /* MultiplicativeExpression: UnaryExpression */ +#line 2703 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 5554 "cmDependsJavaParser.cxx" +#line 5729 "cmDependsJavaParser.cxx" break; - case 299: -#line 2715 "cmDependsJavaParser.y" - { + case 299: /* MultiplicativeExpression: MultiplicativeExpression jp_TIMES UnaryExpression */ +#line 2712 "cmDependsJavaParser.y" +{ jpElementStart(3); jpCheckEmpty(3); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 5566 "cmDependsJavaParser.cxx" +#line 5741 "cmDependsJavaParser.cxx" break; - case 300: -#line 2724 "cmDependsJavaParser.y" - { + case 300: /* MultiplicativeExpression: MultiplicativeExpression jp_DIVIDE UnaryExpression */ +#line 2721 "cmDependsJavaParser.y" +{ jpElementStart(3); jpCheckEmpty(3); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 5578 "cmDependsJavaParser.cxx" +#line 5753 "cmDependsJavaParser.cxx" break; - case 301: -#line 2733 "cmDependsJavaParser.y" - { + case 301: /* MultiplicativeExpression: MultiplicativeExpression jp_PERCENT UnaryExpression */ +#line 2730 "cmDependsJavaParser.y" +{ jpElementStart(3); jpCheckEmpty(3); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 5590 "cmDependsJavaParser.cxx" +#line 5765 "cmDependsJavaParser.cxx" break; - case 302: -#line 2743 "cmDependsJavaParser.y" - { + case 302: /* AdditiveExpression: MultiplicativeExpression */ +#line 2740 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 5602 "cmDependsJavaParser.cxx" +#line 5777 "cmDependsJavaParser.cxx" break; - case 303: -#line 2752 "cmDependsJavaParser.y" - { + case 303: /* AdditiveExpression: AdditiveExpression jp_PLUS MultiplicativeExpression */ +#line 2749 "cmDependsJavaParser.y" +{ jpElementStart(3); jpCheckEmpty(3); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 5614 "cmDependsJavaParser.cxx" +#line 5789 "cmDependsJavaParser.cxx" break; - case 304: -#line 2761 "cmDependsJavaParser.y" - { + case 304: /* AdditiveExpression: AdditiveExpression jp_MINUS MultiplicativeExpression */ +#line 2758 "cmDependsJavaParser.y" +{ jpElementStart(3); jpCheckEmpty(3); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 5626 "cmDependsJavaParser.cxx" +#line 5801 "cmDependsJavaParser.cxx" break; - case 305: -#line 2771 "cmDependsJavaParser.y" - { + case 305: /* ShiftExpression: AdditiveExpression */ +#line 2768 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 5638 "cmDependsJavaParser.cxx" +#line 5813 "cmDependsJavaParser.cxx" break; - case 306: -#line 2780 "cmDependsJavaParser.y" - { + case 306: /* ShiftExpression: ShiftExpression jp_LTLT AdditiveExpression */ +#line 2777 "cmDependsJavaParser.y" +{ jpElementStart(3); jpCheckEmpty(3); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 5650 "cmDependsJavaParser.cxx" +#line 5825 "cmDependsJavaParser.cxx" break; - case 307: -#line 2789 "cmDependsJavaParser.y" - { + case 307: /* ShiftExpression: ShiftExpression jp_GTGT AdditiveExpression */ +#line 2786 "cmDependsJavaParser.y" +{ jpElementStart(3); jpCheckEmpty(3); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 5662 "cmDependsJavaParser.cxx" +#line 5837 "cmDependsJavaParser.cxx" break; - case 308: -#line 2798 "cmDependsJavaParser.y" - { + case 308: /* ShiftExpression: ShiftExpression jp_GTGTGT AdditiveExpression */ +#line 2795 "cmDependsJavaParser.y" +{ jpElementStart(3); jpCheckEmpty(3); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 5674 "cmDependsJavaParser.cxx" +#line 5849 "cmDependsJavaParser.cxx" break; - case 309: -#line 2808 "cmDependsJavaParser.y" - { + case 309: /* RelationalExpression: ShiftExpression */ +#line 2805 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 5686 "cmDependsJavaParser.cxx" +#line 5861 "cmDependsJavaParser.cxx" break; - case 310: -#line 2817 "cmDependsJavaParser.y" - { + case 310: /* RelationalExpression: RelationalExpression jp_LESSTHAN ShiftExpression */ +#line 2814 "cmDependsJavaParser.y" +{ jpElementStart(3); jpCheckEmpty(3); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 5698 "cmDependsJavaParser.cxx" +#line 5873 "cmDependsJavaParser.cxx" break; - case 311: -#line 2826 "cmDependsJavaParser.y" - { + case 311: /* RelationalExpression: RelationalExpression jp_GREATER ShiftExpression */ +#line 2823 "cmDependsJavaParser.y" +{ jpElementStart(3); jpCheckEmpty(3); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 5710 "cmDependsJavaParser.cxx" +#line 5885 "cmDependsJavaParser.cxx" break; - case 312: -#line 2835 "cmDependsJavaParser.y" - { + case 312: /* RelationalExpression: RelationalExpression jp_LTEQUALS ShiftExpression */ +#line 2832 "cmDependsJavaParser.y" +{ jpElementStart(3); jpCheckEmpty(3); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 5722 "cmDependsJavaParser.cxx" +#line 5897 "cmDependsJavaParser.cxx" break; - case 313: -#line 2844 "cmDependsJavaParser.y" - { + case 313: /* RelationalExpression: RelationalExpression jp_GTEQUALS ShiftExpression */ +#line 2841 "cmDependsJavaParser.y" +{ jpElementStart(3); jpCheckEmpty(3); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 5734 "cmDependsJavaParser.cxx" +#line 5909 "cmDependsJavaParser.cxx" break; - case 314: -#line 2853 "cmDependsJavaParser.y" - { + case 314: /* RelationalExpression: RelationalExpression jp_INSTANCEOF ReferenceType */ +#line 2850 "cmDependsJavaParser.y" +{ jpElementStart(3); jpCheckEmpty(3); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 5746 "cmDependsJavaParser.cxx" +#line 5921 "cmDependsJavaParser.cxx" break; - case 315: -#line 2863 "cmDependsJavaParser.y" - { + case 315: /* EqualityExpression: RelationalExpression */ +#line 2860 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 5758 "cmDependsJavaParser.cxx" +#line 5933 "cmDependsJavaParser.cxx" break; - case 316: -#line 2872 "cmDependsJavaParser.y" - { + case 316: /* EqualityExpression: EqualityExpression jp_EQUALSEQUALS RelationalExpression */ +#line 2869 "cmDependsJavaParser.y" +{ jpElementStart(3); jpCheckEmpty(3); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 5770 "cmDependsJavaParser.cxx" +#line 5945 "cmDependsJavaParser.cxx" break; - case 317: -#line 2881 "cmDependsJavaParser.y" - { + case 317: /* EqualityExpression: EqualityExpression jp_EXCLAMATIONEQUALS RelationalExpression */ +#line 2878 "cmDependsJavaParser.y" +{ jpElementStart(3); jpCheckEmpty(3); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 5782 "cmDependsJavaParser.cxx" +#line 5957 "cmDependsJavaParser.cxx" break; - case 318: -#line 2891 "cmDependsJavaParser.y" - { + case 318: /* AndExpression: EqualityExpression */ +#line 2888 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 5794 "cmDependsJavaParser.cxx" +#line 5969 "cmDependsJavaParser.cxx" break; - case 319: -#line 2900 "cmDependsJavaParser.y" - { + case 319: /* AndExpression: AndExpression jp_AND EqualityExpression */ +#line 2897 "cmDependsJavaParser.y" +{ jpElementStart(3); jpCheckEmpty(3); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 5806 "cmDependsJavaParser.cxx" +#line 5981 "cmDependsJavaParser.cxx" break; - case 320: -#line 2910 "cmDependsJavaParser.y" - { + case 320: /* ExclusiveOrExpression: AndExpression */ +#line 2907 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 5818 "cmDependsJavaParser.cxx" +#line 5993 "cmDependsJavaParser.cxx" break; - case 321: -#line 2919 "cmDependsJavaParser.y" - { + case 321: /* ExclusiveOrExpression: ExclusiveOrExpression jp_CARROT AndExpression */ +#line 2916 "cmDependsJavaParser.y" +{ jpElementStart(3); jpCheckEmpty(3); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 5830 "cmDependsJavaParser.cxx" +#line 6005 "cmDependsJavaParser.cxx" break; - case 322: -#line 2929 "cmDependsJavaParser.y" - { + case 322: /* InclusiveOrExpression: ExclusiveOrExpression */ +#line 2926 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 5842 "cmDependsJavaParser.cxx" +#line 6017 "cmDependsJavaParser.cxx" break; - case 323: -#line 2938 "cmDependsJavaParser.y" - { + case 323: /* InclusiveOrExpression: InclusiveOrExpression jp_PIPE ExclusiveOrExpression */ +#line 2935 "cmDependsJavaParser.y" +{ jpElementStart(3); jpCheckEmpty(3); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 5854 "cmDependsJavaParser.cxx" +#line 6029 "cmDependsJavaParser.cxx" break; - case 324: -#line 2948 "cmDependsJavaParser.y" - { + case 324: /* ConditionalAndExpression: InclusiveOrExpression */ +#line 2945 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 5866 "cmDependsJavaParser.cxx" +#line 6041 "cmDependsJavaParser.cxx" break; - case 325: -#line 2957 "cmDependsJavaParser.y" - { + case 325: /* ConditionalAndExpression: ConditionalAndExpression jp_ANDAND InclusiveOrExpression */ +#line 2954 "cmDependsJavaParser.y" +{ jpElementStart(3); jpCheckEmpty(3); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 5878 "cmDependsJavaParser.cxx" +#line 6053 "cmDependsJavaParser.cxx" break; - case 326: -#line 2967 "cmDependsJavaParser.y" - { + case 326: /* ConditionalOrExpression: ConditionalAndExpression */ +#line 2964 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 5890 "cmDependsJavaParser.cxx" +#line 6065 "cmDependsJavaParser.cxx" break; - case 327: -#line 2976 "cmDependsJavaParser.y" - { + case 327: /* ConditionalOrExpression: ConditionalOrExpression jp_PIPEPIPE ConditionalAndExpression */ +#line 2973 "cmDependsJavaParser.y" +{ jpElementStart(3); jpCheckEmpty(3); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 5902 "cmDependsJavaParser.cxx" +#line 6077 "cmDependsJavaParser.cxx" break; - case 328: -#line 2986 "cmDependsJavaParser.y" - { + case 328: /* ConditionalExpression: ConditionalOrExpression */ +#line 2983 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 5914 "cmDependsJavaParser.cxx" +#line 6089 "cmDependsJavaParser.cxx" break; - case 329: -#line 2995 "cmDependsJavaParser.y" - { + case 329: /* ConditionalExpression: ConditionalOrExpression jp_QUESTION Expression jp_COLON ConditionalExpression */ +#line 2992 "cmDependsJavaParser.y" +{ jpElementStart(5); jpCheckEmpty(5); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 5926 "cmDependsJavaParser.cxx" +#line 6101 "cmDependsJavaParser.cxx" break; - case 330: -#line 3005 "cmDependsJavaParser.y" - { + case 330: /* AssignmentExpression: ConditionalExpression */ +#line 3002 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 5938 "cmDependsJavaParser.cxx" +#line 6113 "cmDependsJavaParser.cxx" break; - case 331: -#line 3014 "cmDependsJavaParser.y" - { + case 331: /* AssignmentExpression: Assignment */ +#line 3011 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 5950 "cmDependsJavaParser.cxx" +#line 6125 "cmDependsJavaParser.cxx" break; - case 332: -#line 3024 "cmDependsJavaParser.y" - { + case 332: /* Assignment: LeftHandSide AssignmentOperator AssignmentExpression */ +#line 3021 "cmDependsJavaParser.y" +{ jpElementStart(3); jpCheckEmpty(3); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 5962 "cmDependsJavaParser.cxx" +#line 6137 "cmDependsJavaParser.cxx" break; - case 333: -#line 3034 "cmDependsJavaParser.y" - { + case 333: /* LeftHandSide: Name */ +#line 3031 "cmDependsJavaParser.y" +{ jpElementStart(1); yyGetParser->DeallocateParserType(&((yyvsp[0].str))); jpCheckEmpty(1); @@ -5971,216 +6146,216 @@ yyreduce: yyGetParser->SetCurrentCombine(""); } -#line 5975 "cmDependsJavaParser.cxx" +#line 6150 "cmDependsJavaParser.cxx" break; - case 334: -#line 3044 "cmDependsJavaParser.y" - { + case 334: /* LeftHandSide: FieldAccess */ +#line 3041 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 5987 "cmDependsJavaParser.cxx" +#line 6162 "cmDependsJavaParser.cxx" break; - case 335: -#line 3053 "cmDependsJavaParser.y" - { + case 335: /* LeftHandSide: ArrayAccess */ +#line 3050 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 5999 "cmDependsJavaParser.cxx" +#line 6174 "cmDependsJavaParser.cxx" break; - case 336: -#line 3063 "cmDependsJavaParser.y" - { + case 336: /* AssignmentOperator: jp_EQUALS */ +#line 3060 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 6011 "cmDependsJavaParser.cxx" +#line 6186 "cmDependsJavaParser.cxx" break; - case 337: -#line 3072 "cmDependsJavaParser.y" - { + case 337: /* AssignmentOperator: jp_TIMESEQUALS */ +#line 3069 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 6023 "cmDependsJavaParser.cxx" +#line 6198 "cmDependsJavaParser.cxx" break; - case 338: -#line 3081 "cmDependsJavaParser.y" - { + case 338: /* AssignmentOperator: jp_DIVIDEEQUALS */ +#line 3078 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 6035 "cmDependsJavaParser.cxx" +#line 6210 "cmDependsJavaParser.cxx" break; - case 339: -#line 3090 "cmDependsJavaParser.y" - { + case 339: /* AssignmentOperator: jp_PERCENTEQUALS */ +#line 3087 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 6047 "cmDependsJavaParser.cxx" +#line 6222 "cmDependsJavaParser.cxx" break; - case 340: -#line 3099 "cmDependsJavaParser.y" - { + case 340: /* AssignmentOperator: jp_PLUSEQUALS */ +#line 3096 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 6059 "cmDependsJavaParser.cxx" +#line 6234 "cmDependsJavaParser.cxx" break; - case 341: -#line 3108 "cmDependsJavaParser.y" - { + case 341: /* AssignmentOperator: jp_MINUSEQUALS */ +#line 3105 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 6071 "cmDependsJavaParser.cxx" +#line 6246 "cmDependsJavaParser.cxx" break; - case 342: -#line 3117 "cmDependsJavaParser.y" - { + case 342: /* AssignmentOperator: jp_LESLESEQUALS */ +#line 3114 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 6083 "cmDependsJavaParser.cxx" +#line 6258 "cmDependsJavaParser.cxx" break; - case 343: -#line 3126 "cmDependsJavaParser.y" - { + case 343: /* AssignmentOperator: jp_GTGTEQUALS */ +#line 3123 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 6095 "cmDependsJavaParser.cxx" +#line 6270 "cmDependsJavaParser.cxx" break; - case 344: -#line 3135 "cmDependsJavaParser.y" - { + case 344: /* AssignmentOperator: jp_GTGTGTEQUALS */ +#line 3132 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 6107 "cmDependsJavaParser.cxx" +#line 6282 "cmDependsJavaParser.cxx" break; - case 345: -#line 3144 "cmDependsJavaParser.y" - { + case 345: /* AssignmentOperator: jp_ANDEQUALS */ +#line 3141 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 6119 "cmDependsJavaParser.cxx" +#line 6294 "cmDependsJavaParser.cxx" break; - case 346: -#line 3153 "cmDependsJavaParser.y" - { + case 346: /* AssignmentOperator: jp_CARROTEQUALS */ +#line 3150 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 6131 "cmDependsJavaParser.cxx" +#line 6306 "cmDependsJavaParser.cxx" break; - case 347: -#line 3162 "cmDependsJavaParser.y" - { + case 347: /* AssignmentOperator: jp_PIPEEQUALS */ +#line 3159 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 6143 "cmDependsJavaParser.cxx" +#line 6318 "cmDependsJavaParser.cxx" break; - case 348: -#line 3172 "cmDependsJavaParser.y" - { + case 348: /* Expression: AssignmentExpression */ +#line 3169 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 6155 "cmDependsJavaParser.cxx" +#line 6330 "cmDependsJavaParser.cxx" break; - case 349: -#line 3182 "cmDependsJavaParser.y" - { + case 349: /* ConstantExpression: Expression */ +#line 3179 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 6167 "cmDependsJavaParser.cxx" +#line 6342 "cmDependsJavaParser.cxx" break; - case 350: -#line 3192 "cmDependsJavaParser.y" - { + case 350: /* New: jp_NEW */ +#line 3189 "cmDependsJavaParser.y" +{ jpElementStart(1); jpCheckEmpty(1); (yyval.str) = 0; yyGetParser->SetCurrentCombine(""); } -#line 6179 "cmDependsJavaParser.cxx" +#line 6354 "cmDependsJavaParser.cxx" break; - case 351: -#line 3201 "cmDependsJavaParser.y" - { + case 351: /* New: Name jp_DOT jp_NEW */ +#line 3198 "cmDependsJavaParser.y" +{ jpElementStart(3); jpStoreClass((yyvsp[-2].str)); jpCheckEmpty(3); @@ -6188,11 +6363,11 @@ yyreduce: yyGetParser->SetCurrentCombine(""); } -#line 6192 "cmDependsJavaParser.cxx" +#line 6367 "cmDependsJavaParser.cxx" break; -#line 6196 "cmDependsJavaParser.cxx" +#line 6371 "cmDependsJavaParser.cxx" default: break; } @@ -6207,11 +6382,10 @@ yyreduce: case of YYERROR or YYBACKUP, subsequent parser actions might lead to an incorrect destructor call or verbose syntax error message before the lookahead is translated. */ - YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc); + YY_SYMBOL_PRINT ("-> $$ =", YY_CAST (yysymbol_kind_t, yyr1[yyn]), &yyval, &yyloc); YYPOPSTACK (yylen); yylen = 0; - YY_STACK_PRINT (yyss, yyssp); *++yyvsp = yyval; @@ -6235,50 +6409,44 @@ yyreduce: yyerrlab: /* Make sure we have latest lookahead translation. See comments at user semantic actions for why this is necessary. */ - yytoken = yychar == YYEMPTY ? YYEMPTY : YYTRANSLATE (yychar); - + yytoken = yychar == YYEMPTY ? YYSYMBOL_YYEMPTY : YYTRANSLATE (yychar); /* If not already recovering from an error, report this error. */ if (!yyerrstatus) { ++yynerrs; -#if ! YYERROR_VERBOSE - yyerror (yyscanner, YY_("syntax error")); -#else -# define YYSYNTAX_ERROR yysyntax_error (&yymsg_alloc, &yymsg, \ - yyssp, yytoken) { + yypcontext_t yyctx + = {yyssp, yytoken}; char const *yymsgp = YY_("syntax error"); int yysyntax_error_status; - yysyntax_error_status = YYSYNTAX_ERROR; + yysyntax_error_status = yysyntax_error (&yymsg_alloc, &yymsg, &yyctx); if (yysyntax_error_status == 0) yymsgp = yymsg; - else if (yysyntax_error_status == 1) + else if (yysyntax_error_status == -1) { if (yymsg != yymsgbuf) YYSTACK_FREE (yymsg); - yymsg = (char *) YYSTACK_ALLOC (yymsg_alloc); - if (!yymsg) + yymsg = YY_CAST (char *, + YYSTACK_ALLOC (YY_CAST (YYSIZE_T, yymsg_alloc))); + if (yymsg) { - yymsg = yymsgbuf; - yymsg_alloc = sizeof yymsgbuf; - yysyntax_error_status = 2; + yysyntax_error_status + = yysyntax_error (&yymsg_alloc, &yymsg, &yyctx); + yymsgp = yymsg; } else { - yysyntax_error_status = YYSYNTAX_ERROR; - yymsgp = yymsg; + yymsg = yymsgbuf; + yymsg_alloc = sizeof yymsgbuf; + yysyntax_error_status = YYENOMEM; } } yyerror (yyscanner, yymsgp); - if (yysyntax_error_status == 2) + if (yysyntax_error_status == YYENOMEM) goto yyexhaustedlab; } -# undef YYSYNTAX_ERROR -#endif } - - if (yyerrstatus == 3) { /* If just tried and failed to reuse lookahead token after an @@ -6298,7 +6466,6 @@ yyerrlab: } } -#if 0 /* Else will try to reuse lookahead token after shifting the error token. */ goto yyerrlab1; @@ -6326,16 +6493,16 @@ yyerrorlab: | yyerrlab1 -- common code for both syntax error and YYERROR. | `-------------------------------------------------------------*/ yyerrlab1: -#endif yyerrstatus = 3; /* Each real token shifted decrements this. */ + /* Pop stack until we find a state that shifts the error token. */ for (;;) { yyn = yypact[yystate]; if (!yypact_value_is_default (yyn)) { - yyn += YYTERROR; - if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR) + yyn += YYSYMBOL_YYerror; + if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) { yyn = yytable[yyn]; if (0 < yyn) @@ -6349,7 +6516,7 @@ yyerrlab1: yydestruct ("Error: popping", - yystos[yystate], yyvsp, yyscanner); + YY_ACCESSING_SYMBOL (yystate), yyvsp, yyscanner); YYPOPSTACK (1); yystate = *yyssp; YY_STACK_PRINT (yyss, yyssp); @@ -6361,7 +6528,7 @@ yyerrlab1: /* Shift the error token. */ - YY_SYMBOL_PRINT ("Shifting", yystos[yyn], yyvsp, yylsp); + YY_SYMBOL_PRINT ("Shifting", YY_ACCESSING_SYMBOL (yyn), yyvsp, yylsp); yystate = yyn; goto yynewstate; @@ -6383,20 +6550,20 @@ yyabortlab: goto yyreturn; -#if !defined yyoverflow || YYERROR_VERBOSE +#if 1 /*-------------------------------------------------. | yyexhaustedlab -- memory exhaustion comes here. | `-------------------------------------------------*/ yyexhaustedlab: yyerror (yyscanner, YY_("memory exhausted")); yyresult = 2; - /* Fall through. */ + goto yyreturn; #endif -/*-----------------------------------------------------. -| yyreturn -- parsing is finished, return the result. | -`-----------------------------------------------------*/ +/*-------------------------------------------------------. +| yyreturn -- parsing is finished, clean up and return. | +`-------------------------------------------------------*/ yyreturn: if (yychar != YYEMPTY) { @@ -6413,20 +6580,19 @@ yyreturn: while (yyssp != yyss) { yydestruct ("Cleanup: popping", - yystos[*yyssp], yyvsp, yyscanner); + YY_ACCESSING_SYMBOL (+*yyssp), yyvsp, yyscanner); YYPOPSTACK (1); } #ifndef yyoverflow if (yyss != yyssa) YYSTACK_FREE (yyss); #endif -#if YYERROR_VERBOSE if (yymsg != yymsgbuf) YYSTACK_FREE (yymsg); -#endif return yyresult; } -#line 3210 "cmDependsJavaParser.y" + +#line 3207 "cmDependsJavaParser.y" /* End of grammar */ diff --git a/Source/LexerParser/cmDependsJavaParserTokens.h b/Source/LexerParser/cmDependsJavaParserTokens.h index e0dfa01..4ae55fa 100644 --- a/Source/LexerParser/cmDependsJavaParserTokens.h +++ b/Source/LexerParser/cmDependsJavaParserTokens.h @@ -1,8 +1,8 @@ -/* A Bison parser, made by GNU Bison 3.4.2. */ +/* A Bison parser, made by GNU Bison 3.7.4. */ /* Bison interface for Yacc-like parsers in C - Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2019 Free Software Foundation, + 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 @@ -31,8 +31,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. */ +/* DO NOT RELY ON FEATURES THAT ARE NOT DOCUMENTED in the manual, + especially those whose name start with YY_ or yy_. They are + private implementation details that can be changed or removed. */ #ifndef YY_CMDEPENDSJAVA_YY_CMDEPENDSJAVAPARSERTOKENS_H_INCLUDED # define YY_CMDEPENDSJAVA_YY_CMDEPENDSJAVAPARSERTOKENS_H_INCLUDED @@ -44,220 +45,121 @@ extern int cmDependsJava_yydebug; #endif -/* Token type. */ +/* Token kinds. */ #ifndef YYTOKENTYPE # define YYTOKENTYPE enum yytokentype { - jp_ABSTRACT = 258, - jp_ASSERT = 259, - jp_BOOLEAN_TYPE = 260, - jp_BREAK = 261, - jp_BYTE_TYPE = 262, - jp_CASE = 263, - jp_CATCH = 264, - jp_CHAR_TYPE = 265, - jp_CLASS = 266, - jp_CONTINUE = 267, - jp_DEFAULT = 268, - jp_DO = 269, - jp_DOUBLE_TYPE = 270, - jp_ELSE = 271, - jp_EXTENDS = 272, - jp_FINAL = 273, - jp_FINALLY = 274, - jp_FLOAT_TYPE = 275, - jp_FOR = 276, - jp_IF = 277, - jp_IMPLEMENTS = 278, - jp_IMPORT = 279, - jp_INSTANCEOF = 280, - jp_INT_TYPE = 281, - jp_INTERFACE = 282, - jp_LONG_TYPE = 283, - jp_NATIVE = 284, - jp_NEW = 285, - jp_PACKAGE = 286, - jp_PRIVATE = 287, - jp_PROTECTED = 288, - jp_PUBLIC = 289, - jp_RETURN = 290, - jp_SHORT_TYPE = 291, - jp_STATIC = 292, - jp_STRICTFP = 293, - jp_SUPER = 294, - jp_SWITCH = 295, - jp_SYNCHRONIZED = 296, - jp_THIS = 297, - jp_THROW = 298, - jp_THROWS = 299, - jp_TRANSIENT = 300, - jp_TRY = 301, - jp_VOID = 302, - jp_VOLATILE = 303, - jp_WHILE = 304, - jp_BOOLEANLITERAL = 305, - jp_CHARACTERLITERAL = 306, - jp_DECIMALINTEGERLITERAL = 307, - jp_FLOATINGPOINTLITERAL = 308, - jp_HEXINTEGERLITERAL = 309, - jp_NULLLITERAL = 310, - jp_STRINGLITERAL = 311, - jp_NAME = 312, - jp_AND = 313, - jp_ANDAND = 314, - jp_ANDEQUALS = 315, - jp_BRACKETEND = 316, - jp_BRACKETSTART = 317, - jp_CARROT = 318, - jp_CARROTEQUALS = 319, - jp_COLON = 320, - jp_COMMA = 321, - jp_CURLYEND = 322, - jp_CURLYSTART = 323, - jp_DIVIDE = 324, - jp_DIVIDEEQUALS = 325, - jp_DOLLAR = 326, - jp_DOT = 327, - jp_EQUALS = 328, - jp_EQUALSEQUALS = 329, - jp_EXCLAMATION = 330, - jp_EXCLAMATIONEQUALS = 331, - jp_GREATER = 332, - jp_GTEQUALS = 333, - jp_GTGT = 334, - jp_GTGTEQUALS = 335, - jp_GTGTGT = 336, - jp_GTGTGTEQUALS = 337, - jp_LESLESEQUALS = 338, - jp_LESSTHAN = 339, - jp_LTEQUALS = 340, - jp_LTLT = 341, - jp_MINUS = 342, - jp_MINUSEQUALS = 343, - jp_MINUSMINUS = 344, - jp_PAREEND = 345, - jp_PARESTART = 346, - jp_PERCENT = 347, - jp_PERCENTEQUALS = 348, - jp_PIPE = 349, - jp_PIPEEQUALS = 350, - jp_PIPEPIPE = 351, - jp_PLUS = 352, - jp_PLUSEQUALS = 353, - jp_PLUSPLUS = 354, - jp_QUESTION = 355, - jp_SEMICOL = 356, - jp_TILDE = 357, - jp_TIMES = 358, - jp_TIMESEQUALS = 359, - jp_ERROR = 360 + YYEMPTY = -2, + YYEOF = 0, /* "end of file" */ + YYerror = 256, /* error */ + YYUNDEF = 257, /* "invalid token" */ + jp_ABSTRACT = 258, /* jp_ABSTRACT */ + jp_ASSERT = 259, /* jp_ASSERT */ + jp_BOOLEAN_TYPE = 260, /* jp_BOOLEAN_TYPE */ + jp_BREAK = 261, /* jp_BREAK */ + jp_BYTE_TYPE = 262, /* jp_BYTE_TYPE */ + jp_CASE = 263, /* jp_CASE */ + jp_CATCH = 264, /* jp_CATCH */ + jp_CHAR_TYPE = 265, /* jp_CHAR_TYPE */ + jp_CLASS = 266, /* jp_CLASS */ + jp_CONTINUE = 267, /* jp_CONTINUE */ + jp_DEFAULT = 268, /* jp_DEFAULT */ + jp_DO = 269, /* jp_DO */ + jp_DOUBLE_TYPE = 270, /* jp_DOUBLE_TYPE */ + jp_ELSE = 271, /* jp_ELSE */ + jp_EXTENDS = 272, /* jp_EXTENDS */ + jp_FINAL = 273, /* jp_FINAL */ + jp_FINALLY = 274, /* jp_FINALLY */ + jp_FLOAT_TYPE = 275, /* jp_FLOAT_TYPE */ + jp_FOR = 276, /* jp_FOR */ + jp_IF = 277, /* jp_IF */ + jp_IMPLEMENTS = 278, /* jp_IMPLEMENTS */ + jp_IMPORT = 279, /* jp_IMPORT */ + jp_INSTANCEOF = 280, /* jp_INSTANCEOF */ + jp_INT_TYPE = 281, /* jp_INT_TYPE */ + jp_INTERFACE = 282, /* jp_INTERFACE */ + jp_LONG_TYPE = 283, /* jp_LONG_TYPE */ + jp_NATIVE = 284, /* jp_NATIVE */ + jp_NEW = 285, /* jp_NEW */ + jp_PACKAGE = 286, /* jp_PACKAGE */ + jp_PRIVATE = 287, /* jp_PRIVATE */ + jp_PROTECTED = 288, /* jp_PROTECTED */ + jp_PUBLIC = 289, /* jp_PUBLIC */ + jp_RETURN = 290, /* jp_RETURN */ + jp_SHORT_TYPE = 291, /* jp_SHORT_TYPE */ + jp_STATIC = 292, /* jp_STATIC */ + jp_STRICTFP = 293, /* jp_STRICTFP */ + jp_SUPER = 294, /* jp_SUPER */ + jp_SWITCH = 295, /* jp_SWITCH */ + jp_SYNCHRONIZED = 296, /* jp_SYNCHRONIZED */ + jp_THIS = 297, /* jp_THIS */ + jp_THROW = 298, /* jp_THROW */ + jp_THROWS = 299, /* jp_THROWS */ + jp_TRANSIENT = 300, /* jp_TRANSIENT */ + jp_TRY = 301, /* jp_TRY */ + jp_VOID = 302, /* jp_VOID */ + jp_VOLATILE = 303, /* jp_VOLATILE */ + jp_WHILE = 304, /* jp_WHILE */ + jp_BOOLEANLITERAL = 305, /* jp_BOOLEANLITERAL */ + jp_CHARACTERLITERAL = 306, /* jp_CHARACTERLITERAL */ + jp_DECIMALINTEGERLITERAL = 307, /* jp_DECIMALINTEGERLITERAL */ + jp_FLOATINGPOINTLITERAL = 308, /* jp_FLOATINGPOINTLITERAL */ + jp_HEXINTEGERLITERAL = 309, /* jp_HEXINTEGERLITERAL */ + jp_NULLLITERAL = 310, /* jp_NULLLITERAL */ + jp_STRINGLITERAL = 311, /* jp_STRINGLITERAL */ + jp_NAME = 312, /* jp_NAME */ + jp_AND = 313, /* jp_AND */ + jp_ANDAND = 314, /* jp_ANDAND */ + jp_ANDEQUALS = 315, /* jp_ANDEQUALS */ + jp_BRACKETEND = 316, /* jp_BRACKETEND */ + jp_BRACKETSTART = 317, /* jp_BRACKETSTART */ + jp_CARROT = 318, /* jp_CARROT */ + jp_CARROTEQUALS = 319, /* jp_CARROTEQUALS */ + jp_COLON = 320, /* jp_COLON */ + jp_COMMA = 321, /* jp_COMMA */ + jp_CURLYEND = 322, /* jp_CURLYEND */ + jp_CURLYSTART = 323, /* jp_CURLYSTART */ + jp_DIVIDE = 324, /* jp_DIVIDE */ + jp_DIVIDEEQUALS = 325, /* jp_DIVIDEEQUALS */ + jp_DOLLAR = 326, /* jp_DOLLAR */ + jp_DOT = 327, /* jp_DOT */ + jp_EQUALS = 328, /* jp_EQUALS */ + jp_EQUALSEQUALS = 329, /* jp_EQUALSEQUALS */ + jp_EXCLAMATION = 330, /* jp_EXCLAMATION */ + jp_EXCLAMATIONEQUALS = 331, /* jp_EXCLAMATIONEQUALS */ + jp_GREATER = 332, /* jp_GREATER */ + jp_GTEQUALS = 333, /* jp_GTEQUALS */ + jp_GTGT = 334, /* jp_GTGT */ + jp_GTGTEQUALS = 335, /* jp_GTGTEQUALS */ + jp_GTGTGT = 336, /* jp_GTGTGT */ + jp_GTGTGTEQUALS = 337, /* jp_GTGTGTEQUALS */ + jp_LESLESEQUALS = 338, /* jp_LESLESEQUALS */ + jp_LESSTHAN = 339, /* jp_LESSTHAN */ + jp_LTEQUALS = 340, /* jp_LTEQUALS */ + jp_LTLT = 341, /* jp_LTLT */ + jp_MINUS = 342, /* jp_MINUS */ + jp_MINUSEQUALS = 343, /* jp_MINUSEQUALS */ + jp_MINUSMINUS = 344, /* jp_MINUSMINUS */ + jp_PAREEND = 345, /* jp_PAREEND */ + jp_PARESTART = 346, /* jp_PARESTART */ + jp_PERCENT = 347, /* jp_PERCENT */ + jp_PERCENTEQUALS = 348, /* jp_PERCENTEQUALS */ + jp_PIPE = 349, /* jp_PIPE */ + jp_PIPEEQUALS = 350, /* jp_PIPEEQUALS */ + jp_PIPEPIPE = 351, /* jp_PIPEPIPE */ + jp_PLUS = 352, /* jp_PLUS */ + jp_PLUSEQUALS = 353, /* jp_PLUSEQUALS */ + jp_PLUSPLUS = 354, /* jp_PLUSPLUS */ + jp_QUESTION = 355, /* jp_QUESTION */ + jp_SEMICOL = 356, /* jp_SEMICOL */ + jp_TILDE = 357, /* jp_TILDE */ + jp_TIMES = 358, /* jp_TIMES */ + jp_TIMESEQUALS = 359, /* jp_TIMESEQUALS */ + jp_ERROR = 360 /* jp_ERROR */ }; + typedef enum yytokentype yytoken_kind_t; #endif -/* Tokens. */ -#define jp_ABSTRACT 258 -#define jp_ASSERT 259 -#define jp_BOOLEAN_TYPE 260 -#define jp_BREAK 261 -#define jp_BYTE_TYPE 262 -#define jp_CASE 263 -#define jp_CATCH 264 -#define jp_CHAR_TYPE 265 -#define jp_CLASS 266 -#define jp_CONTINUE 267 -#define jp_DEFAULT 268 -#define jp_DO 269 -#define jp_DOUBLE_TYPE 270 -#define jp_ELSE 271 -#define jp_EXTENDS 272 -#define jp_FINAL 273 -#define jp_FINALLY 274 -#define jp_FLOAT_TYPE 275 -#define jp_FOR 276 -#define jp_IF 277 -#define jp_IMPLEMENTS 278 -#define jp_IMPORT 279 -#define jp_INSTANCEOF 280 -#define jp_INT_TYPE 281 -#define jp_INTERFACE 282 -#define jp_LONG_TYPE 283 -#define jp_NATIVE 284 -#define jp_NEW 285 -#define jp_PACKAGE 286 -#define jp_PRIVATE 287 -#define jp_PROTECTED 288 -#define jp_PUBLIC 289 -#define jp_RETURN 290 -#define jp_SHORT_TYPE 291 -#define jp_STATIC 292 -#define jp_STRICTFP 293 -#define jp_SUPER 294 -#define jp_SWITCH 295 -#define jp_SYNCHRONIZED 296 -#define jp_THIS 297 -#define jp_THROW 298 -#define jp_THROWS 299 -#define jp_TRANSIENT 300 -#define jp_TRY 301 -#define jp_VOID 302 -#define jp_VOLATILE 303 -#define jp_WHILE 304 -#define jp_BOOLEANLITERAL 305 -#define jp_CHARACTERLITERAL 306 -#define jp_DECIMALINTEGERLITERAL 307 -#define jp_FLOATINGPOINTLITERAL 308 -#define jp_HEXINTEGERLITERAL 309 -#define jp_NULLLITERAL 310 -#define jp_STRINGLITERAL 311 -#define jp_NAME 312 -#define jp_AND 313 -#define jp_ANDAND 314 -#define jp_ANDEQUALS 315 -#define jp_BRACKETEND 316 -#define jp_BRACKETSTART 317 -#define jp_CARROT 318 -#define jp_CARROTEQUALS 319 -#define jp_COLON 320 -#define jp_COMMA 321 -#define jp_CURLYEND 322 -#define jp_CURLYSTART 323 -#define jp_DIVIDE 324 -#define jp_DIVIDEEQUALS 325 -#define jp_DOLLAR 326 -#define jp_DOT 327 -#define jp_EQUALS 328 -#define jp_EQUALSEQUALS 329 -#define jp_EXCLAMATION 330 -#define jp_EXCLAMATIONEQUALS 331 -#define jp_GREATER 332 -#define jp_GTEQUALS 333 -#define jp_GTGT 334 -#define jp_GTGTEQUALS 335 -#define jp_GTGTGT 336 -#define jp_GTGTGTEQUALS 337 -#define jp_LESLESEQUALS 338 -#define jp_LESSTHAN 339 -#define jp_LTEQUALS 340 -#define jp_LTLT 341 -#define jp_MINUS 342 -#define jp_MINUSEQUALS 343 -#define jp_MINUSMINUS 344 -#define jp_PAREEND 345 -#define jp_PARESTART 346 -#define jp_PERCENT 347 -#define jp_PERCENTEQUALS 348 -#define jp_PIPE 349 -#define jp_PIPEEQUALS 350 -#define jp_PIPEPIPE 351 -#define jp_PLUS 352 -#define jp_PLUSEQUALS 353 -#define jp_PLUSPLUS 354 -#define jp_QUESTION 355 -#define jp_SEMICOL 356 -#define jp_TILDE 357 -#define jp_TIMES 358 -#define jp_TIMESEQUALS 359 -#define jp_ERROR 360 /* Value type. */ diff --git a/Source/LexerParser/cmExprParser.cxx b/Source/LexerParser/cmExprParser.cxx index 562b35b..99b5edc 100644 --- a/Source/LexerParser/cmExprParser.cxx +++ b/Source/LexerParser/cmExprParser.cxx @@ -1,8 +1,8 @@ -/* A Bison parser, made by GNU Bison 3.4.2. */ +/* A Bison parser, made by GNU Bison 3.7.4. */ /* Bison implementation for Yacc-like parsers in C - Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2019 Free Software Foundation, + 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 @@ -34,6 +34,10 @@ /* C LALR(1) parser skeleton written by Richard Stallman, by simplifying the original so-called "semantic" parser. */ +/* DO NOT RELY ON FEATURES THAT ARE NOT DOCUMENTED in the manual, + especially those whose name start with YY_ or yy_. They are + private implementation details that can be changed or removed. */ + /* All symbols defined below should begin with yy or YY, to avoid infringing on user name space. This should be done even for local variables, as they might otherwise be expanded by user macros. @@ -41,14 +45,11 @@ define necessary library symbols; they are noted "INFRINGES ON USER NAME SPACE" below. */ -/* Undocumented macros, especially those whose name start with YY_, - are private implementation details. Do not rely on them. */ - -/* Identify Bison output. */ -#define YYBISON 1 +/* Identify Bison output, and Bison version. */ +#define YYBISON 30704 -/* Bison version. */ -#define YYBISON_VERSION "3.4.2" +/* Bison version string. */ +#define YYBISON_VERSION "3.7.4" /* Skeleton name. */ #define YYSKELETON_NAME "yacc.c" @@ -70,7 +71,6 @@ #define yydebug cmExpr_yydebug #define yynerrs cmExpr_yynerrs - /* First part of user prologue. */ #line 1 "cmExprParser.y" @@ -82,10 +82,7 @@ This file must be translated to C and modified to build everywhere. Run bison like this: - bison --yacc --name-prefix=cmExpr_yy --defines=cmExprParserTokens.h -ocmExprParser.cxx cmExprParser.y - -Modify cmExprParser.cxx: - - "#if 0" out yyerrorlab block in range ["goto yyerrlab1", "yyerrlab1:"] + bison --name-prefix=cmExpr_yy --defines=cmExprParserTokens.h -ocmExprParser.cxx cmExprParser.y */ @@ -116,8 +113,17 @@ static void cmExpr_yyerror(yyscan_t yyscanner, const char* message); # pragma GCC diagnostic ignored "-Wconversion" #endif -#line 120 "cmExprParser.cxx" +#line 117 "cmExprParser.cxx" +# ifndef YY_CAST +# ifdef __cplusplus +# define YY_CAST(Type, Val) static_cast (Val) +# define YY_REINTERPRET_CAST(Type, Val) reinterpret_cast (Val) +# else +# define YY_CAST(Type, Val) ((Type) (Val)) +# define YY_REINTERPRET_CAST(Type, Val) ((Type) (Val)) +# endif +# endif # ifndef YY_NULLPTR # if defined __cplusplus # if 201103L <= __cplusplus @@ -130,99 +136,117 @@ static void cmExpr_yyerror(yyscan_t yyscanner, const char* message); # endif # endif -/* Enabling verbose error messages. */ -#ifdef YYERROR_VERBOSE -# undef YYERROR_VERBOSE -# define YYERROR_VERBOSE 1 -#else -# define YYERROR_VERBOSE 1 -#endif - -/* Use api.header.include to #include this header - instead of duplicating it here. */ -#ifndef YY_CMEXPR_YY_CMEXPRPARSERTOKENS_H_INCLUDED -# define YY_CMEXPR_YY_CMEXPRPARSERTOKENS_H_INCLUDED -/* Debug traces. */ -#ifndef YYDEBUG -# define YYDEBUG 0 -#endif -#if YYDEBUG -extern int cmExpr_yydebug; -#endif - -/* Token type. */ -#ifndef YYTOKENTYPE -# define YYTOKENTYPE - enum yytokentype - { - exp_PLUS = 258, - exp_MINUS = 259, - exp_TIMES = 260, - exp_DIVIDE = 261, - exp_MOD = 262, - exp_SHIFTLEFT = 263, - exp_SHIFTRIGHT = 264, - exp_OPENPARENT = 265, - exp_CLOSEPARENT = 266, - exp_OR = 267, - exp_AND = 268, - exp_XOR = 269, - exp_NOT = 270, - exp_NUMBER = 271 - }; -#endif -/* Tokens. */ -#define exp_PLUS 258 -#define exp_MINUS 259 -#define exp_TIMES 260 -#define exp_DIVIDE 261 -#define exp_MOD 262 -#define exp_SHIFTLEFT 263 -#define exp_SHIFTRIGHT 264 -#define exp_OPENPARENT 265 -#define exp_CLOSEPARENT 266 -#define exp_OR 267 -#define exp_AND 268 -#define exp_XOR 269 -#define exp_NOT 270 -#define exp_NUMBER 271 +#include "cmExprParserTokens.h" +/* Symbol kind. */ +enum yysymbol_kind_t +{ + YYSYMBOL_YYEMPTY = -2, + YYSYMBOL_YYEOF = 0, /* "end of file" */ + YYSYMBOL_YYerror = 1, /* error */ + YYSYMBOL_YYUNDEF = 2, /* "invalid token" */ + YYSYMBOL_exp_PLUS = 3, /* exp_PLUS */ + YYSYMBOL_exp_MINUS = 4, /* exp_MINUS */ + YYSYMBOL_exp_TIMES = 5, /* exp_TIMES */ + YYSYMBOL_exp_DIVIDE = 6, /* exp_DIVIDE */ + YYSYMBOL_exp_MOD = 7, /* exp_MOD */ + YYSYMBOL_exp_SHIFTLEFT = 8, /* exp_SHIFTLEFT */ + YYSYMBOL_exp_SHIFTRIGHT = 9, /* exp_SHIFTRIGHT */ + YYSYMBOL_exp_OPENPARENT = 10, /* exp_OPENPARENT */ + YYSYMBOL_exp_CLOSEPARENT = 11, /* exp_CLOSEPARENT */ + YYSYMBOL_exp_OR = 12, /* exp_OR */ + YYSYMBOL_exp_AND = 13, /* exp_AND */ + YYSYMBOL_exp_XOR = 14, /* exp_XOR */ + YYSYMBOL_exp_NOT = 15, /* exp_NOT */ + YYSYMBOL_exp_NUMBER = 16, /* exp_NUMBER */ + YYSYMBOL_YYACCEPT = 17, /* $accept */ + YYSYMBOL_start = 18, /* start */ + YYSYMBOL_exp = 19, /* exp */ + YYSYMBOL_bitwiseor = 20, /* bitwiseor */ + YYSYMBOL_bitwisexor = 21, /* bitwisexor */ + YYSYMBOL_bitwiseand = 22, /* bitwiseand */ + YYSYMBOL_shift = 23, /* shift */ + YYSYMBOL_term = 24, /* term */ + YYSYMBOL_unary = 25, /* unary */ + YYSYMBOL_factor = 26 /* factor */ +}; +typedef enum yysymbol_kind_t yysymbol_kind_t; -/* Value type. */ -int cmExpr_yyparse (yyscan_t yyscanner); +#ifdef short +# undef short +#endif -#endif /* !YY_CMEXPR_YY_CMEXPRPARSERTOKENS_H_INCLUDED */ +/* On compilers that do not define __PTRDIFF_MAX__ etc., make sure + and (if available) are included + so that the code can choose integer types of a good width. */ +#ifndef __PTRDIFF_MAX__ +# include /* INFRINGES ON USER NAME SPACE */ +# if defined __STDC_VERSION__ && 199901 <= __STDC_VERSION__ +# include /* INFRINGES ON USER NAME SPACE */ +# define YY_STDINT_H +# endif +#endif +/* Narrow types that promote to a signed type and that can represent a + signed or unsigned integer of at least N bits. In tables they can + save space and decrease cache pressure. Promoting to a signed type + helps avoid bugs in integer arithmetic. */ -#ifdef short -# undef short +#ifdef __INT_LEAST8_MAX__ +typedef __INT_LEAST8_TYPE__ yytype_int8; +#elif defined YY_STDINT_H +typedef int_least8_t yytype_int8; +#else +typedef signed char yytype_int8; #endif -#ifdef YYTYPE_UINT8 -typedef YYTYPE_UINT8 yytype_uint8; +#ifdef __INT_LEAST16_MAX__ +typedef __INT_LEAST16_TYPE__ yytype_int16; +#elif defined YY_STDINT_H +typedef int_least16_t yytype_int16; #else -typedef unsigned char yytype_uint8; +typedef short yytype_int16; #endif -#ifdef YYTYPE_INT8 -typedef YYTYPE_INT8 yytype_int8; +#if defined __UINT_LEAST8_MAX__ && __UINT_LEAST8_MAX__ <= __INT_MAX__ +typedef __UINT_LEAST8_TYPE__ yytype_uint8; +#elif (!defined __UINT_LEAST8_MAX__ && defined YY_STDINT_H \ + && UINT_LEAST8_MAX <= INT_MAX) +typedef uint_least8_t yytype_uint8; +#elif !defined __UINT_LEAST8_MAX__ && UCHAR_MAX <= INT_MAX +typedef unsigned char yytype_uint8; #else -typedef signed char yytype_int8; +typedef short yytype_uint8; #endif -#ifdef YYTYPE_UINT16 -typedef YYTYPE_UINT16 yytype_uint16; -#else +#if defined __UINT_LEAST16_MAX__ && __UINT_LEAST16_MAX__ <= __INT_MAX__ +typedef __UINT_LEAST16_TYPE__ yytype_uint16; +#elif (!defined __UINT_LEAST16_MAX__ && defined YY_STDINT_H \ + && UINT_LEAST16_MAX <= INT_MAX) +typedef uint_least16_t yytype_uint16; +#elif !defined __UINT_LEAST16_MAX__ && USHRT_MAX <= INT_MAX typedef unsigned short yytype_uint16; +#else +typedef int yytype_uint16; #endif -#ifdef YYTYPE_INT16 -typedef YYTYPE_INT16 yytype_int16; -#else -typedef short yytype_int16; +#ifndef YYPTRDIFF_T +# if defined __PTRDIFF_TYPE__ && defined __PTRDIFF_MAX__ +# define YYPTRDIFF_T __PTRDIFF_TYPE__ +# define YYPTRDIFF_MAXIMUM __PTRDIFF_MAX__ +# elif defined PTRDIFF_MAX +# ifndef ptrdiff_t +# include /* INFRINGES ON USER NAME SPACE */ +# endif +# define YYPTRDIFF_T ptrdiff_t +# define YYPTRDIFF_MAXIMUM PTRDIFF_MAX +# else +# define YYPTRDIFF_T long +# define YYPTRDIFF_MAXIMUM LONG_MAX +# endif #endif #ifndef YYSIZE_T @@ -230,7 +254,7 @@ typedef short yytype_int16; # define YYSIZE_T __SIZE_TYPE__ # elif defined size_t # define YYSIZE_T size_t -# elif ! defined YYSIZE_T +# elif defined __STDC_VERSION__ && 199901 <= __STDC_VERSION__ # include /* INFRINGES ON USER NAME SPACE */ # define YYSIZE_T size_t # else @@ -238,7 +262,20 @@ typedef short yytype_int16; # endif #endif -#define YYSIZE_MAXIMUM ((YYSIZE_T) -1) +#define YYSIZE_MAXIMUM \ + YY_CAST (YYPTRDIFF_T, \ + (YYPTRDIFF_MAXIMUM < YY_CAST (YYSIZE_T, -1) \ + ? YYPTRDIFF_MAXIMUM \ + : YY_CAST (YYSIZE_T, -1))) + +#define YYSIZEOF(X) YY_CAST (YYPTRDIFF_T, sizeof (X)) + + +/* Stored state numbers (used for stacks). */ +typedef yytype_int8 yy_state_t; + +/* State numbers in computations. */ +typedef int yy_state_fast_t; #ifndef YY_ # if defined YYENABLE_NLS && YYENABLE_NLS @@ -252,22 +289,21 @@ typedef short yytype_int16; # endif #endif -#ifndef YY_ATTRIBUTE -# if (defined __GNUC__ \ - && (2 < __GNUC__ || (__GNUC__ == 2 && 96 <= __GNUC_MINOR__))) \ - || defined __SUNPRO_C && 0x5110 <= __SUNPRO_C -# define YY_ATTRIBUTE(Spec) __attribute__(Spec) -# else -# define YY_ATTRIBUTE(Spec) /* empty */ -# endif -#endif #ifndef YY_ATTRIBUTE_PURE -# define YY_ATTRIBUTE_PURE YY_ATTRIBUTE ((__pure__)) +# if defined __GNUC__ && 2 < __GNUC__ + (96 <= __GNUC_MINOR__) +# define YY_ATTRIBUTE_PURE __attribute__ ((__pure__)) +# else +# define YY_ATTRIBUTE_PURE +# endif #endif #ifndef YY_ATTRIBUTE_UNUSED -# define YY_ATTRIBUTE_UNUSED YY_ATTRIBUTE ((__unused__)) +# if defined __GNUC__ && 2 < __GNUC__ + (7 <= __GNUC_MINOR__) +# define YY_ATTRIBUTE_UNUSED __attribute__ ((__unused__)) +# else +# define YY_ATTRIBUTE_UNUSED +# endif #endif /* Suppress unused-variable warnings by "using" E. */ @@ -279,11 +315,11 @@ typedef short yytype_int16; #if defined __GNUC__ && ! defined __ICC && 407 <= __GNUC__ * 100 + __GNUC_MINOR__ /* Suppress an incorrect diagnostic about yylval being uninitialized. */ -# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \ - _Pragma ("GCC diagnostic push") \ - _Pragma ("GCC diagnostic ignored \"-Wuninitialized\"")\ +# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \ + _Pragma ("GCC diagnostic push") \ + _Pragma ("GCC diagnostic ignored \"-Wuninitialized\"") \ _Pragma ("GCC diagnostic ignored \"-Wmaybe-uninitialized\"") -# define YY_IGNORE_MAYBE_UNINITIALIZED_END \ +# define YY_IGNORE_MAYBE_UNINITIALIZED_END \ _Pragma ("GCC diagnostic pop") #else # define YY_INITIAL_VALUE(Value) Value @@ -296,10 +332,22 @@ typedef short yytype_int16; # define YY_INITIAL_VALUE(Value) /* Nothing. */ #endif +#if defined __cplusplus && defined __GNUC__ && ! defined __ICC && 6 <= __GNUC__ +# define YY_IGNORE_USELESS_CAST_BEGIN \ + _Pragma ("GCC diagnostic push") \ + _Pragma ("GCC diagnostic ignored \"-Wuseless-cast\"") +# define YY_IGNORE_USELESS_CAST_END \ + _Pragma ("GCC diagnostic pop") +#endif +#ifndef YY_IGNORE_USELESS_CAST_BEGIN +# define YY_IGNORE_USELESS_CAST_BEGIN +# define YY_IGNORE_USELESS_CAST_END +#endif + #define YY_ASSERT(E) ((void) (0 && (E))) -#if ! defined yyoverflow || YYERROR_VERBOSE +#if 1 /* The parser invokes alloca or malloc; define the necessary symbols. */ @@ -364,8 +412,7 @@ void free (void *); /* INFRINGES ON USER NAME SPACE */ # endif # endif # endif -#endif /* ! defined yyoverflow || YYERROR_VERBOSE */ - +#endif /* 1 */ #if (! defined yyoverflow \ && (! defined __cplusplus \ @@ -374,17 +421,17 @@ void free (void *); /* INFRINGES ON USER NAME SPACE */ /* A type that is properly aligned for any stack member. */ union yyalloc { - yytype_int16 yyss_alloc; + yy_state_t yyss_alloc; YYSTYPE yyvs_alloc; }; /* The size of the maximum gap between one aligned stack and the next. */ -# define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1) +# define YYSTACK_GAP_MAXIMUM (YYSIZEOF (union yyalloc) - 1) /* The size of an array large to enough to hold all stacks, each with N elements. */ # define YYSTACK_BYTES(N) \ - ((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \ + ((N) * (YYSIZEOF (yy_state_t) + YYSIZEOF (YYSTYPE)) \ + YYSTACK_GAP_MAXIMUM) # define YYCOPY_NEEDED 1 @@ -397,11 +444,11 @@ union yyalloc # define YYSTACK_RELOCATE(Stack_alloc, Stack) \ do \ { \ - YYSIZE_T yynewbytes; \ + YYPTRDIFF_T yynewbytes; \ YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \ Stack = &yyptr->Stack_alloc; \ - yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \ - yyptr += yynewbytes / sizeof (*yyptr); \ + yynewbytes = yystacksize * YYSIZEOF (*Stack) + YYSTACK_GAP_MAXIMUM; \ + yyptr += yynewbytes / YYSIZEOF (*yyptr); \ } \ while (0) @@ -413,12 +460,12 @@ union yyalloc # ifndef YYCOPY # if defined __GNUC__ && 1 < __GNUC__ # define YYCOPY(Dst, Src, Count) \ - __builtin_memcpy (Dst, Src, (Count) * sizeof (*(Src))) + __builtin_memcpy (Dst, Src, YY_CAST (YYSIZE_T, (Count)) * sizeof (*(Src))) # else # define YYCOPY(Dst, Src, Count) \ do \ { \ - YYSIZE_T yyi; \ + YYPTRDIFF_T yyi; \ for (yyi = 0; yyi < (Count); yyi++) \ (Dst)[yyi] = (Src)[yyi]; \ } \ @@ -441,17 +488,20 @@ union yyalloc /* YYNSTATES -- Number of states. */ #define YYNSTATES 41 -#define YYUNDEFTOK 2 +/* YYMAXUTOK -- Last valid token kind. */ #define YYMAXUTOK 271 + /* YYTRANSLATE(TOKEN-NUM) -- Symbol number corresponding to TOKEN-NUM as returned by yylex, with out-of-bounds checking. */ -#define YYTRANSLATE(YYX) \ - ((unsigned) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) +#define YYTRANSLATE(YYX) \ + (0 <= (YYX) && (YYX) <= YYMAXUTOK \ + ? YY_CAST (yysymbol_kind_t, yytranslate[YYX]) \ + : YYSYMBOL_YYUNDEF) /* YYTRANSLATE[TOKEN-NUM] -- Symbol number corresponding to TOKEN-NUM as returned by yylex. */ -static const yytype_uint8 yytranslate[] = +static const yytype_int8 yytranslate[] = { 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, @@ -487,43 +537,57 @@ static const yytype_uint8 yytranslate[] = /* YYRLINE[YYN] -- Source line where rule number YYN was defined. */ static const yytype_uint8 yyrline[] = { - 0, 77, 77, 82, 85, 90, 93, 98, 101, 106, - 109, 112, 117, 120, 123, 128, 131, 134, 140, 145, - 148, 151, 154, 159, 162 + 0, 74, 74, 79, 82, 87, 90, 95, 98, 103, + 106, 109, 114, 117, 120, 125, 128, 131, 137, 142, + 145, 148, 151, 156, 159 }; #endif -#if YYDEBUG || YYERROR_VERBOSE || 1 +/** Accessing symbol of state STATE. */ +#define YY_ACCESSING_SYMBOL(State) YY_CAST (yysymbol_kind_t, yystos[State]) + +#if 1 +/* The user-facing name of the symbol whose (internal) number is + YYSYMBOL. No bounds checking. */ +static const char *yysymbol_name (yysymbol_kind_t yysymbol) YY_ATTRIBUTE_UNUSED; + /* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM. First, the terminals, then, starting at YYNTOKENS, nonterminals. */ static const char *const yytname[] = { - "$end", "error", "$undefined", "exp_PLUS", "exp_MINUS", "exp_TIMES", - "exp_DIVIDE", "exp_MOD", "exp_SHIFTLEFT", "exp_SHIFTRIGHT", - "exp_OPENPARENT", "exp_CLOSEPARENT", "exp_OR", "exp_AND", "exp_XOR", - "exp_NOT", "exp_NUMBER", "$accept", "start", "exp", "bitwiseor", - "bitwisexor", "bitwiseand", "shift", "term", "unary", "factor", YY_NULLPTR + "\"end of file\"", "error", "\"invalid token\"", "exp_PLUS", + "exp_MINUS", "exp_TIMES", "exp_DIVIDE", "exp_MOD", "exp_SHIFTLEFT", + "exp_SHIFTRIGHT", "exp_OPENPARENT", "exp_CLOSEPARENT", "exp_OR", + "exp_AND", "exp_XOR", "exp_NOT", "exp_NUMBER", "$accept", "start", "exp", + "bitwiseor", "bitwisexor", "bitwiseand", "shift", "term", "unary", + "factor", YY_NULLPTR }; + +static const char * +yysymbol_name (yysymbol_kind_t yysymbol) +{ + return yytname[yysymbol]; +} #endif -# ifdef YYPRINT +#ifdef YYPRINT /* YYTOKNUM[NUM] -- (External) token number corresponding to the (internal) symbol number NUM (which must be that of a token). */ -static const yytype_uint16 yytoknum[] = +static const yytype_int16 yytoknum[] = { 0, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271 }; -# endif +#endif -#define YYPACT_NINF -11 +#define YYPACT_NINF (-11) -#define yypact_value_is_default(Yystate) \ - (!!((Yystate) == (-11))) +#define yypact_value_is_default(Yyn) \ + ((Yyn) == YYPACT_NINF) -#define YYTABLE_NINF -1 +#define YYTABLE_NINF (-1) -#define yytable_value_is_error(Yytable_value) \ +#define yytable_value_is_error(Yyn) \ 0 /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing @@ -540,7 +604,7 @@ static const yytype_int8 yypact[] = /* YYDEFACT[STATE-NUM] -- Default reduction number in state STATE-NUM. Performed when YYTABLE does not specify something else to do. Zero means the default is an error. */ -static const yytype_uint8 yydefact[] = +static const yytype_int8 yydefact[] = { 0, 0, 0, 0, 0, 23, 0, 2, 3, 5, 7, 9, 12, 15, 19, 20, 21, 0, 22, 1, @@ -564,7 +628,7 @@ static const yytype_int8 yydefgoto[] = /* YYTABLE[YYPACT[STATE-NUM]] -- What to do in state STATE-NUM. If positive, shift that token. If negative, reduce the rule whose number is the opposite. If YYTABLE_NINF, syntax error. */ -static const yytype_uint8 yytable[] = +static const yytype_int8 yytable[] = { 15, 16, 20, 18, 1, 2, 19, 27, 28, 29, 21, 3, 23, 24, 25, 26, 4, 5, 30, 20, @@ -582,7 +646,7 @@ static const yytype_int8 yycheck[] = /* YYSTOS[STATE-NUM] -- The (internal number of the) accessing symbol of state STATE-NUM. */ -static const yytype_uint8 yystos[] = +static const yytype_int8 yystos[] = { 0, 3, 4, 10, 15, 16, 18, 19, 20, 21, 22, 23, 24, 25, 26, 25, 25, 19, 25, 0, @@ -592,7 +656,7 @@ static const yytype_uint8 yystos[] = }; /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */ -static const yytype_uint8 yyr1[] = +static const yytype_int8 yyr1[] = { 0, 17, 18, 19, 19, 20, 20, 21, 21, 22, 22, 22, 23, 23, 23, 24, 24, 24, 24, 25, @@ -600,7 +664,7 @@ static const yytype_uint8 yyr1[] = }; /* YYR2[YYN] -- Number of symbols on the right hand side of rule YYN. */ -static const yytype_uint8 yyr2[] = +static const yytype_int8 yyr2[] = { 0, 2, 1, 1, 3, 1, 3, 1, 3, 1, 3, 3, 1, 3, 3, 1, 3, 3, 3, 1, @@ -608,10 +672,10 @@ static const yytype_uint8 yyr2[] = }; +enum { YYENOMEM = -2 }; + #define yyerrok (yyerrstatus = 0) #define yyclearin (yychar = YYEMPTY) -#define YYEMPTY (-2) -#define YYEOF 0 #define YYACCEPT goto yyacceptlab #define YYABORT goto yyabortlab @@ -637,10 +701,9 @@ static const yytype_uint8 yyr2[] = } \ while (0) -/* Error token number */ -#define YYTERROR 1 -#define YYERRCODE 256 - +/* Backward compatibility with an undocumented macro. + Use YYerror or YYUNDEF. */ +#define YYERRCODE YYUNDEF /* Enable debugging if requested. */ @@ -658,18 +721,18 @@ do { \ } while (0) /* This macro is provided for backward compatibility. */ -#ifndef YY_LOCATION_PRINT -# define YY_LOCATION_PRINT(File, Loc) ((void) 0) -#endif +# ifndef YY_LOCATION_PRINT +# define YY_LOCATION_PRINT(File, Loc) ((void) 0) +# endif -# define YY_SYMBOL_PRINT(Title, Type, Value, Location) \ +# define YY_SYMBOL_PRINT(Title, Kind, Value, Location) \ do { \ if (yydebug) \ { \ YYFPRINTF (stderr, "%s ", Title); \ yy_symbol_print (stderr, \ - Type, Value, yyscanner); \ + Kind, Value, yyscanner); \ YYFPRINTF (stderr, "\n"); \ } \ } while (0) @@ -680,7 +743,8 @@ do { \ `-----------------------------------*/ static void -yy_symbol_value_print (FILE *yyo, int yytype, YYSTYPE const * const yyvaluep, yyscan_t yyscanner) +yy_symbol_value_print (FILE *yyo, + yysymbol_kind_t yykind, YYSTYPE const * const yyvaluep, yyscan_t yyscanner) { FILE *yyoutput = yyo; YYUSE (yyoutput); @@ -688,11 +752,11 @@ yy_symbol_value_print (FILE *yyo, int yytype, YYSTYPE const * const yyvaluep, yy if (!yyvaluep) return; # ifdef YYPRINT - if (yytype < YYNTOKENS) - YYPRINT (yyo, yytoknum[yytype], *yyvaluep); + if (yykind < YYNTOKENS) + YYPRINT (yyo, yytoknum[yykind], *yyvaluep); # endif YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN - YYUSE (yytype); + YYUSE (yykind); YY_IGNORE_MAYBE_UNINITIALIZED_END } @@ -702,12 +766,13 @@ yy_symbol_value_print (FILE *yyo, int yytype, YYSTYPE const * const yyvaluep, yy `---------------------------*/ static void -yy_symbol_print (FILE *yyo, int yytype, YYSTYPE const * const yyvaluep, yyscan_t yyscanner) +yy_symbol_print (FILE *yyo, + yysymbol_kind_t yykind, YYSTYPE const * const yyvaluep, yyscan_t yyscanner) { YYFPRINTF (yyo, "%s %s (", - yytype < YYNTOKENS ? "token" : "nterm", yytname[yytype]); + yykind < YYNTOKENS ? "token" : "nterm", yysymbol_name (yykind)); - yy_symbol_value_print (yyo, yytype, yyvaluep, yyscanner); + yy_symbol_value_print (yyo, yykind, yyvaluep, yyscanner); YYFPRINTF (yyo, ")"); } @@ -717,7 +782,7 @@ yy_symbol_print (FILE *yyo, int yytype, YYSTYPE const * const yyvaluep, yyscan_t `------------------------------------------------------------------*/ static void -yy_stack_print (yytype_int16 *yybottom, yytype_int16 *yytop) +yy_stack_print (yy_state_t *yybottom, yy_state_t *yytop) { YYFPRINTF (stderr, "Stack now"); for (; yybottom <= yytop; yybottom++) @@ -740,21 +805,21 @@ do { \ `------------------------------------------------*/ static void -yy_reduce_print (yytype_int16 *yyssp, YYSTYPE *yyvsp, int yyrule, yyscan_t yyscanner) +yy_reduce_print (yy_state_t *yyssp, YYSTYPE *yyvsp, + int yyrule, yyscan_t yyscanner) { - unsigned long yylno = yyrline[yyrule]; + int yylno = yyrline[yyrule]; int yynrhs = yyr2[yyrule]; int yyi; - YYFPRINTF (stderr, "Reducing stack by rule %d (line %lu):\n", + YYFPRINTF (stderr, "Reducing stack by rule %d (line %d):\n", yyrule - 1, yylno); /* The symbols being reduced. */ for (yyi = 0; yyi < yynrhs; yyi++) { YYFPRINTF (stderr, " $%d = ", yyi + 1); yy_symbol_print (stderr, - yystos[yyssp[yyi + 1 - yynrhs]], - &yyvsp[(yyi + 1) - (yynrhs)] - , yyscanner); + YY_ACCESSING_SYMBOL (+yyssp[yyi + 1 - yynrhs]), + &yyvsp[(yyi + 1) - (yynrhs)], yyscanner); YYFPRINTF (stderr, "\n"); } } @@ -769,8 +834,8 @@ do { \ multiple parsers can coexist. */ int yydebug; #else /* !YYDEBUG */ -# define YYDPRINTF(Args) -# define YY_SYMBOL_PRINT(Title, Type, Value, Location) +# define YYDPRINTF(Args) ((void) 0) +# define YY_SYMBOL_PRINT(Title, Kind, Value, Location) # define YY_STACK_PRINT(Bottom, Top) # define YY_REDUCE_PRINT(Rule) #endif /* !YYDEBUG */ @@ -793,28 +858,76 @@ int yydebug; #endif -#if YYERROR_VERBOSE +/* Context of a parse error. */ +typedef struct +{ + yy_state_t *yyssp; + yysymbol_kind_t yytoken; +} yypcontext_t; + +/* Put in YYARG at most YYARGN of the expected tokens given the + current YYCTX, and return the number of tokens stored in YYARG. If + YYARG is null, return the number of expected tokens (guaranteed to + be less than YYNTOKENS). Return YYENOMEM on memory exhaustion. + Return 0 if there are more than YYARGN expected tokens, yet fill + YYARG up to YYARGN. */ +static int +yypcontext_expected_tokens (const yypcontext_t *yyctx, + yysymbol_kind_t yyarg[], int yyargn) +{ + /* Actual size of YYARG. */ + int yycount = 0; + int yyn = yypact[+*yyctx->yyssp]; + if (!yypact_value_is_default (yyn)) + { + /* Start YYX at -YYN if negative to avoid negative indexes in + YYCHECK. In other words, skip the first -YYN actions for + this state because they are default actions. */ + int yyxbegin = yyn < 0 ? -yyn : 0; + /* Stay within bounds of both yycheck and yytname. */ + int yychecklim = YYLAST - yyn + 1; + int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS; + int yyx; + for (yyx = yyxbegin; yyx < yyxend; ++yyx) + if (yycheck[yyx + yyn] == yyx && yyx != YYSYMBOL_YYerror + && !yytable_value_is_error (yytable[yyx + yyn])) + { + if (!yyarg) + ++yycount; + else if (yycount == yyargn) + return 0; + else + yyarg[yycount++] = YY_CAST (yysymbol_kind_t, yyx); + } + } + if (yyarg && yycount == 0 && 0 < yyargn) + yyarg[0] = YYSYMBOL_YYEMPTY; + return yycount; +} -# ifndef yystrlen -# if defined __GLIBC__ && defined _STRING_H -# define yystrlen strlen -# else + + + +#ifndef yystrlen +# if defined __GLIBC__ && defined _STRING_H +# define yystrlen(S) (YY_CAST (YYPTRDIFF_T, strlen (S))) +# else /* Return the length of YYSTR. */ -static YYSIZE_T +static YYPTRDIFF_T yystrlen (const char *yystr) { - YYSIZE_T yylen; + YYPTRDIFF_T yylen; for (yylen = 0; yystr[yylen]; yylen++) continue; return yylen; } -# endif # endif +#endif -# ifndef yystpcpy -# if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE -# define yystpcpy stpcpy -# else +#ifndef yystpcpy +# if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE +# define yystpcpy stpcpy +# else /* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in YYDEST. */ static char * @@ -828,10 +941,10 @@ yystpcpy (char *yydest, const char *yysrc) return yyd - 1; } -# endif # endif +#endif -# ifndef yytnamerr +#ifndef yytnamerr /* Copy to YYRES the contents of YYSTR after stripping away unnecessary quotes and backslashes, so that it's suitable for yyerror. The heuristic is that double-quoting is unnecessary unless the string @@ -839,14 +952,13 @@ yystpcpy (char *yydest, const char *yysrc) backslash-backslash). YYSTR is taken from yytname. If YYRES is null, do not copy; instead, return the length of what the result would have been. */ -static YYSIZE_T +static YYPTRDIFF_T yytnamerr (char *yyres, const char *yystr) { if (*yystr == '"') { - YYSIZE_T yyn = 0; + YYPTRDIFF_T yyn = 0; char const *yyp = yystr; - for (;;) switch (*++yyp) { @@ -875,36 +987,20 @@ yytnamerr (char *yyres, const char *yystr) do_not_strip_quotes: ; } - if (! yyres) + if (yyres) + return yystpcpy (yyres, yystr) - yyres; + else return yystrlen (yystr); - - return (YYSIZE_T) (yystpcpy (yyres, yystr) - yyres); } -# endif +#endif -/* Copy into *YYMSG, which is of size *YYMSG_ALLOC, an error message - about the unexpected token YYTOKEN for the state stack whose top is - YYSSP. - Return 0 if *YYMSG was successfully written. Return 1 if *YYMSG is - not large enough to hold the message. In that case, also set - *YYMSG_ALLOC to the required number of bytes. Return 2 if the - required number of bytes is too large to store. */ static int -yysyntax_error (YYSIZE_T *yymsg_alloc, char **yymsg, - yytype_int16 *yyssp, int yytoken) +yy_syntax_error_arguments (const yypcontext_t *yyctx, + yysymbol_kind_t yyarg[], int yyargn) { - YYSIZE_T yysize0 = yytnamerr (YY_NULLPTR, yytname[yytoken]); - YYSIZE_T yysize = yysize0; - enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 }; - /* Internationalized format string. */ - const char *yyformat = YY_NULLPTR; - /* Arguments of yyformat. */ - char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM]; - /* Number of reported tokens (one for the "unexpected", one per - "expected"). */ + /* Actual size of YYARG. */ int yycount = 0; - /* There are many possibilities here to consider: - If this state is a consistent state with a default action, then the only way this function was invoked is if the default action @@ -928,49 +1024,54 @@ yysyntax_error (YYSIZE_T *yymsg_alloc, char **yymsg, one exception: it will still contain any token that will not be accepted due to an error action in a later state. */ - if (yytoken != YYEMPTY) + if (yyctx->yytoken != YYSYMBOL_YYEMPTY) { - int yyn = yypact[*yyssp]; - yyarg[yycount++] = yytname[yytoken]; - if (!yypact_value_is_default (yyn)) - { - /* Start YYX at -YYN if negative to avoid negative indexes in - YYCHECK. In other words, skip the first -YYN actions for - this state because they are default actions. */ - int yyxbegin = yyn < 0 ? -yyn : 0; - /* Stay within bounds of both yycheck and yytname. */ - int yychecklim = YYLAST - yyn + 1; - int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS; - int yyx; - - for (yyx = yyxbegin; yyx < yyxend; ++yyx) - if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR - && !yytable_value_is_error (yytable[yyx + yyn])) - { - if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM) - { - yycount = 1; - yysize = yysize0; - break; - } - yyarg[yycount++] = yytname[yyx]; - { - YYSIZE_T yysize1 = yysize + yytnamerr (YY_NULLPTR, yytname[yyx]); - if (yysize <= yysize1 && yysize1 <= YYSTACK_ALLOC_MAXIMUM) - yysize = yysize1; - else - return 2; - } - } - } + int yyn; + if (yyarg) + yyarg[yycount] = yyctx->yytoken; + ++yycount; + yyn = yypcontext_expected_tokens (yyctx, + yyarg ? yyarg + 1 : yyarg, yyargn - 1); + if (yyn == YYENOMEM) + return YYENOMEM; + else + yycount += yyn; } + return yycount; +} + +/* Copy into *YYMSG, which is of size *YYMSG_ALLOC, an error message + about the unexpected token YYTOKEN for the state stack whose top is + YYSSP. + + Return 0 if *YYMSG was successfully written. Return -1 if *YYMSG is + not large enough to hold the message. In that case, also set + *YYMSG_ALLOC to the required number of bytes. Return YYENOMEM if the + required number of bytes is too large to store. */ +static int +yysyntax_error (YYPTRDIFF_T *yymsg_alloc, char **yymsg, + const yypcontext_t *yyctx) +{ + enum { YYARGS_MAX = 5 }; + /* Internationalized format string. */ + const char *yyformat = YY_NULLPTR; + /* Arguments of yyformat: reported tokens (one for the "unexpected", + one per "expected"). */ + yysymbol_kind_t yyarg[YYARGS_MAX]; + /* Cumulated lengths of YYARG. */ + YYPTRDIFF_T yysize = 0; + + /* Actual size of YYARG. */ + int yycount = yy_syntax_error_arguments (yyctx, yyarg, YYARGS_MAX); + if (yycount == YYENOMEM) + return YYENOMEM; switch (yycount) { -# define YYCASE_(N, S) \ +#define YYCASE_(N, S) \ case N: \ yyformat = S; \ - break + break default: /* Avoid compiler warnings. */ YYCASE_(0, YY_("syntax error")); YYCASE_(1, YY_("syntax error, unexpected %s")); @@ -978,15 +1079,23 @@ yysyntax_error (YYSIZE_T *yymsg_alloc, char **yymsg, YYCASE_(3, YY_("syntax error, unexpected %s, expecting %s or %s")); YYCASE_(4, YY_("syntax error, unexpected %s, expecting %s or %s or %s")); YYCASE_(5, YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s")); -# undef YYCASE_ +#undef YYCASE_ } + /* Compute error message size. Don't count the "%s"s, but reserve + room for the terminator. */ + yysize = yystrlen (yyformat) - 2 * yycount + 1; { - YYSIZE_T yysize1 = yysize + yystrlen (yyformat); - if (yysize <= yysize1 && yysize1 <= YYSTACK_ALLOC_MAXIMUM) - yysize = yysize1; - else - return 2; + int yyi; + for (yyi = 0; yyi < yycount; ++yyi) + { + YYPTRDIFF_T yysize1 + = yysize + yytnamerr (YY_NULLPTR, yytname[yyarg[yyi]]); + if (yysize <= yysize1 && yysize1 <= YYSTACK_ALLOC_MAXIMUM) + yysize = yysize1; + else + return YYENOMEM; + } } if (*yymsg_alloc < yysize) @@ -995,7 +1104,7 @@ yysyntax_error (YYSIZE_T *yymsg_alloc, char **yymsg, if (! (yysize <= *yymsg_alloc && *yymsg_alloc <= YYSTACK_ALLOC_MAXIMUM)) *yymsg_alloc = YYSTACK_ALLOC_MAXIMUM; - return 1; + return -1; } /* Avoid sprintf, as that infringes on the user's name space. @@ -1007,40 +1116,43 @@ yysyntax_error (YYSIZE_T *yymsg_alloc, char **yymsg, while ((*yyp = *yyformat) != '\0') if (*yyp == '%' && yyformat[1] == 's' && yyi < yycount) { - yyp += yytnamerr (yyp, yyarg[yyi++]); + yyp += yytnamerr (yyp, yytname[yyarg[yyi++]]); yyformat += 2; } else { - yyp++; - yyformat++; + ++yyp; + ++yyformat; } } return 0; } -#endif /* YYERROR_VERBOSE */ + /*-----------------------------------------------. | Release the memory associated to this symbol. | `-----------------------------------------------*/ static void -yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep, yyscan_t yyscanner) +yydestruct (const char *yymsg, + yysymbol_kind_t yykind, YYSTYPE *yyvaluep, yyscan_t yyscanner) { YYUSE (yyvaluep); YYUSE (yyscanner); if (!yymsg) yymsg = "Deleting"; - YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp); + YY_SYMBOL_PRINT (yymsg, yykind, yyvaluep, yylocationp); YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN - YYUSE (yytype); + YYUSE (yykind); YY_IGNORE_MAYBE_UNINITIALIZED_END } + + /*----------. | yyparse. | `----------*/ @@ -1048,7 +1160,7 @@ yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep, yyscan_t yyscanner int yyparse (yyscan_t yyscanner) { -/* The lookahead symbol. */ +/* Lookahead token kind. */ int yychar; @@ -1059,45 +1171,41 @@ YY_INITIAL_VALUE (static YYSTYPE yyval_default;) YYSTYPE yylval YY_INITIAL_VALUE (= yyval_default); /* Number of syntax errors so far. */ - int yynerrs; + int yynerrs = 0; - int yystate; + yy_state_fast_t yystate = 0; /* Number of tokens to shift before error messages enabled. */ - int yyerrstatus; - - /* The stacks and their tools: - 'yyss': related to states. - 'yyvs': related to semantic values. + int yyerrstatus = 0; - Refer to the stacks through separate pointers, to allow yyoverflow + /* Refer to the stacks through separate pointers, to allow yyoverflow to reallocate them elsewhere. */ - /* The state stack. */ - yytype_int16 yyssa[YYINITDEPTH]; - yytype_int16 *yyss; - yytype_int16 *yyssp; + /* Their size. */ + YYPTRDIFF_T yystacksize = YYINITDEPTH; - /* The semantic value stack. */ - YYSTYPE yyvsa[YYINITDEPTH]; - YYSTYPE *yyvs; - YYSTYPE *yyvsp; + /* The state stack: array, bottom, top. */ + yy_state_t yyssa[YYINITDEPTH]; + yy_state_t *yyss = yyssa; + yy_state_t *yyssp = yyss; - YYSIZE_T yystacksize; + /* The semantic value stack: array, bottom, top. */ + YYSTYPE yyvsa[YYINITDEPTH]; + YYSTYPE *yyvs = yyvsa; + YYSTYPE *yyvsp = yyvs; int yyn; + /* The return value of yyparse. */ int yyresult; - /* Lookahead token as an internal (translated) token number. */ - int yytoken = 0; + /* Lookahead symbol kind. */ + yysymbol_kind_t yytoken = YYSYMBOL_YYEMPTY; /* The variables used to return semantic value and location from the action routines. */ YYSTYPE yyval; -#if YYERROR_VERBOSE /* Buffer for error messages, and its allocated size. */ char yymsgbuf[128]; char *yymsg = yymsgbuf; - YYSIZE_T yymsg_alloc = sizeof yymsgbuf; -#endif + YYPTRDIFF_T yymsg_alloc = sizeof yymsgbuf; #define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N)) @@ -1105,15 +1213,8 @@ YYSTYPE yylval YY_INITIAL_VALUE (= yyval_default); Keep to zero when no symbol should be popped. */ int yylen = 0; - yyssp = yyss = yyssa; - yyvsp = yyvs = yyvsa; - yystacksize = YYINITDEPTH; - YYDPRINTF ((stderr, "Starting parse\n")); - yystate = 0; - yyerrstatus = 0; - yynerrs = 0; yychar = YYEMPTY; /* Cause a token to be read. */ goto yysetstate; @@ -1128,12 +1229,15 @@ yynewstate: /*--------------------------------------------------------------------. -| yynewstate -- set current state (the top of the stack) to yystate. | +| yysetstate -- set current state (the top of the stack) to yystate. | `--------------------------------------------------------------------*/ yysetstate: YYDPRINTF ((stderr, "Entering state %d\n", yystate)); YY_ASSERT (0 <= yystate && yystate < YYNSTATES); - *yyssp = (yytype_int16) yystate; + YY_IGNORE_USELESS_CAST_BEGIN + *yyssp = YY_CAST (yy_state_t, yystate); + YY_IGNORE_USELESS_CAST_END + YY_STACK_PRINT (yyss, yyssp); if (yyss + yystacksize - 1 <= yyssp) #if !defined yyoverflow && !defined YYSTACK_RELOCATE @@ -1141,23 +1245,23 @@ yysetstate: #else { /* Get the current used size of the three stacks, in elements. */ - YYSIZE_T yysize = (YYSIZE_T) (yyssp - yyss + 1); + YYPTRDIFF_T yysize = yyssp - yyss + 1; # if defined yyoverflow { /* Give user a chance to reallocate the stack. Use copies of these so that the &'s don't force the real ones into memory. */ + yy_state_t *yyss1 = yyss; YYSTYPE *yyvs1 = yyvs; - yytype_int16 *yyss1 = yyss; /* Each stack pointer address is followed by the size of the data in use in that stack, in bytes. This used to be a conditional around just the two extra args, but that might be undefined if yyoverflow is a macro. */ yyoverflow (YY_("memory exhausted"), - &yyss1, yysize * sizeof (*yyssp), - &yyvs1, yysize * sizeof (*yyvsp), + &yyss1, yysize * YYSIZEOF (*yyssp), + &yyvs1, yysize * YYSIZEOF (*yyvsp), &yystacksize); yyss = yyss1; yyvs = yyvs1; @@ -1171,14 +1275,15 @@ yysetstate: yystacksize = YYMAXDEPTH; { - yytype_int16 *yyss1 = yyss; + yy_state_t *yyss1 = yyss; union yyalloc *yyptr = - (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize)); + YY_CAST (union yyalloc *, + YYSTACK_ALLOC (YY_CAST (YYSIZE_T, YYSTACK_BYTES (yystacksize)))); if (! yyptr) goto yyexhaustedlab; YYSTACK_RELOCATE (yyss_alloc, yyss); YYSTACK_RELOCATE (yyvs_alloc, yyvs); -# undef YYSTACK_RELOCATE +# undef YYSTACK_RELOCATE if (yyss1 != yyssa) YYSTACK_FREE (yyss1); } @@ -1187,8 +1292,10 @@ yysetstate: yyssp = yyss + yysize - 1; yyvsp = yyvs + yysize - 1; - YYDPRINTF ((stderr, "Stack size increased to %lu\n", - (unsigned long) yystacksize)); + YY_IGNORE_USELESS_CAST_BEGIN + YYDPRINTF ((stderr, "Stack size increased to %ld\n", + YY_CAST (long, yystacksize))); + YY_IGNORE_USELESS_CAST_END if (yyss + yystacksize - 1 <= yyssp) YYABORT; @@ -1215,18 +1322,29 @@ yybackup: /* Not known => get a lookahead token if don't already have one. */ - /* YYCHAR is either YYEMPTY or YYEOF or a valid lookahead symbol. */ + /* YYCHAR is either empty, or end-of-input, or a valid lookahead. */ if (yychar == YYEMPTY) { - YYDPRINTF ((stderr, "Reading a token: ")); + YYDPRINTF ((stderr, "Reading a token\n")); yychar = yylex (&yylval, yyscanner); } if (yychar <= YYEOF) { - yychar = yytoken = YYEOF; + yychar = YYEOF; + yytoken = YYSYMBOL_YYEOF; YYDPRINTF ((stderr, "Now at end of input.\n")); } + else if (yychar == YYerror) + { + /* The scanner already issued an error message, process directly + to error recovery. But do not keep the error token as + lookahead, it is too special and may lead us to an endless + loop in error recovery. */ + yychar = YYUNDEF; + yytoken = YYSYMBOL_YYerror; + goto yyerrlab1; + } else { yytoken = YYTRANSLATE (yychar); @@ -1254,14 +1372,13 @@ yybackup: /* Shift the lookahead token. */ YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc); - - /* Discard the shifted token. */ - yychar = YYEMPTY; - yystate = yyn; YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN *++yyvsp = yylval; YY_IGNORE_MAYBE_UNINITIALIZED_END + + /* Discard the shifted token. */ + yychar = YYEMPTY; goto yynewstate; @@ -1296,195 +1413,195 @@ yyreduce: YY_REDUCE_PRINT (yyn); switch (yyn) { - case 2: -#line 77 "cmExprParser.y" - { + case 2: /* start: exp */ +#line 74 "cmExprParser.y" + { cmExpr_yyget_extra(yyscanner)->SetResult((yyvsp[0].Number)); } -#line 1305 "cmExprParser.cxx" +#line 1422 "cmExprParser.cxx" break; - case 3: -#line 82 "cmExprParser.y" - { + case 3: /* exp: bitwiseor */ +#line 79 "cmExprParser.y" + { (yyval.Number) = (yyvsp[0].Number); } -#line 1313 "cmExprParser.cxx" +#line 1430 "cmExprParser.cxx" break; - case 4: -#line 85 "cmExprParser.y" - { + case 4: /* exp: exp exp_OR bitwiseor */ +#line 82 "cmExprParser.y" + { (yyval.Number) = (yyvsp[-2].Number) | (yyvsp[0].Number); } -#line 1321 "cmExprParser.cxx" +#line 1438 "cmExprParser.cxx" break; - case 5: -#line 90 "cmExprParser.y" - { + case 5: /* bitwiseor: bitwisexor */ +#line 87 "cmExprParser.y" + { (yyval.Number) = (yyvsp[0].Number); } -#line 1329 "cmExprParser.cxx" +#line 1446 "cmExprParser.cxx" break; - case 6: -#line 93 "cmExprParser.y" - { + case 6: /* bitwiseor: bitwiseor exp_XOR bitwisexor */ +#line 90 "cmExprParser.y" + { (yyval.Number) = (yyvsp[-2].Number) ^ (yyvsp[0].Number); } -#line 1337 "cmExprParser.cxx" +#line 1454 "cmExprParser.cxx" break; - case 7: -#line 98 "cmExprParser.y" - { + case 7: /* bitwisexor: bitwiseand */ +#line 95 "cmExprParser.y" + { (yyval.Number) = (yyvsp[0].Number); } -#line 1345 "cmExprParser.cxx" +#line 1462 "cmExprParser.cxx" break; - case 8: -#line 101 "cmExprParser.y" - { + case 8: /* bitwisexor: bitwisexor exp_AND bitwiseand */ +#line 98 "cmExprParser.y" + { (yyval.Number) = (yyvsp[-2].Number) & (yyvsp[0].Number); } -#line 1353 "cmExprParser.cxx" +#line 1470 "cmExprParser.cxx" break; - case 9: -#line 106 "cmExprParser.y" - { + case 9: /* bitwiseand: shift */ +#line 103 "cmExprParser.y" + { (yyval.Number) = (yyvsp[0].Number); } -#line 1361 "cmExprParser.cxx" +#line 1478 "cmExprParser.cxx" break; - case 10: -#line 109 "cmExprParser.y" - { + case 10: /* bitwiseand: bitwiseand exp_SHIFTLEFT shift */ +#line 106 "cmExprParser.y" + { (yyval.Number) = (yyvsp[-2].Number) << (yyvsp[0].Number); } -#line 1369 "cmExprParser.cxx" +#line 1486 "cmExprParser.cxx" break; - case 11: -#line 112 "cmExprParser.y" - { + case 11: /* bitwiseand: bitwiseand exp_SHIFTRIGHT shift */ +#line 109 "cmExprParser.y" + { (yyval.Number) = (yyvsp[-2].Number) >> (yyvsp[0].Number); } -#line 1377 "cmExprParser.cxx" +#line 1494 "cmExprParser.cxx" break; - case 12: -#line 117 "cmExprParser.y" - { + case 12: /* shift: term */ +#line 114 "cmExprParser.y" + { (yyval.Number) = (yyvsp[0].Number); } -#line 1385 "cmExprParser.cxx" +#line 1502 "cmExprParser.cxx" break; - case 13: -#line 120 "cmExprParser.y" - { + case 13: /* shift: shift exp_PLUS term */ +#line 117 "cmExprParser.y" + { (yyval.Number) = (yyvsp[-2].Number) + (yyvsp[0].Number); } -#line 1393 "cmExprParser.cxx" +#line 1510 "cmExprParser.cxx" break; - case 14: -#line 123 "cmExprParser.y" - { + case 14: /* shift: shift exp_MINUS term */ +#line 120 "cmExprParser.y" + { (yyval.Number) = (yyvsp[-2].Number) - (yyvsp[0].Number); } -#line 1401 "cmExprParser.cxx" +#line 1518 "cmExprParser.cxx" break; - case 15: -#line 128 "cmExprParser.y" - { + case 15: /* term: unary */ +#line 125 "cmExprParser.y" + { (yyval.Number) = (yyvsp[0].Number); } -#line 1409 "cmExprParser.cxx" +#line 1526 "cmExprParser.cxx" break; - case 16: -#line 131 "cmExprParser.y" - { + case 16: /* term: term exp_TIMES unary */ +#line 128 "cmExprParser.y" + { (yyval.Number) = (yyvsp[-2].Number) * (yyvsp[0].Number); } -#line 1417 "cmExprParser.cxx" +#line 1534 "cmExprParser.cxx" break; - case 17: -#line 134 "cmExprParser.y" - { + case 17: /* term: term exp_DIVIDE unary */ +#line 131 "cmExprParser.y" + { if (yyvsp[0].Number == 0) { throw std::overflow_error("divide by zero"); } (yyval.Number) = (yyvsp[-2].Number) / (yyvsp[0].Number); } -#line 1428 "cmExprParser.cxx" +#line 1545 "cmExprParser.cxx" break; - case 18: -#line 140 "cmExprParser.y" - { + case 18: /* term: term exp_MOD unary */ +#line 137 "cmExprParser.y" + { (yyval.Number) = (yyvsp[-2].Number) % (yyvsp[0].Number); } -#line 1436 "cmExprParser.cxx" +#line 1553 "cmExprParser.cxx" break; - case 19: -#line 145 "cmExprParser.y" - { + case 19: /* unary: factor */ +#line 142 "cmExprParser.y" + { (yyval.Number) = (yyvsp[0].Number); } -#line 1444 "cmExprParser.cxx" +#line 1561 "cmExprParser.cxx" break; - case 20: -#line 148 "cmExprParser.y" - { + case 20: /* unary: exp_PLUS unary */ +#line 145 "cmExprParser.y" + { (yyval.Number) = + (yyvsp[0].Number); } -#line 1452 "cmExprParser.cxx" +#line 1569 "cmExprParser.cxx" break; - case 21: -#line 151 "cmExprParser.y" - { + case 21: /* unary: exp_MINUS unary */ +#line 148 "cmExprParser.y" + { (yyval.Number) = - (yyvsp[0].Number); } -#line 1460 "cmExprParser.cxx" +#line 1577 "cmExprParser.cxx" break; - case 22: -#line 154 "cmExprParser.y" - { + case 22: /* unary: exp_NOT unary */ +#line 151 "cmExprParser.y" + { (yyval.Number) = ~ (yyvsp[0].Number); } -#line 1468 "cmExprParser.cxx" +#line 1585 "cmExprParser.cxx" break; - case 23: -#line 159 "cmExprParser.y" - { + case 23: /* factor: exp_NUMBER */ +#line 156 "cmExprParser.y" + { (yyval.Number) = (yyvsp[0].Number); } -#line 1476 "cmExprParser.cxx" +#line 1593 "cmExprParser.cxx" break; - case 24: -#line 162 "cmExprParser.y" - { + case 24: /* factor: exp_OPENPARENT exp exp_CLOSEPARENT */ +#line 159 "cmExprParser.y" + { (yyval.Number) = (yyvsp[-1].Number); } -#line 1484 "cmExprParser.cxx" +#line 1601 "cmExprParser.cxx" break; -#line 1488 "cmExprParser.cxx" +#line 1605 "cmExprParser.cxx" default: break; } @@ -1499,11 +1616,10 @@ yyreduce: case of YYERROR or YYBACKUP, subsequent parser actions might lead to an incorrect destructor call or verbose syntax error message before the lookahead is translated. */ - YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc); + YY_SYMBOL_PRINT ("-> $$ =", YY_CAST (yysymbol_kind_t, yyr1[yyn]), &yyval, &yyloc); YYPOPSTACK (yylen); yylen = 0; - YY_STACK_PRINT (yyss, yyssp); *++yyvsp = yyval; @@ -1527,50 +1643,44 @@ yyreduce: yyerrlab: /* Make sure we have latest lookahead translation. See comments at user semantic actions for why this is necessary. */ - yytoken = yychar == YYEMPTY ? YYEMPTY : YYTRANSLATE (yychar); - + yytoken = yychar == YYEMPTY ? YYSYMBOL_YYEMPTY : YYTRANSLATE (yychar); /* If not already recovering from an error, report this error. */ if (!yyerrstatus) { ++yynerrs; -#if ! YYERROR_VERBOSE - yyerror (yyscanner, YY_("syntax error")); -#else -# define YYSYNTAX_ERROR yysyntax_error (&yymsg_alloc, &yymsg, \ - yyssp, yytoken) { + yypcontext_t yyctx + = {yyssp, yytoken}; char const *yymsgp = YY_("syntax error"); int yysyntax_error_status; - yysyntax_error_status = YYSYNTAX_ERROR; + yysyntax_error_status = yysyntax_error (&yymsg_alloc, &yymsg, &yyctx); if (yysyntax_error_status == 0) yymsgp = yymsg; - else if (yysyntax_error_status == 1) + else if (yysyntax_error_status == -1) { if (yymsg != yymsgbuf) YYSTACK_FREE (yymsg); - yymsg = (char *) YYSTACK_ALLOC (yymsg_alloc); - if (!yymsg) + yymsg = YY_CAST (char *, + YYSTACK_ALLOC (YY_CAST (YYSIZE_T, yymsg_alloc))); + if (yymsg) { - yymsg = yymsgbuf; - yymsg_alloc = sizeof yymsgbuf; - yysyntax_error_status = 2; + yysyntax_error_status + = yysyntax_error (&yymsg_alloc, &yymsg, &yyctx); + yymsgp = yymsg; } else { - yysyntax_error_status = YYSYNTAX_ERROR; - yymsgp = yymsg; + yymsg = yymsgbuf; + yymsg_alloc = sizeof yymsgbuf; + yysyntax_error_status = YYENOMEM; } } yyerror (yyscanner, yymsgp); - if (yysyntax_error_status == 2) + if (yysyntax_error_status == YYENOMEM) goto yyexhaustedlab; } -# undef YYSYNTAX_ERROR -#endif } - - if (yyerrstatus == 3) { /* If just tried and failed to reuse lookahead token after an @@ -1590,7 +1700,6 @@ yyerrlab: } } -#if 0 /* Else will try to reuse lookahead token after shifting the error token. */ goto yyerrlab1; @@ -1618,16 +1727,16 @@ yyerrorlab: | yyerrlab1 -- common code for both syntax error and YYERROR. | `-------------------------------------------------------------*/ yyerrlab1: -#endif yyerrstatus = 3; /* Each real token shifted decrements this. */ + /* Pop stack until we find a state that shifts the error token. */ for (;;) { yyn = yypact[yystate]; if (!yypact_value_is_default (yyn)) { - yyn += YYTERROR; - if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR) + yyn += YYSYMBOL_YYerror; + if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) { yyn = yytable[yyn]; if (0 < yyn) @@ -1641,7 +1750,7 @@ yyerrlab1: yydestruct ("Error: popping", - yystos[yystate], yyvsp, yyscanner); + YY_ACCESSING_SYMBOL (yystate), yyvsp, yyscanner); YYPOPSTACK (1); yystate = *yyssp; YY_STACK_PRINT (yyss, yyssp); @@ -1653,7 +1762,7 @@ yyerrlab1: /* Shift the error token. */ - YY_SYMBOL_PRINT ("Shifting", yystos[yyn], yyvsp, yylsp); + YY_SYMBOL_PRINT ("Shifting", YY_ACCESSING_SYMBOL (yyn), yyvsp, yylsp); yystate = yyn; goto yynewstate; @@ -1675,20 +1784,20 @@ yyabortlab: goto yyreturn; -#if !defined yyoverflow || YYERROR_VERBOSE +#if 1 /*-------------------------------------------------. | yyexhaustedlab -- memory exhaustion comes here. | `-------------------------------------------------*/ yyexhaustedlab: yyerror (yyscanner, YY_("memory exhausted")); yyresult = 2; - /* Fall through. */ + goto yyreturn; #endif -/*-----------------------------------------------------. -| yyreturn -- parsing is finished, return the result. | -`-----------------------------------------------------*/ +/*-------------------------------------------------------. +| yyreturn -- parsing is finished, clean up and return. | +`-------------------------------------------------------*/ yyreturn: if (yychar != YYEMPTY) { @@ -1705,20 +1814,19 @@ yyreturn: while (yyssp != yyss) { yydestruct ("Cleanup: popping", - yystos[*yyssp], yyvsp, yyscanner); + YY_ACCESSING_SYMBOL (+*yyssp), yyvsp, yyscanner); YYPOPSTACK (1); } #ifndef yyoverflow if (yyss != yyssa) YYSTACK_FREE (yyss); #endif -#if YYERROR_VERBOSE if (yymsg != yymsgbuf) YYSTACK_FREE (yymsg); -#endif return yyresult; } -#line 167 "cmExprParser.y" + +#line 164 "cmExprParser.y" /* End of grammar */ diff --git a/Source/LexerParser/cmExprParserTokens.h b/Source/LexerParser/cmExprParserTokens.h index e30a832..2eb1fe9 100644 --- a/Source/LexerParser/cmExprParserTokens.h +++ b/Source/LexerParser/cmExprParserTokens.h @@ -1,8 +1,8 @@ -/* A Bison parser, made by GNU Bison 3.4.2. */ +/* A Bison parser, made by GNU Bison 3.7.4. */ /* Bison interface for Yacc-like parsers in C - Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2019 Free Software Foundation, + 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 @@ -31,8 +31,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. */ +/* DO NOT RELY ON FEATURES THAT ARE NOT DOCUMENTED in the manual, + especially those whose name start with YY_ or yy_. They are + private implementation details that can be changed or removed. */ #ifndef YY_CMEXPR_YY_CMEXPRPARSERTOKENS_H_INCLUDED # define YY_CMEXPR_YY_CMEXPRPARSERTOKENS_H_INCLUDED @@ -44,42 +45,32 @@ extern int cmExpr_yydebug; #endif -/* Token type. */ +/* Token kinds. */ #ifndef YYTOKENTYPE # define YYTOKENTYPE enum yytokentype { - exp_PLUS = 258, - exp_MINUS = 259, - exp_TIMES = 260, - exp_DIVIDE = 261, - exp_MOD = 262, - exp_SHIFTLEFT = 263, - exp_SHIFTRIGHT = 264, - exp_OPENPARENT = 265, - exp_CLOSEPARENT = 266, - exp_OR = 267, - exp_AND = 268, - exp_XOR = 269, - exp_NOT = 270, - exp_NUMBER = 271 + YYEMPTY = -2, + YYEOF = 0, /* "end of file" */ + YYerror = 256, /* error */ + YYUNDEF = 257, /* "invalid token" */ + exp_PLUS = 258, /* exp_PLUS */ + exp_MINUS = 259, /* exp_MINUS */ + exp_TIMES = 260, /* exp_TIMES */ + exp_DIVIDE = 261, /* exp_DIVIDE */ + exp_MOD = 262, /* exp_MOD */ + exp_SHIFTLEFT = 263, /* exp_SHIFTLEFT */ + exp_SHIFTRIGHT = 264, /* exp_SHIFTRIGHT */ + exp_OPENPARENT = 265, /* exp_OPENPARENT */ + exp_CLOSEPARENT = 266, /* exp_CLOSEPARENT */ + exp_OR = 267, /* exp_OR */ + exp_AND = 268, /* exp_AND */ + exp_XOR = 269, /* exp_XOR */ + exp_NOT = 270, /* exp_NOT */ + exp_NUMBER = 271 /* exp_NUMBER */ }; + typedef enum yytokentype yytoken_kind_t; #endif -/* Tokens. */ -#define exp_PLUS 258 -#define exp_MINUS 259 -#define exp_TIMES 260 -#define exp_DIVIDE 261 -#define exp_MOD 262 -#define exp_SHIFTLEFT 263 -#define exp_SHIFTRIGHT 264 -#define exp_OPENPARENT 265 -#define exp_CLOSEPARENT 266 -#define exp_OR 267 -#define exp_AND 268 -#define exp_XOR 269 -#define exp_NOT 270 -#define exp_NUMBER 271 /* Value type. */ diff --git a/Source/LexerParser/cmFortranParser.cxx b/Source/LexerParser/cmFortranParser.cxx index 2494aad..01a0b0a 100644 --- a/Source/LexerParser/cmFortranParser.cxx +++ b/Source/LexerParser/cmFortranParser.cxx @@ -1,8 +1,8 @@ -/* A Bison parser, made by GNU Bison 3.4.2. */ +/* A Bison parser, made by GNU Bison 3.7.4. */ /* Bison implementation for Yacc-like parsers in C - Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2019 Free Software Foundation, + 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 @@ -34,6 +34,10 @@ /* C LALR(1) parser skeleton written by Richard Stallman, by simplifying the original so-called "semantic" parser. */ +/* DO NOT RELY ON FEATURES THAT ARE NOT DOCUMENTED in the manual, + especially those whose name start with YY_ or yy_. They are + private implementation details that can be changed or removed. */ + /* All symbols defined below should begin with yy or YY, to avoid infringing on user name space. This should be done even for local variables, as they might otherwise be expanded by user macros. @@ -41,14 +45,11 @@ define necessary library symbols; they are noted "INFRINGES ON USER NAME SPACE" below. */ -/* Undocumented macros, especially those whose name start with YY_, - are private implementation details. Do not rely on them. */ - -/* Identify Bison output. */ -#define YYBISON 1 +/* Identify Bison output, and Bison version. */ +#define YYBISON 30704 -/* Bison version. */ -#define YYBISON_VERSION "3.4.2" +/* Bison version string. */ +#define YYBISON_VERSION "3.7.4" /* Skeleton name. */ #define YYSKELETON_NAME "yacc.c" @@ -70,7 +71,6 @@ #define yydebug cmFortran_yydebug #define yynerrs cmFortran_yynerrs - /* First part of user prologue. */ #line 1 "cmFortranParser.y" @@ -92,13 +92,11 @@ This file must be translated to C and modified to build everywhere. Run bison like this: - bison --yacc --name-prefix=cmFortran_yy + bison --name-prefix=cmFortran_yy --defines=cmFortranParserTokens.h -ocmFortranParser.cxx cmFortranParser.y -Modify cmFortranParser.cxx: - - "#if 0" out yyerrorlab block in range ["goto yyerrlab1", "yyerrlab1:"] */ #include "cmConfigure.h" // IWYU pragma: keep @@ -135,8 +133,17 @@ static void cmFortran_yyerror(yyscan_t yyscanner, const char* message) # pragma GCC diagnostic ignored "-Wconversion" #endif -#line 139 "cmFortranParser.cxx" +#line 137 "cmFortranParser.cxx" +# ifndef YY_CAST +# ifdef __cplusplus +# define YY_CAST(Type, Val) static_cast (Val) +# define YY_REINTERPRET_CAST(Type, Val) reinterpret_cast (Val) +# else +# define YY_CAST(Type, Val) ((Type) (Val)) +# define YY_REINTERPRET_CAST(Type, Val) ((Type) (Val)) +# endif +# endif # ifndef YY_NULLPTR # if defined __cplusplus # if 201103L <= __cplusplus @@ -149,132 +156,69 @@ static void cmFortran_yyerror(yyscan_t yyscanner, const char* message) # endif # endif -/* Enabling verbose error messages. */ -#ifdef YYERROR_VERBOSE -# undef YYERROR_VERBOSE -# define YYERROR_VERBOSE 1 -#else -# define YYERROR_VERBOSE 1 -#endif - -/* Use api.header.include to #include this header - instead of duplicating it here. */ -#ifndef YY_CMFORTRAN_YY_CMFORTRANPARSERTOKENS_H_INCLUDED -# define YY_CMFORTRAN_YY_CMFORTRANPARSERTOKENS_H_INCLUDED -/* Debug traces. */ -#ifndef YYDEBUG -# define YYDEBUG 0 -#endif -#if YYDEBUG -extern int cmFortran_yydebug; -#endif - -/* Token type. */ -#ifndef YYTOKENTYPE -# define YYTOKENTYPE - enum yytokentype - { - EOSTMT = 258, - ASSIGNMENT_OP = 259, - GARBAGE = 260, - CPP_LINE_DIRECTIVE = 261, - CPP_INCLUDE = 262, - F90PPR_INCLUDE = 263, - COCO_INCLUDE = 264, - F90PPR_DEFINE = 265, - CPP_DEFINE = 266, - F90PPR_UNDEF = 267, - CPP_UNDEF = 268, - CPP_IFDEF = 269, - CPP_IFNDEF = 270, - CPP_IF = 271, - CPP_ELSE = 272, - CPP_ELIF = 273, - CPP_ENDIF = 274, - F90PPR_IFDEF = 275, - F90PPR_IFNDEF = 276, - F90PPR_IF = 277, - F90PPR_ELSE = 278, - F90PPR_ELIF = 279, - F90PPR_ENDIF = 280, - COMMA = 281, - COLON = 282, - DCOLON = 283, - LPAREN = 284, - RPAREN = 285, - UNTERMINATED_STRING = 286, - STRING = 287, - WORD = 288, - CPP_INCLUDE_ANGLE = 289, - END = 290, - INCLUDE = 291, - INTERFACE = 292, - MODULE = 293, - SUBMODULE = 294, - USE = 295 - }; -#endif -/* Tokens. */ -#define EOSTMT 258 -#define ASSIGNMENT_OP 259 -#define GARBAGE 260 -#define CPP_LINE_DIRECTIVE 261 -#define CPP_INCLUDE 262 -#define F90PPR_INCLUDE 263 -#define COCO_INCLUDE 264 -#define F90PPR_DEFINE 265 -#define CPP_DEFINE 266 -#define F90PPR_UNDEF 267 -#define CPP_UNDEF 268 -#define CPP_IFDEF 269 -#define CPP_IFNDEF 270 -#define CPP_IF 271 -#define CPP_ELSE 272 -#define CPP_ELIF 273 -#define CPP_ENDIF 274 -#define F90PPR_IFDEF 275 -#define F90PPR_IFNDEF 276 -#define F90PPR_IF 277 -#define F90PPR_ELSE 278 -#define F90PPR_ELIF 279 -#define F90PPR_ENDIF 280 -#define COMMA 281 -#define COLON 282 -#define DCOLON 283 -#define LPAREN 284 -#define RPAREN 285 -#define UNTERMINATED_STRING 286 -#define STRING 287 -#define WORD 288 -#define CPP_INCLUDE_ANGLE 289 -#define END 290 -#define INCLUDE 291 -#define INTERFACE 292 -#define MODULE 293 -#define SUBMODULE 294 -#define USE 295 - -/* Value type. */ -#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED -union YYSTYPE +#include "cmFortranParserTokens.h" +/* Symbol kind. */ +enum yysymbol_kind_t { -#line 73 "cmFortranParser.y" - - char* string; - -#line 266 "cmFortranParser.cxx" - + YYSYMBOL_YYEMPTY = -2, + YYSYMBOL_YYEOF = 0, /* "end of file" */ + YYSYMBOL_YYerror = 1, /* error */ + YYSYMBOL_YYUNDEF = 2, /* "invalid token" */ + YYSYMBOL_EOSTMT = 3, /* EOSTMT */ + YYSYMBOL_ASSIGNMENT_OP = 4, /* ASSIGNMENT_OP */ + YYSYMBOL_GARBAGE = 5, /* GARBAGE */ + YYSYMBOL_CPP_LINE_DIRECTIVE = 6, /* CPP_LINE_DIRECTIVE */ + YYSYMBOL_CPP_INCLUDE = 7, /* CPP_INCLUDE */ + YYSYMBOL_F90PPR_INCLUDE = 8, /* F90PPR_INCLUDE */ + YYSYMBOL_COCO_INCLUDE = 9, /* COCO_INCLUDE */ + YYSYMBOL_F90PPR_DEFINE = 10, /* F90PPR_DEFINE */ + YYSYMBOL_CPP_DEFINE = 11, /* CPP_DEFINE */ + YYSYMBOL_F90PPR_UNDEF = 12, /* F90PPR_UNDEF */ + YYSYMBOL_CPP_UNDEF = 13, /* CPP_UNDEF */ + YYSYMBOL_CPP_IFDEF = 14, /* CPP_IFDEF */ + YYSYMBOL_CPP_IFNDEF = 15, /* CPP_IFNDEF */ + YYSYMBOL_CPP_IF = 16, /* CPP_IF */ + YYSYMBOL_CPP_ELSE = 17, /* CPP_ELSE */ + YYSYMBOL_CPP_ELIF = 18, /* CPP_ELIF */ + YYSYMBOL_CPP_ENDIF = 19, /* CPP_ENDIF */ + YYSYMBOL_F90PPR_IFDEF = 20, /* F90PPR_IFDEF */ + YYSYMBOL_F90PPR_IFNDEF = 21, /* F90PPR_IFNDEF */ + YYSYMBOL_F90PPR_IF = 22, /* F90PPR_IF */ + YYSYMBOL_F90PPR_ELSE = 23, /* F90PPR_ELSE */ + YYSYMBOL_F90PPR_ELIF = 24, /* F90PPR_ELIF */ + YYSYMBOL_F90PPR_ENDIF = 25, /* F90PPR_ENDIF */ + YYSYMBOL_COMMA = 26, /* COMMA */ + YYSYMBOL_COLON = 27, /* COLON */ + YYSYMBOL_DCOLON = 28, /* DCOLON */ + YYSYMBOL_LPAREN = 29, /* LPAREN */ + YYSYMBOL_RPAREN = 30, /* RPAREN */ + YYSYMBOL_UNTERMINATED_STRING = 31, /* UNTERMINATED_STRING */ + YYSYMBOL_STRING = 32, /* STRING */ + YYSYMBOL_WORD = 33, /* WORD */ + YYSYMBOL_CPP_INCLUDE_ANGLE = 34, /* CPP_INCLUDE_ANGLE */ + YYSYMBOL_END = 35, /* END */ + YYSYMBOL_INCLUDE = 36, /* INCLUDE */ + YYSYMBOL_INTERFACE = 37, /* INTERFACE */ + YYSYMBOL_MODULE = 38, /* MODULE */ + YYSYMBOL_SUBMODULE = 39, /* SUBMODULE */ + YYSYMBOL_USE = 40, /* USE */ + YYSYMBOL_YYACCEPT = 41, /* $accept */ + YYSYMBOL_code = 42, /* code */ + YYSYMBOL_stmt = 43, /* stmt */ + YYSYMBOL_include = 44, /* include */ + YYSYMBOL_define = 45, /* define */ + YYSYMBOL_undef = 46, /* undef */ + YYSYMBOL_ifdef = 47, /* ifdef */ + YYSYMBOL_ifndef = 48, /* ifndef */ + YYSYMBOL_if = 49, /* if */ + YYSYMBOL_elif = 50, /* elif */ + YYSYMBOL_else = 51, /* else */ + YYSYMBOL_endif = 52, /* endif */ + YYSYMBOL_other = 53, /* other */ + YYSYMBOL_misc_code = 54 /* misc_code */ }; -typedef union YYSTYPE YYSTYPE; -# define YYSTYPE_IS_TRIVIAL 1 -# define YYSTYPE_IS_DECLARED 1 -#endif - - +typedef enum yysymbol_kind_t yysymbol_kind_t; -int cmFortran_yyparse (yyscan_t yyscanner); - -#endif /* !YY_CMFORTRAN_YY_CMFORTRANPARSERTOKENS_H_INCLUDED */ @@ -282,28 +226,75 @@ int cmFortran_yyparse (yyscan_t yyscanner); # undef short #endif -#ifdef YYTYPE_UINT8 -typedef YYTYPE_UINT8 yytype_uint8; -#else -typedef unsigned char yytype_uint8; +/* On compilers that do not define __PTRDIFF_MAX__ etc., make sure + and (if available) are included + so that the code can choose integer types of a good width. */ + +#ifndef __PTRDIFF_MAX__ +# include /* INFRINGES ON USER NAME SPACE */ +# if defined __STDC_VERSION__ && 199901 <= __STDC_VERSION__ +# include /* INFRINGES ON USER NAME SPACE */ +# define YY_STDINT_H +# endif #endif -#ifdef YYTYPE_INT8 -typedef YYTYPE_INT8 yytype_int8; +/* Narrow types that promote to a signed type and that can represent a + signed or unsigned integer of at least N bits. In tables they can + save space and decrease cache pressure. Promoting to a signed type + helps avoid bugs in integer arithmetic. */ + +#ifdef __INT_LEAST8_MAX__ +typedef __INT_LEAST8_TYPE__ yytype_int8; +#elif defined YY_STDINT_H +typedef int_least8_t yytype_int8; #else typedef signed char yytype_int8; #endif -#ifdef YYTYPE_UINT16 -typedef YYTYPE_UINT16 yytype_uint16; +#ifdef __INT_LEAST16_MAX__ +typedef __INT_LEAST16_TYPE__ yytype_int16; +#elif defined YY_STDINT_H +typedef int_least16_t yytype_int16; #else -typedef unsigned short yytype_uint16; +typedef short yytype_int16; #endif -#ifdef YYTYPE_INT16 -typedef YYTYPE_INT16 yytype_int16; +#if defined __UINT_LEAST8_MAX__ && __UINT_LEAST8_MAX__ <= __INT_MAX__ +typedef __UINT_LEAST8_TYPE__ yytype_uint8; +#elif (!defined __UINT_LEAST8_MAX__ && defined YY_STDINT_H \ + && UINT_LEAST8_MAX <= INT_MAX) +typedef uint_least8_t yytype_uint8; +#elif !defined __UINT_LEAST8_MAX__ && UCHAR_MAX <= INT_MAX +typedef unsigned char yytype_uint8; #else -typedef short yytype_int16; +typedef short yytype_uint8; +#endif + +#if defined __UINT_LEAST16_MAX__ && __UINT_LEAST16_MAX__ <= __INT_MAX__ +typedef __UINT_LEAST16_TYPE__ yytype_uint16; +#elif (!defined __UINT_LEAST16_MAX__ && defined YY_STDINT_H \ + && UINT_LEAST16_MAX <= INT_MAX) +typedef uint_least16_t yytype_uint16; +#elif !defined __UINT_LEAST16_MAX__ && USHRT_MAX <= INT_MAX +typedef unsigned short yytype_uint16; +#else +typedef int yytype_uint16; +#endif + +#ifndef YYPTRDIFF_T +# if defined __PTRDIFF_TYPE__ && defined __PTRDIFF_MAX__ +# define YYPTRDIFF_T __PTRDIFF_TYPE__ +# define YYPTRDIFF_MAXIMUM __PTRDIFF_MAX__ +# elif defined PTRDIFF_MAX +# ifndef ptrdiff_t +# include /* INFRINGES ON USER NAME SPACE */ +# endif +# define YYPTRDIFF_T ptrdiff_t +# define YYPTRDIFF_MAXIMUM PTRDIFF_MAX +# else +# define YYPTRDIFF_T long +# define YYPTRDIFF_MAXIMUM LONG_MAX +# endif #endif #ifndef YYSIZE_T @@ -311,7 +302,7 @@ typedef short yytype_int16; # define YYSIZE_T __SIZE_TYPE__ # elif defined size_t # define YYSIZE_T size_t -# elif ! defined YYSIZE_T +# elif defined __STDC_VERSION__ && 199901 <= __STDC_VERSION__ # include /* INFRINGES ON USER NAME SPACE */ # define YYSIZE_T size_t # else @@ -319,7 +310,20 @@ typedef short yytype_int16; # endif #endif -#define YYSIZE_MAXIMUM ((YYSIZE_T) -1) +#define YYSIZE_MAXIMUM \ + YY_CAST (YYPTRDIFF_T, \ + (YYPTRDIFF_MAXIMUM < YY_CAST (YYSIZE_T, -1) \ + ? YYPTRDIFF_MAXIMUM \ + : YY_CAST (YYSIZE_T, -1))) + +#define YYSIZEOF(X) YY_CAST (YYPTRDIFF_T, sizeof (X)) + + +/* Stored state numbers (used for stacks). */ +typedef yytype_int8 yy_state_t; + +/* State numbers in computations. */ +typedef int yy_state_fast_t; #ifndef YY_ # if defined YYENABLE_NLS && YYENABLE_NLS @@ -333,22 +337,21 @@ typedef short yytype_int16; # endif #endif -#ifndef YY_ATTRIBUTE -# if (defined __GNUC__ \ - && (2 < __GNUC__ || (__GNUC__ == 2 && 96 <= __GNUC_MINOR__))) \ - || defined __SUNPRO_C && 0x5110 <= __SUNPRO_C -# define YY_ATTRIBUTE(Spec) __attribute__(Spec) -# else -# define YY_ATTRIBUTE(Spec) /* empty */ -# endif -#endif #ifndef YY_ATTRIBUTE_PURE -# define YY_ATTRIBUTE_PURE YY_ATTRIBUTE ((__pure__)) +# if defined __GNUC__ && 2 < __GNUC__ + (96 <= __GNUC_MINOR__) +# define YY_ATTRIBUTE_PURE __attribute__ ((__pure__)) +# else +# define YY_ATTRIBUTE_PURE +# endif #endif #ifndef YY_ATTRIBUTE_UNUSED -# define YY_ATTRIBUTE_UNUSED YY_ATTRIBUTE ((__unused__)) +# if defined __GNUC__ && 2 < __GNUC__ + (7 <= __GNUC_MINOR__) +# define YY_ATTRIBUTE_UNUSED __attribute__ ((__unused__)) +# else +# define YY_ATTRIBUTE_UNUSED +# endif #endif /* Suppress unused-variable warnings by "using" E. */ @@ -360,11 +363,11 @@ typedef short yytype_int16; #if defined __GNUC__ && ! defined __ICC && 407 <= __GNUC__ * 100 + __GNUC_MINOR__ /* Suppress an incorrect diagnostic about yylval being uninitialized. */ -# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \ - _Pragma ("GCC diagnostic push") \ - _Pragma ("GCC diagnostic ignored \"-Wuninitialized\"")\ +# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \ + _Pragma ("GCC diagnostic push") \ + _Pragma ("GCC diagnostic ignored \"-Wuninitialized\"") \ _Pragma ("GCC diagnostic ignored \"-Wmaybe-uninitialized\"") -# define YY_IGNORE_MAYBE_UNINITIALIZED_END \ +# define YY_IGNORE_MAYBE_UNINITIALIZED_END \ _Pragma ("GCC diagnostic pop") #else # define YY_INITIAL_VALUE(Value) Value @@ -377,10 +380,22 @@ typedef short yytype_int16; # define YY_INITIAL_VALUE(Value) /* Nothing. */ #endif +#if defined __cplusplus && defined __GNUC__ && ! defined __ICC && 6 <= __GNUC__ +# define YY_IGNORE_USELESS_CAST_BEGIN \ + _Pragma ("GCC diagnostic push") \ + _Pragma ("GCC diagnostic ignored \"-Wuseless-cast\"") +# define YY_IGNORE_USELESS_CAST_END \ + _Pragma ("GCC diagnostic pop") +#endif +#ifndef YY_IGNORE_USELESS_CAST_BEGIN +# define YY_IGNORE_USELESS_CAST_BEGIN +# define YY_IGNORE_USELESS_CAST_END +#endif + #define YY_ASSERT(E) ((void) (0 && (E))) -#if ! defined yyoverflow || YYERROR_VERBOSE +#if 1 /* The parser invokes alloca or malloc; define the necessary symbols. */ @@ -445,8 +460,7 @@ void free (void *); /* INFRINGES ON USER NAME SPACE */ # endif # endif # endif -#endif /* ! defined yyoverflow || YYERROR_VERBOSE */ - +#endif /* 1 */ #if (! defined yyoverflow \ && (! defined __cplusplus \ @@ -455,17 +469,17 @@ void free (void *); /* INFRINGES ON USER NAME SPACE */ /* A type that is properly aligned for any stack member. */ union yyalloc { - yytype_int16 yyss_alloc; + yy_state_t yyss_alloc; YYSTYPE yyvs_alloc; }; /* The size of the maximum gap between one aligned stack and the next. */ -# define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1) +# define YYSTACK_GAP_MAXIMUM (YYSIZEOF (union yyalloc) - 1) /* The size of an array large to enough to hold all stacks, each with N elements. */ # define YYSTACK_BYTES(N) \ - ((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \ + ((N) * (YYSIZEOF (yy_state_t) + YYSIZEOF (YYSTYPE)) \ + YYSTACK_GAP_MAXIMUM) # define YYCOPY_NEEDED 1 @@ -478,11 +492,11 @@ union yyalloc # define YYSTACK_RELOCATE(Stack_alloc, Stack) \ do \ { \ - YYSIZE_T yynewbytes; \ + YYPTRDIFF_T yynewbytes; \ YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \ Stack = &yyptr->Stack_alloc; \ - yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \ - yyptr += yynewbytes / sizeof (*yyptr); \ + yynewbytes = yystacksize * YYSIZEOF (*Stack) + YYSTACK_GAP_MAXIMUM; \ + yyptr += yynewbytes / YYSIZEOF (*yyptr); \ } \ while (0) @@ -494,12 +508,12 @@ union yyalloc # ifndef YYCOPY # if defined __GNUC__ && 1 < __GNUC__ # define YYCOPY(Dst, Src, Count) \ - __builtin_memcpy (Dst, Src, (Count) * sizeof (*(Src))) + __builtin_memcpy (Dst, Src, YY_CAST (YYSIZE_T, (Count)) * sizeof (*(Src))) # else # define YYCOPY(Dst, Src, Count) \ do \ { \ - YYSIZE_T yyi; \ + YYPTRDIFF_T yyi; \ for (yyi = 0; yyi < (Count); yyi++) \ (Dst)[yyi] = (Src)[yyi]; \ } \ @@ -522,17 +536,20 @@ union yyalloc /* YYNSTATES -- Number of states. */ #define YYNSTATES 127 -#define YYUNDEFTOK 2 +/* YYMAXUTOK -- Last valid token kind. */ #define YYMAXUTOK 295 + /* YYTRANSLATE(TOKEN-NUM) -- Symbol number corresponding to TOKEN-NUM as returned by yylex, with out-of-bounds checking. */ -#define YYTRANSLATE(YYX) \ - ((unsigned) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) +#define YYTRANSLATE(YYX) \ + (0 <= (YYX) && (YYX) <= YYMAXUTOK \ + ? YY_CAST (yysymbol_kind_t, yytranslate[YYX]) \ + : YYSYMBOL_YYUNDEF) /* YYTRANSLATE[TOKEN-NUM] -- Symbol number corresponding to TOKEN-NUM as returned by yylex. */ -static const yytype_uint8 yytranslate[] = +static const yytype_int8 yytranslate[] = { 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, @@ -570,38 +587,52 @@ static const yytype_uint8 yytranslate[] = /* YYRLINE[YYN] -- Source line where rule number YYN was defined. */ static const yytype_uint8 yyrline[] = { - 0, 101, 101, 101, 104, 108, 113, 122, 128, 135, - 140, 144, 149, 157, 162, 167, 172, 177, 182, 187, - 192, 197, 201, 205, 209, 213, 214, 219, 219, 219, - 220, 220, 221, 221, 222, 222, 223, 223, 224, 224, - 225, 225, 226, 226, 227, 227, 228, 228, 231, 232, - 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, - 243, 244, 245, 246, 247 + 0, 99, 99, 99, 102, 106, 111, 120, 126, 133, + 138, 142, 147, 155, 160, 165, 170, 175, 180, 185, + 190, 195, 199, 203, 207, 211, 212, 217, 217, 217, + 218, 218, 219, 219, 220, 220, 221, 221, 222, 222, + 223, 223, 224, 224, 225, 225, 226, 226, 229, 230, + 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, + 241, 242, 243, 244, 245 }; #endif -#if YYDEBUG || YYERROR_VERBOSE || 1 +/** Accessing symbol of state STATE. */ +#define YY_ACCESSING_SYMBOL(State) YY_CAST (yysymbol_kind_t, yystos[State]) + +#if 1 +/* The user-facing name of the symbol whose (internal) number is + YYSYMBOL. No bounds checking. */ +static const char *yysymbol_name (yysymbol_kind_t yysymbol) YY_ATTRIBUTE_UNUSED; + /* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM. First, the terminals, then, starting at YYNTOKENS, nonterminals. */ static const char *const yytname[] = { - "$end", "error", "$undefined", "EOSTMT", "ASSIGNMENT_OP", "GARBAGE", - "CPP_LINE_DIRECTIVE", "CPP_INCLUDE", "F90PPR_INCLUDE", "COCO_INCLUDE", - "F90PPR_DEFINE", "CPP_DEFINE", "F90PPR_UNDEF", "CPP_UNDEF", "CPP_IFDEF", - "CPP_IFNDEF", "CPP_IF", "CPP_ELSE", "CPP_ELIF", "CPP_ENDIF", - "F90PPR_IFDEF", "F90PPR_IFNDEF", "F90PPR_IF", "F90PPR_ELSE", - "F90PPR_ELIF", "F90PPR_ENDIF", "COMMA", "COLON", "DCOLON", "LPAREN", - "RPAREN", "UNTERMINATED_STRING", "STRING", "WORD", "CPP_INCLUDE_ANGLE", - "END", "INCLUDE", "INTERFACE", "MODULE", "SUBMODULE", "USE", "$accept", - "code", "stmt", "include", "define", "undef", "ifdef", "ifndef", "if", - "elif", "else", "endif", "other", "misc_code", YY_NULLPTR + "\"end of file\"", "error", "\"invalid token\"", "EOSTMT", + "ASSIGNMENT_OP", "GARBAGE", "CPP_LINE_DIRECTIVE", "CPP_INCLUDE", + "F90PPR_INCLUDE", "COCO_INCLUDE", "F90PPR_DEFINE", "CPP_DEFINE", + "F90PPR_UNDEF", "CPP_UNDEF", "CPP_IFDEF", "CPP_IFNDEF", "CPP_IF", + "CPP_ELSE", "CPP_ELIF", "CPP_ENDIF", "F90PPR_IFDEF", "F90PPR_IFNDEF", + "F90PPR_IF", "F90PPR_ELSE", "F90PPR_ELIF", "F90PPR_ENDIF", "COMMA", + "COLON", "DCOLON", "LPAREN", "RPAREN", "UNTERMINATED_STRING", "STRING", + "WORD", "CPP_INCLUDE_ANGLE", "END", "INCLUDE", "INTERFACE", "MODULE", + "SUBMODULE", "USE", "$accept", "code", "stmt", "include", "define", + "undef", "ifdef", "ifndef", "if", "elif", "else", "endif", "other", + "misc_code", YY_NULLPTR }; + +static const char * +yysymbol_name (yysymbol_kind_t yysymbol) +{ + return yytname[yysymbol]; +} #endif -# ifdef YYPRINT +#ifdef YYPRINT /* YYTOKNUM[NUM] -- (External) token number corresponding to the (internal) symbol number NUM (which must be that of a token). */ -static const yytype_uint16 yytoknum[] = +static const yytype_int16 yytoknum[] = { 0, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, @@ -609,16 +640,16 @@ static const yytype_uint16 yytoknum[] = 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295 }; -# endif +#endif -#define YYPACT_NINF -39 +#define YYPACT_NINF (-39) -#define yypact_value_is_default(Yystate) \ - (!!((Yystate) == (-39))) +#define yypact_value_is_default(Yyn) \ + ((Yyn) == YYPACT_NINF) -#define YYTABLE_NINF -1 +#define YYTABLE_NINF (-1) -#define yytable_value_is_error(Yytable_value) \ +#define yytable_value_is_error(Yyn) \ 0 /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing @@ -643,7 +674,7 @@ static const yytype_int16 yypact[] = /* YYDEFACT[STATE-NUM] -- Default reduction number in state STATE-NUM. Performed when YYTABLE does not specify something else to do. Zero means the default is an error. */ -static const yytype_uint8 yydefact[] = +static const yytype_int8 yydefact[] = { 2, 0, 1, 0, 25, 0, 27, 28, 29, 31, 30, 33, 32, 34, 36, 38, 42, 40, 44, 35, @@ -677,7 +708,7 @@ static const yytype_int8 yydefgoto[] = /* YYTABLE[YYPACT[STATE-NUM]] -- What to do in state STATE-NUM. If positive, shift that token. If negative, reduce the rule whose number is the opposite. If YYTABLE_NINF, syntax error. */ -static const yytype_uint8 yytable[] = +static const yytype_int8 yytable[] = { 59, 60, 61, 62, 42, 63, 105, 83, 84, 106, 85, 86, 43, 45, 46, 90, 91, 92, 93, 94, @@ -807,7 +838,7 @@ static const yytype_int8 yycheck[] = /* YYSTOS[STATE-NUM] -- The (internal number of the) accessing symbol of state STATE-NUM. */ -static const yytype_uint8 yystos[] = +static const yytype_int8 yystos[] = { 0, 42, 0, 1, 3, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, @@ -825,7 +856,7 @@ static const yytype_uint8 yystos[] = }; /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */ -static const yytype_uint8 yyr1[] = +static const yytype_int8 yyr1[] = { 0, 41, 42, 42, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, @@ -837,7 +868,7 @@ static const yytype_uint8 yyr1[] = }; /* YYR2[YYN] -- Number of symbols on the right hand side of rule YYN. */ -static const yytype_uint8 yyr2[] = +static const yytype_int8 yyr2[] = { 0, 2, 0, 2, 2, 4, 4, 7, 9, 4, 4, 5, 7, 4, 4, 3, 4, 4, 4, 4, @@ -849,10 +880,10 @@ static const yytype_uint8 yyr2[] = }; +enum { YYENOMEM = -2 }; + #define yyerrok (yyerrstatus = 0) #define yyclearin (yychar = YYEMPTY) -#define YYEMPTY (-2) -#define YYEOF 0 #define YYACCEPT goto yyacceptlab #define YYABORT goto yyabortlab @@ -878,10 +909,9 @@ static const yytype_uint8 yyr2[] = } \ while (0) -/* Error token number */ -#define YYTERROR 1 -#define YYERRCODE 256 - +/* Backward compatibility with an undocumented macro. + Use YYerror or YYUNDEF. */ +#define YYERRCODE YYUNDEF /* Enable debugging if requested. */ @@ -899,18 +929,18 @@ do { \ } while (0) /* This macro is provided for backward compatibility. */ -#ifndef YY_LOCATION_PRINT -# define YY_LOCATION_PRINT(File, Loc) ((void) 0) -#endif +# ifndef YY_LOCATION_PRINT +# define YY_LOCATION_PRINT(File, Loc) ((void) 0) +# endif -# define YY_SYMBOL_PRINT(Title, Type, Value, Location) \ +# define YY_SYMBOL_PRINT(Title, Kind, Value, Location) \ do { \ if (yydebug) \ { \ YYFPRINTF (stderr, "%s ", Title); \ yy_symbol_print (stderr, \ - Type, Value, yyscanner); \ + Kind, Value, yyscanner); \ YYFPRINTF (stderr, "\n"); \ } \ } while (0) @@ -921,7 +951,8 @@ do { \ `-----------------------------------*/ static void -yy_symbol_value_print (FILE *yyo, int yytype, YYSTYPE const * const yyvaluep, yyscan_t yyscanner) +yy_symbol_value_print (FILE *yyo, + yysymbol_kind_t yykind, YYSTYPE const * const yyvaluep, yyscan_t yyscanner) { FILE *yyoutput = yyo; YYUSE (yyoutput); @@ -929,11 +960,11 @@ yy_symbol_value_print (FILE *yyo, int yytype, YYSTYPE const * const yyvaluep, yy if (!yyvaluep) return; # ifdef YYPRINT - if (yytype < YYNTOKENS) - YYPRINT (yyo, yytoknum[yytype], *yyvaluep); + if (yykind < YYNTOKENS) + YYPRINT (yyo, yytoknum[yykind], *yyvaluep); # endif YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN - YYUSE (yytype); + YYUSE (yykind); YY_IGNORE_MAYBE_UNINITIALIZED_END } @@ -943,12 +974,13 @@ yy_symbol_value_print (FILE *yyo, int yytype, YYSTYPE const * const yyvaluep, yy `---------------------------*/ static void -yy_symbol_print (FILE *yyo, int yytype, YYSTYPE const * const yyvaluep, yyscan_t yyscanner) +yy_symbol_print (FILE *yyo, + yysymbol_kind_t yykind, YYSTYPE const * const yyvaluep, yyscan_t yyscanner) { YYFPRINTF (yyo, "%s %s (", - yytype < YYNTOKENS ? "token" : "nterm", yytname[yytype]); + yykind < YYNTOKENS ? "token" : "nterm", yysymbol_name (yykind)); - yy_symbol_value_print (yyo, yytype, yyvaluep, yyscanner); + yy_symbol_value_print (yyo, yykind, yyvaluep, yyscanner); YYFPRINTF (yyo, ")"); } @@ -958,7 +990,7 @@ yy_symbol_print (FILE *yyo, int yytype, YYSTYPE const * const yyvaluep, yyscan_t `------------------------------------------------------------------*/ static void -yy_stack_print (yytype_int16 *yybottom, yytype_int16 *yytop) +yy_stack_print (yy_state_t *yybottom, yy_state_t *yytop) { YYFPRINTF (stderr, "Stack now"); for (; yybottom <= yytop; yybottom++) @@ -981,21 +1013,21 @@ do { \ `------------------------------------------------*/ static void -yy_reduce_print (yytype_int16 *yyssp, YYSTYPE *yyvsp, int yyrule, yyscan_t yyscanner) +yy_reduce_print (yy_state_t *yyssp, YYSTYPE *yyvsp, + int yyrule, yyscan_t yyscanner) { - unsigned long yylno = yyrline[yyrule]; + int yylno = yyrline[yyrule]; int yynrhs = yyr2[yyrule]; int yyi; - YYFPRINTF (stderr, "Reducing stack by rule %d (line %lu):\n", + YYFPRINTF (stderr, "Reducing stack by rule %d (line %d):\n", yyrule - 1, yylno); /* The symbols being reduced. */ for (yyi = 0; yyi < yynrhs; yyi++) { YYFPRINTF (stderr, " $%d = ", yyi + 1); yy_symbol_print (stderr, - yystos[yyssp[yyi + 1 - yynrhs]], - &yyvsp[(yyi + 1) - (yynrhs)] - , yyscanner); + YY_ACCESSING_SYMBOL (+yyssp[yyi + 1 - yynrhs]), + &yyvsp[(yyi + 1) - (yynrhs)], yyscanner); YYFPRINTF (stderr, "\n"); } } @@ -1010,8 +1042,8 @@ do { \ multiple parsers can coexist. */ int yydebug; #else /* !YYDEBUG */ -# define YYDPRINTF(Args) -# define YY_SYMBOL_PRINT(Title, Type, Value, Location) +# define YYDPRINTF(Args) ((void) 0) +# define YY_SYMBOL_PRINT(Title, Kind, Value, Location) # define YY_STACK_PRINT(Bottom, Top) # define YY_REDUCE_PRINT(Rule) #endif /* !YYDEBUG */ @@ -1034,28 +1066,76 @@ int yydebug; #endif -#if YYERROR_VERBOSE +/* Context of a parse error. */ +typedef struct +{ + yy_state_t *yyssp; + yysymbol_kind_t yytoken; +} yypcontext_t; + +/* Put in YYARG at most YYARGN of the expected tokens given the + current YYCTX, and return the number of tokens stored in YYARG. If + YYARG is null, return the number of expected tokens (guaranteed to + be less than YYNTOKENS). Return YYENOMEM on memory exhaustion. + Return 0 if there are more than YYARGN expected tokens, yet fill + YYARG up to YYARGN. */ +static int +yypcontext_expected_tokens (const yypcontext_t *yyctx, + yysymbol_kind_t yyarg[], int yyargn) +{ + /* Actual size of YYARG. */ + int yycount = 0; + int yyn = yypact[+*yyctx->yyssp]; + if (!yypact_value_is_default (yyn)) + { + /* Start YYX at -YYN if negative to avoid negative indexes in + YYCHECK. In other words, skip the first -YYN actions for + this state because they are default actions. */ + int yyxbegin = yyn < 0 ? -yyn : 0; + /* Stay within bounds of both yycheck and yytname. */ + int yychecklim = YYLAST - yyn + 1; + int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS; + int yyx; + for (yyx = yyxbegin; yyx < yyxend; ++yyx) + if (yycheck[yyx + yyn] == yyx && yyx != YYSYMBOL_YYerror + && !yytable_value_is_error (yytable[yyx + yyn])) + { + if (!yyarg) + ++yycount; + else if (yycount == yyargn) + return 0; + else + yyarg[yycount++] = YY_CAST (yysymbol_kind_t, yyx); + } + } + if (yyarg && yycount == 0 && 0 < yyargn) + yyarg[0] = YYSYMBOL_YYEMPTY; + return yycount; +} -# ifndef yystrlen -# if defined __GLIBC__ && defined _STRING_H -# define yystrlen strlen -# else + + + +#ifndef yystrlen +# if defined __GLIBC__ && defined _STRING_H +# define yystrlen(S) (YY_CAST (YYPTRDIFF_T, strlen (S))) +# else /* Return the length of YYSTR. */ -static YYSIZE_T +static YYPTRDIFF_T yystrlen (const char *yystr) { - YYSIZE_T yylen; + YYPTRDIFF_T yylen; for (yylen = 0; yystr[yylen]; yylen++) continue; return yylen; } -# endif # endif +#endif -# ifndef yystpcpy -# if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE -# define yystpcpy stpcpy -# else +#ifndef yystpcpy +# if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE +# define yystpcpy stpcpy +# else /* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in YYDEST. */ static char * @@ -1069,10 +1149,10 @@ yystpcpy (char *yydest, const char *yysrc) return yyd - 1; } -# endif # endif +#endif -# ifndef yytnamerr +#ifndef yytnamerr /* Copy to YYRES the contents of YYSTR after stripping away unnecessary quotes and backslashes, so that it's suitable for yyerror. The heuristic is that double-quoting is unnecessary unless the string @@ -1080,14 +1160,13 @@ yystpcpy (char *yydest, const char *yysrc) backslash-backslash). YYSTR is taken from yytname. If YYRES is null, do not copy; instead, return the length of what the result would have been. */ -static YYSIZE_T +static YYPTRDIFF_T yytnamerr (char *yyres, const char *yystr) { if (*yystr == '"') { - YYSIZE_T yyn = 0; + YYPTRDIFF_T yyn = 0; char const *yyp = yystr; - for (;;) switch (*++yyp) { @@ -1116,36 +1195,20 @@ yytnamerr (char *yyres, const char *yystr) do_not_strip_quotes: ; } - if (! yyres) + if (yyres) + return yystpcpy (yyres, yystr) - yyres; + else return yystrlen (yystr); - - return (YYSIZE_T) (yystpcpy (yyres, yystr) - yyres); } -# endif +#endif -/* Copy into *YYMSG, which is of size *YYMSG_ALLOC, an error message - about the unexpected token YYTOKEN for the state stack whose top is - YYSSP. - Return 0 if *YYMSG was successfully written. Return 1 if *YYMSG is - not large enough to hold the message. In that case, also set - *YYMSG_ALLOC to the required number of bytes. Return 2 if the - required number of bytes is too large to store. */ static int -yysyntax_error (YYSIZE_T *yymsg_alloc, char **yymsg, - yytype_int16 *yyssp, int yytoken) +yy_syntax_error_arguments (const yypcontext_t *yyctx, + yysymbol_kind_t yyarg[], int yyargn) { - YYSIZE_T yysize0 = yytnamerr (YY_NULLPTR, yytname[yytoken]); - YYSIZE_T yysize = yysize0; - enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 }; - /* Internationalized format string. */ - const char *yyformat = YY_NULLPTR; - /* Arguments of yyformat. */ - char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM]; - /* Number of reported tokens (one for the "unexpected", one per - "expected"). */ + /* Actual size of YYARG. */ int yycount = 0; - /* There are many possibilities here to consider: - If this state is a consistent state with a default action, then the only way this function was invoked is if the default action @@ -1169,49 +1232,54 @@ yysyntax_error (YYSIZE_T *yymsg_alloc, char **yymsg, one exception: it will still contain any token that will not be accepted due to an error action in a later state. */ - if (yytoken != YYEMPTY) + if (yyctx->yytoken != YYSYMBOL_YYEMPTY) { - int yyn = yypact[*yyssp]; - yyarg[yycount++] = yytname[yytoken]; - if (!yypact_value_is_default (yyn)) - { - /* Start YYX at -YYN if negative to avoid negative indexes in - YYCHECK. In other words, skip the first -YYN actions for - this state because they are default actions. */ - int yyxbegin = yyn < 0 ? -yyn : 0; - /* Stay within bounds of both yycheck and yytname. */ - int yychecklim = YYLAST - yyn + 1; - int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS; - int yyx; - - for (yyx = yyxbegin; yyx < yyxend; ++yyx) - if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR - && !yytable_value_is_error (yytable[yyx + yyn])) - { - if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM) - { - yycount = 1; - yysize = yysize0; - break; - } - yyarg[yycount++] = yytname[yyx]; - { - YYSIZE_T yysize1 = yysize + yytnamerr (YY_NULLPTR, yytname[yyx]); - if (yysize <= yysize1 && yysize1 <= YYSTACK_ALLOC_MAXIMUM) - yysize = yysize1; - else - return 2; - } - } - } + int yyn; + if (yyarg) + yyarg[yycount] = yyctx->yytoken; + ++yycount; + yyn = yypcontext_expected_tokens (yyctx, + yyarg ? yyarg + 1 : yyarg, yyargn - 1); + if (yyn == YYENOMEM) + return YYENOMEM; + else + yycount += yyn; } + return yycount; +} + +/* Copy into *YYMSG, which is of size *YYMSG_ALLOC, an error message + about the unexpected token YYTOKEN for the state stack whose top is + YYSSP. + + Return 0 if *YYMSG was successfully written. Return -1 if *YYMSG is + not large enough to hold the message. In that case, also set + *YYMSG_ALLOC to the required number of bytes. Return YYENOMEM if the + required number of bytes is too large to store. */ +static int +yysyntax_error (YYPTRDIFF_T *yymsg_alloc, char **yymsg, + const yypcontext_t *yyctx) +{ + enum { YYARGS_MAX = 5 }; + /* Internationalized format string. */ + const char *yyformat = YY_NULLPTR; + /* Arguments of yyformat: reported tokens (one for the "unexpected", + one per "expected"). */ + yysymbol_kind_t yyarg[YYARGS_MAX]; + /* Cumulated lengths of YYARG. */ + YYPTRDIFF_T yysize = 0; + + /* Actual size of YYARG. */ + int yycount = yy_syntax_error_arguments (yyctx, yyarg, YYARGS_MAX); + if (yycount == YYENOMEM) + return YYENOMEM; switch (yycount) { -# define YYCASE_(N, S) \ +#define YYCASE_(N, S) \ case N: \ yyformat = S; \ - break + break default: /* Avoid compiler warnings. */ YYCASE_(0, YY_("syntax error")); YYCASE_(1, YY_("syntax error, unexpected %s")); @@ -1219,15 +1287,23 @@ yysyntax_error (YYSIZE_T *yymsg_alloc, char **yymsg, YYCASE_(3, YY_("syntax error, unexpected %s, expecting %s or %s")); YYCASE_(4, YY_("syntax error, unexpected %s, expecting %s or %s or %s")); YYCASE_(5, YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s")); -# undef YYCASE_ +#undef YYCASE_ } + /* Compute error message size. Don't count the "%s"s, but reserve + room for the terminator. */ + yysize = yystrlen (yyformat) - 2 * yycount + 1; { - YYSIZE_T yysize1 = yysize + yystrlen (yyformat); - if (yysize <= yysize1 && yysize1 <= YYSTACK_ALLOC_MAXIMUM) - yysize = yysize1; - else - return 2; + int yyi; + for (yyi = 0; yyi < yycount; ++yyi) + { + YYPTRDIFF_T yysize1 + = yysize + yytnamerr (YY_NULLPTR, yytname[yyarg[yyi]]); + if (yysize <= yysize1 && yysize1 <= YYSTACK_ALLOC_MAXIMUM) + yysize = yysize1; + else + return YYENOMEM; + } } if (*yymsg_alloc < yysize) @@ -1236,7 +1312,7 @@ yysyntax_error (YYSIZE_T *yymsg_alloc, char **yymsg, if (! (yysize <= *yymsg_alloc && *yymsg_alloc <= YYSTACK_ALLOC_MAXIMUM)) *yymsg_alloc = YYSTACK_ALLOC_MAXIMUM; - return 1; + return -1; } /* Avoid sprintf, as that infringes on the user's name space. @@ -1248,40 +1324,43 @@ yysyntax_error (YYSIZE_T *yymsg_alloc, char **yymsg, while ((*yyp = *yyformat) != '\0') if (*yyp == '%' && yyformat[1] == 's' && yyi < yycount) { - yyp += yytnamerr (yyp, yyarg[yyi++]); + yyp += yytnamerr (yyp, yytname[yyarg[yyi++]]); yyformat += 2; } else { - yyp++; - yyformat++; + ++yyp; + ++yyformat; } } return 0; } -#endif /* YYERROR_VERBOSE */ + /*-----------------------------------------------. | Release the memory associated to this symbol. | `-----------------------------------------------*/ static void -yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep, yyscan_t yyscanner) +yydestruct (const char *yymsg, + yysymbol_kind_t yykind, YYSTYPE *yyvaluep, yyscan_t yyscanner) { YYUSE (yyvaluep); YYUSE (yyscanner); if (!yymsg) yymsg = "Deleting"; - YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp); + YY_SYMBOL_PRINT (yymsg, yykind, yyvaluep, yylocationp); YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN - YYUSE (yytype); + YYUSE (yykind); YY_IGNORE_MAYBE_UNINITIALIZED_END } + + /*----------. | yyparse. | `----------*/ @@ -1289,7 +1368,7 @@ yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep, yyscan_t yyscanner int yyparse (yyscan_t yyscanner) { -/* The lookahead symbol. */ +/* Lookahead token kind. */ int yychar; @@ -1300,45 +1379,41 @@ YY_INITIAL_VALUE (static YYSTYPE yyval_default;) YYSTYPE yylval YY_INITIAL_VALUE (= yyval_default); /* Number of syntax errors so far. */ - int yynerrs; + int yynerrs = 0; - int yystate; + yy_state_fast_t yystate = 0; /* Number of tokens to shift before error messages enabled. */ - int yyerrstatus; - - /* The stacks and their tools: - 'yyss': related to states. - 'yyvs': related to semantic values. + int yyerrstatus = 0; - Refer to the stacks through separate pointers, to allow yyoverflow + /* Refer to the stacks through separate pointers, to allow yyoverflow to reallocate them elsewhere. */ - /* The state stack. */ - yytype_int16 yyssa[YYINITDEPTH]; - yytype_int16 *yyss; - yytype_int16 *yyssp; + /* Their size. */ + YYPTRDIFF_T yystacksize = YYINITDEPTH; - /* The semantic value stack. */ - YYSTYPE yyvsa[YYINITDEPTH]; - YYSTYPE *yyvs; - YYSTYPE *yyvsp; + /* The state stack: array, bottom, top. */ + yy_state_t yyssa[YYINITDEPTH]; + yy_state_t *yyss = yyssa; + yy_state_t *yyssp = yyss; - YYSIZE_T yystacksize; + /* The semantic value stack: array, bottom, top. */ + YYSTYPE yyvsa[YYINITDEPTH]; + YYSTYPE *yyvs = yyvsa; + YYSTYPE *yyvsp = yyvs; int yyn; + /* The return value of yyparse. */ int yyresult; - /* Lookahead token as an internal (translated) token number. */ - int yytoken = 0; + /* Lookahead symbol kind. */ + yysymbol_kind_t yytoken = YYSYMBOL_YYEMPTY; /* The variables used to return semantic value and location from the action routines. */ YYSTYPE yyval; -#if YYERROR_VERBOSE /* Buffer for error messages, and its allocated size. */ char yymsgbuf[128]; char *yymsg = yymsgbuf; - YYSIZE_T yymsg_alloc = sizeof yymsgbuf; -#endif + YYPTRDIFF_T yymsg_alloc = sizeof yymsgbuf; #define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N)) @@ -1346,15 +1421,8 @@ YYSTYPE yylval YY_INITIAL_VALUE (= yyval_default); Keep to zero when no symbol should be popped. */ int yylen = 0; - yyssp = yyss = yyssa; - yyvsp = yyvs = yyvsa; - yystacksize = YYINITDEPTH; - YYDPRINTF ((stderr, "Starting parse\n")); - yystate = 0; - yyerrstatus = 0; - yynerrs = 0; yychar = YYEMPTY; /* Cause a token to be read. */ goto yysetstate; @@ -1369,12 +1437,15 @@ yynewstate: /*--------------------------------------------------------------------. -| yynewstate -- set current state (the top of the stack) to yystate. | +| yysetstate -- set current state (the top of the stack) to yystate. | `--------------------------------------------------------------------*/ yysetstate: YYDPRINTF ((stderr, "Entering state %d\n", yystate)); YY_ASSERT (0 <= yystate && yystate < YYNSTATES); - *yyssp = (yytype_int16) yystate; + YY_IGNORE_USELESS_CAST_BEGIN + *yyssp = YY_CAST (yy_state_t, yystate); + YY_IGNORE_USELESS_CAST_END + YY_STACK_PRINT (yyss, yyssp); if (yyss + yystacksize - 1 <= yyssp) #if !defined yyoverflow && !defined YYSTACK_RELOCATE @@ -1382,23 +1453,23 @@ yysetstate: #else { /* Get the current used size of the three stacks, in elements. */ - YYSIZE_T yysize = (YYSIZE_T) (yyssp - yyss + 1); + YYPTRDIFF_T yysize = yyssp - yyss + 1; # if defined yyoverflow { /* Give user a chance to reallocate the stack. Use copies of these so that the &'s don't force the real ones into memory. */ + yy_state_t *yyss1 = yyss; YYSTYPE *yyvs1 = yyvs; - yytype_int16 *yyss1 = yyss; /* Each stack pointer address is followed by the size of the data in use in that stack, in bytes. This used to be a conditional around just the two extra args, but that might be undefined if yyoverflow is a macro. */ yyoverflow (YY_("memory exhausted"), - &yyss1, yysize * sizeof (*yyssp), - &yyvs1, yysize * sizeof (*yyvsp), + &yyss1, yysize * YYSIZEOF (*yyssp), + &yyvs1, yysize * YYSIZEOF (*yyvsp), &yystacksize); yyss = yyss1; yyvs = yyvs1; @@ -1412,14 +1483,15 @@ yysetstate: yystacksize = YYMAXDEPTH; { - yytype_int16 *yyss1 = yyss; + yy_state_t *yyss1 = yyss; union yyalloc *yyptr = - (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize)); + YY_CAST (union yyalloc *, + YYSTACK_ALLOC (YY_CAST (YYSIZE_T, YYSTACK_BYTES (yystacksize)))); if (! yyptr) goto yyexhaustedlab; YYSTACK_RELOCATE (yyss_alloc, yyss); YYSTACK_RELOCATE (yyvs_alloc, yyvs); -# undef YYSTACK_RELOCATE +# undef YYSTACK_RELOCATE if (yyss1 != yyssa) YYSTACK_FREE (yyss1); } @@ -1428,8 +1500,10 @@ yysetstate: yyssp = yyss + yysize - 1; yyvsp = yyvs + yysize - 1; - YYDPRINTF ((stderr, "Stack size increased to %lu\n", - (unsigned long) yystacksize)); + YY_IGNORE_USELESS_CAST_BEGIN + YYDPRINTF ((stderr, "Stack size increased to %ld\n", + YY_CAST (long, yystacksize))); + YY_IGNORE_USELESS_CAST_END if (yyss + yystacksize - 1 <= yyssp) YYABORT; @@ -1456,18 +1530,29 @@ yybackup: /* Not known => get a lookahead token if don't already have one. */ - /* YYCHAR is either YYEMPTY or YYEOF or a valid lookahead symbol. */ + /* YYCHAR is either empty, or end-of-input, or a valid lookahead. */ if (yychar == YYEMPTY) { - YYDPRINTF ((stderr, "Reading a token: ")); + YYDPRINTF ((stderr, "Reading a token\n")); yychar = yylex (&yylval, yyscanner); } if (yychar <= YYEOF) { - yychar = yytoken = YYEOF; + yychar = YYEOF; + yytoken = YYSYMBOL_YYEOF; YYDPRINTF ((stderr, "Now at end of input.\n")); } + else if (yychar == YYerror) + { + /* The scanner already issued an error message, process directly + to error recovery. But do not keep the error token as + lookahead, it is too special and may lead us to an endless + loop in error recovery. */ + yychar = YYUNDEF; + yytoken = YYSYMBOL_YYerror; + goto yyerrlab1; + } else { yytoken = YYTRANSLATE (yychar); @@ -1495,14 +1580,13 @@ yybackup: /* Shift the lookahead token. */ YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc); - - /* Discard the shifted token. */ - yychar = YYEMPTY; - yystate = yyn; YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN *++yyvsp = yylval; YY_IGNORE_MAYBE_UNINITIALIZED_END + + /* Discard the shifted token. */ + yychar = YYEMPTY; goto yynewstate; @@ -1537,28 +1621,28 @@ yyreduce: YY_REDUCE_PRINT (yyn); switch (yyn) { - case 4: -#line 104 "cmFortranParser.y" - { + case 4: /* stmt: INTERFACE EOSTMT */ +#line 102 "cmFortranParser.y" + { cmFortranParser* parser = cmFortran_yyget_extra(yyscanner); cmFortranParser_SetInInterface(parser, true); } -#line 1547 "cmFortranParser.cxx" +#line 1631 "cmFortranParser.cxx" break; - case 5: -#line 108 "cmFortranParser.y" - { + case 5: /* stmt: USE WORD other EOSTMT */ +#line 106 "cmFortranParser.y" + { cmFortranParser* parser = cmFortran_yyget_extra(yyscanner); cmFortranParser_RuleUse(parser, (yyvsp[-2].string)); free((yyvsp[-2].string)); } -#line 1557 "cmFortranParser.cxx" +#line 1641 "cmFortranParser.cxx" break; - case 6: -#line 113 "cmFortranParser.y" - { + case 6: /* stmt: MODULE WORD other EOSTMT */ +#line 111 "cmFortranParser.y" + { cmFortranParser* parser = cmFortran_yyget_extra(yyscanner); if (cmsysString_strcasecmp((yyvsp[-2].string), "function") != 0 && cmsysString_strcasecmp((yyvsp[-2].string), "procedure") != 0 && @@ -1567,64 +1651,64 @@ yyreduce: } free((yyvsp[-2].string)); } -#line 1571 "cmFortranParser.cxx" +#line 1655 "cmFortranParser.cxx" break; - case 7: -#line 122 "cmFortranParser.y" - { + case 7: /* stmt: SUBMODULE LPAREN WORD RPAREN WORD other EOSTMT */ +#line 120 "cmFortranParser.y" + { cmFortranParser* parser = cmFortran_yyget_extra(yyscanner); cmFortranParser_RuleSubmodule(parser, (yyvsp[-4].string), (yyvsp[-2].string)); free((yyvsp[-4].string)); free((yyvsp[-2].string)); } -#line 1582 "cmFortranParser.cxx" +#line 1666 "cmFortranParser.cxx" break; - case 8: -#line 128 "cmFortranParser.y" - { + case 8: /* stmt: SUBMODULE LPAREN WORD COLON WORD RPAREN WORD other EOSTMT */ +#line 126 "cmFortranParser.y" + { cmFortranParser* parser = cmFortran_yyget_extra(yyscanner); cmFortranParser_RuleSubmoduleNested(parser, (yyvsp[-6].string), (yyvsp[-4].string), (yyvsp[-2].string)); free((yyvsp[-6].string)); free((yyvsp[-4].string)); free((yyvsp[-2].string)); } -#line 1594 "cmFortranParser.cxx" +#line 1678 "cmFortranParser.cxx" break; - case 9: -#line 135 "cmFortranParser.y" - { + case 9: /* stmt: INTERFACE WORD other EOSTMT */ +#line 133 "cmFortranParser.y" + { cmFortranParser* parser = cmFortran_yyget_extra(yyscanner); cmFortranParser_SetInInterface(parser, true); free((yyvsp[-2].string)); } -#line 1604 "cmFortranParser.cxx" +#line 1688 "cmFortranParser.cxx" break; - case 10: -#line 140 "cmFortranParser.y" - { + case 10: /* stmt: END INTERFACE other EOSTMT */ +#line 138 "cmFortranParser.y" + { cmFortranParser* parser = cmFortran_yyget_extra(yyscanner); cmFortranParser_SetInInterface(parser, false); } -#line 1613 "cmFortranParser.cxx" +#line 1697 "cmFortranParser.cxx" break; - case 11: -#line 144 "cmFortranParser.y" - { + case 11: /* stmt: USE DCOLON WORD other EOSTMT */ +#line 142 "cmFortranParser.y" + { cmFortranParser* parser = cmFortran_yyget_extra(yyscanner); cmFortranParser_RuleUse(parser, (yyvsp[-2].string)); free((yyvsp[-2].string)); } -#line 1623 "cmFortranParser.cxx" +#line 1707 "cmFortranParser.cxx" break; - case 12: -#line 149 "cmFortranParser.y" - { + case 12: /* stmt: USE COMMA WORD DCOLON WORD other EOSTMT */ +#line 147 "cmFortranParser.y" + { if (cmsysString_strcasecmp((yyvsp[-4].string), "non_intrinsic") == 0) { cmFortranParser* parser = cmFortran_yyget_extra(yyscanner); cmFortranParser_RuleUse(parser, (yyvsp[-2].string)); @@ -1632,139 +1716,139 @@ yyreduce: free((yyvsp[-4].string)); free((yyvsp[-2].string)); } -#line 1636 "cmFortranParser.cxx" +#line 1720 "cmFortranParser.cxx" break; - case 13: -#line 157 "cmFortranParser.y" - { + case 13: /* stmt: INCLUDE STRING other EOSTMT */ +#line 155 "cmFortranParser.y" + { cmFortranParser* parser = cmFortran_yyget_extra(yyscanner); cmFortranParser_RuleInclude(parser, (yyvsp[-2].string)); free((yyvsp[-2].string)); } -#line 1646 "cmFortranParser.cxx" +#line 1730 "cmFortranParser.cxx" break; - case 14: -#line 162 "cmFortranParser.y" - { + case 14: /* stmt: CPP_LINE_DIRECTIVE STRING other EOSTMT */ +#line 160 "cmFortranParser.y" + { cmFortranParser* parser = cmFortran_yyget_extra(yyscanner); cmFortranParser_RuleLineDirective(parser, (yyvsp[-2].string)); free((yyvsp[-2].string)); } -#line 1656 "cmFortranParser.cxx" +#line 1740 "cmFortranParser.cxx" break; - case 15: -#line 167 "cmFortranParser.y" - { + case 15: /* stmt: CPP_INCLUDE_ANGLE other EOSTMT */ +#line 165 "cmFortranParser.y" + { cmFortranParser* parser = cmFortran_yyget_extra(yyscanner); cmFortranParser_RuleInclude(parser, (yyvsp[-2].string)); free((yyvsp[-2].string)); } -#line 1666 "cmFortranParser.cxx" +#line 1750 "cmFortranParser.cxx" break; - case 16: -#line 172 "cmFortranParser.y" - { + case 16: /* stmt: include STRING other EOSTMT */ +#line 170 "cmFortranParser.y" + { cmFortranParser* parser = cmFortran_yyget_extra(yyscanner); cmFortranParser_RuleInclude(parser, (yyvsp[-2].string)); free((yyvsp[-2].string)); } -#line 1676 "cmFortranParser.cxx" +#line 1760 "cmFortranParser.cxx" break; - case 17: -#line 177 "cmFortranParser.y" - { + case 17: /* stmt: define WORD other EOSTMT */ +#line 175 "cmFortranParser.y" + { cmFortranParser* parser = cmFortran_yyget_extra(yyscanner); cmFortranParser_RuleDefine(parser, (yyvsp[-2].string)); free((yyvsp[-2].string)); } -#line 1686 "cmFortranParser.cxx" +#line 1770 "cmFortranParser.cxx" break; - case 18: -#line 182 "cmFortranParser.y" - { + case 18: /* stmt: undef WORD other EOSTMT */ +#line 180 "cmFortranParser.y" + { cmFortranParser* parser = cmFortran_yyget_extra(yyscanner); cmFortranParser_RuleUndef(parser, (yyvsp[-2].string)); free((yyvsp[-2].string)); } -#line 1696 "cmFortranParser.cxx" +#line 1780 "cmFortranParser.cxx" break; - case 19: -#line 187 "cmFortranParser.y" - { + case 19: /* stmt: ifdef WORD other EOSTMT */ +#line 185 "cmFortranParser.y" + { cmFortranParser* parser = cmFortran_yyget_extra(yyscanner); cmFortranParser_RuleIfdef(parser, (yyvsp[-2].string)); free((yyvsp[-2].string)); } -#line 1706 "cmFortranParser.cxx" +#line 1790 "cmFortranParser.cxx" break; - case 20: -#line 192 "cmFortranParser.y" - { + case 20: /* stmt: ifndef WORD other EOSTMT */ +#line 190 "cmFortranParser.y" + { cmFortranParser* parser = cmFortran_yyget_extra(yyscanner); cmFortranParser_RuleIfndef(parser, (yyvsp[-2].string)); free((yyvsp[-2].string)); } -#line 1716 "cmFortranParser.cxx" +#line 1800 "cmFortranParser.cxx" break; - case 21: -#line 197 "cmFortranParser.y" - { + case 21: /* stmt: if other EOSTMT */ +#line 195 "cmFortranParser.y" + { cmFortranParser* parser = cmFortran_yyget_extra(yyscanner); cmFortranParser_RuleIf(parser); } -#line 1725 "cmFortranParser.cxx" +#line 1809 "cmFortranParser.cxx" break; - case 22: -#line 201 "cmFortranParser.y" - { + case 22: /* stmt: elif other EOSTMT */ +#line 199 "cmFortranParser.y" + { cmFortranParser* parser = cmFortran_yyget_extra(yyscanner); cmFortranParser_RuleElif(parser); } -#line 1734 "cmFortranParser.cxx" +#line 1818 "cmFortranParser.cxx" break; - case 23: -#line 205 "cmFortranParser.y" - { + case 23: /* stmt: else other EOSTMT */ +#line 203 "cmFortranParser.y" + { cmFortranParser* parser = cmFortran_yyget_extra(yyscanner); cmFortranParser_RuleElse(parser); } -#line 1743 "cmFortranParser.cxx" +#line 1827 "cmFortranParser.cxx" break; - case 24: -#line 209 "cmFortranParser.y" - { + case 24: /* stmt: endif other EOSTMT */ +#line 207 "cmFortranParser.y" + { cmFortranParser* parser = cmFortran_yyget_extra(yyscanner); cmFortranParser_RuleEndif(parser); } -#line 1752 "cmFortranParser.cxx" +#line 1836 "cmFortranParser.cxx" break; - case 48: -#line 231 "cmFortranParser.y" - { free ((yyvsp[0].string)); } -#line 1758 "cmFortranParser.cxx" + case 48: /* misc_code: WORD */ +#line 229 "cmFortranParser.y" + { free ((yyvsp[0].string)); } +#line 1842 "cmFortranParser.cxx" break; - case 55: -#line 238 "cmFortranParser.y" - { free ((yyvsp[0].string)); } -#line 1764 "cmFortranParser.cxx" + case 55: /* misc_code: STRING */ +#line 236 "cmFortranParser.y" + { free ((yyvsp[0].string)); } +#line 1848 "cmFortranParser.cxx" break; -#line 1768 "cmFortranParser.cxx" +#line 1852 "cmFortranParser.cxx" default: break; } @@ -1779,11 +1863,10 @@ yyreduce: case of YYERROR or YYBACKUP, subsequent parser actions might lead to an incorrect destructor call or verbose syntax error message before the lookahead is translated. */ - YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc); + YY_SYMBOL_PRINT ("-> $$ =", YY_CAST (yysymbol_kind_t, yyr1[yyn]), &yyval, &yyloc); YYPOPSTACK (yylen); yylen = 0; - YY_STACK_PRINT (yyss, yyssp); *++yyvsp = yyval; @@ -1807,50 +1890,44 @@ yyreduce: yyerrlab: /* Make sure we have latest lookahead translation. See comments at user semantic actions for why this is necessary. */ - yytoken = yychar == YYEMPTY ? YYEMPTY : YYTRANSLATE (yychar); - + yytoken = yychar == YYEMPTY ? YYSYMBOL_YYEMPTY : YYTRANSLATE (yychar); /* If not already recovering from an error, report this error. */ if (!yyerrstatus) { ++yynerrs; -#if ! YYERROR_VERBOSE - yyerror (yyscanner, YY_("syntax error")); -#else -# define YYSYNTAX_ERROR yysyntax_error (&yymsg_alloc, &yymsg, \ - yyssp, yytoken) { + yypcontext_t yyctx + = {yyssp, yytoken}; char const *yymsgp = YY_("syntax error"); int yysyntax_error_status; - yysyntax_error_status = YYSYNTAX_ERROR; + yysyntax_error_status = yysyntax_error (&yymsg_alloc, &yymsg, &yyctx); if (yysyntax_error_status == 0) yymsgp = yymsg; - else if (yysyntax_error_status == 1) + else if (yysyntax_error_status == -1) { if (yymsg != yymsgbuf) YYSTACK_FREE (yymsg); - yymsg = (char *) YYSTACK_ALLOC (yymsg_alloc); - if (!yymsg) + yymsg = YY_CAST (char *, + YYSTACK_ALLOC (YY_CAST (YYSIZE_T, yymsg_alloc))); + if (yymsg) { - yymsg = yymsgbuf; - yymsg_alloc = sizeof yymsgbuf; - yysyntax_error_status = 2; + yysyntax_error_status + = yysyntax_error (&yymsg_alloc, &yymsg, &yyctx); + yymsgp = yymsg; } else { - yysyntax_error_status = YYSYNTAX_ERROR; - yymsgp = yymsg; + yymsg = yymsgbuf; + yymsg_alloc = sizeof yymsgbuf; + yysyntax_error_status = YYENOMEM; } } yyerror (yyscanner, yymsgp); - if (yysyntax_error_status == 2) + if (yysyntax_error_status == YYENOMEM) goto yyexhaustedlab; } -# undef YYSYNTAX_ERROR -#endif } - - if (yyerrstatus == 3) { /* If just tried and failed to reuse lookahead token after an @@ -1870,7 +1947,6 @@ yyerrlab: } } -#if 0 /* Else will try to reuse lookahead token after shifting the error token. */ goto yyerrlab1; @@ -1898,16 +1974,16 @@ yyerrorlab: | yyerrlab1 -- common code for both syntax error and YYERROR. | `-------------------------------------------------------------*/ yyerrlab1: -#endif yyerrstatus = 3; /* Each real token shifted decrements this. */ + /* Pop stack until we find a state that shifts the error token. */ for (;;) { yyn = yypact[yystate]; if (!yypact_value_is_default (yyn)) { - yyn += YYTERROR; - if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR) + yyn += YYSYMBOL_YYerror; + if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) { yyn = yytable[yyn]; if (0 < yyn) @@ -1921,7 +1997,7 @@ yyerrlab1: yydestruct ("Error: popping", - yystos[yystate], yyvsp, yyscanner); + YY_ACCESSING_SYMBOL (yystate), yyvsp, yyscanner); YYPOPSTACK (1); yystate = *yyssp; YY_STACK_PRINT (yyss, yyssp); @@ -1933,7 +2009,7 @@ yyerrlab1: /* Shift the error token. */ - YY_SYMBOL_PRINT ("Shifting", yystos[yyn], yyvsp, yylsp); + YY_SYMBOL_PRINT ("Shifting", YY_ACCESSING_SYMBOL (yyn), yyvsp, yylsp); yystate = yyn; goto yynewstate; @@ -1955,20 +2031,20 @@ yyabortlab: goto yyreturn; -#if !defined yyoverflow || YYERROR_VERBOSE +#if 1 /*-------------------------------------------------. | yyexhaustedlab -- memory exhaustion comes here. | `-------------------------------------------------*/ yyexhaustedlab: yyerror (yyscanner, YY_("memory exhausted")); yyresult = 2; - /* Fall through. */ + goto yyreturn; #endif -/*-----------------------------------------------------. -| yyreturn -- parsing is finished, return the result. | -`-----------------------------------------------------*/ +/*-------------------------------------------------------. +| yyreturn -- parsing is finished, clean up and return. | +`-------------------------------------------------------*/ yyreturn: if (yychar != YYEMPTY) { @@ -1985,19 +2061,18 @@ yyreturn: while (yyssp != yyss) { yydestruct ("Cleanup: popping", - yystos[*yyssp], yyvsp, yyscanner); + YY_ACCESSING_SYMBOL (+*yyssp), yyvsp, yyscanner); YYPOPSTACK (1); } #ifndef yyoverflow if (yyss != yyssa) YYSTACK_FREE (yyss); #endif -#if YYERROR_VERBOSE if (yymsg != yymsgbuf) YYSTACK_FREE (yymsg); -#endif return yyresult; } -#line 250 "cmFortranParser.y" + +#line 248 "cmFortranParser.y" /* End of grammar */ diff --git a/Source/LexerParser/cmFortranParserTokens.h b/Source/LexerParser/cmFortranParserTokens.h index f66a15c..e250110 100644 --- a/Source/LexerParser/cmFortranParserTokens.h +++ b/Source/LexerParser/cmFortranParserTokens.h @@ -1,8 +1,8 @@ -/* A Bison parser, made by GNU Bison 3.4.2. */ +/* A Bison parser, made by GNU Bison 3.7.4. */ /* Bison interface for Yacc-like parsers in C - Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2019 Free Software Foundation, + 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 @@ -31,8 +31,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. */ +/* DO NOT RELY ON FEATURES THAT ARE NOT DOCUMENTED in the manual, + especially those whose name start with YY_ or yy_. They are + private implementation details that can be changed or removed. */ #ifndef YY_CMFORTRAN_YY_CMFORTRANPARSERTOKENS_H_INCLUDED # define YY_CMFORTRAN_YY_CMFORTRANPARSERTOKENS_H_INCLUDED @@ -44,100 +45,66 @@ extern int cmFortran_yydebug; #endif -/* Token type. */ +/* Token kinds. */ #ifndef YYTOKENTYPE # define YYTOKENTYPE enum yytokentype { - EOSTMT = 258, - ASSIGNMENT_OP = 259, - GARBAGE = 260, - CPP_LINE_DIRECTIVE = 261, - CPP_INCLUDE = 262, - F90PPR_INCLUDE = 263, - COCO_INCLUDE = 264, - F90PPR_DEFINE = 265, - CPP_DEFINE = 266, - F90PPR_UNDEF = 267, - CPP_UNDEF = 268, - CPP_IFDEF = 269, - CPP_IFNDEF = 270, - CPP_IF = 271, - CPP_ELSE = 272, - CPP_ELIF = 273, - CPP_ENDIF = 274, - F90PPR_IFDEF = 275, - F90PPR_IFNDEF = 276, - F90PPR_IF = 277, - F90PPR_ELSE = 278, - F90PPR_ELIF = 279, - F90PPR_ENDIF = 280, - COMMA = 281, - COLON = 282, - DCOLON = 283, - LPAREN = 284, - RPAREN = 285, - UNTERMINATED_STRING = 286, - STRING = 287, - WORD = 288, - CPP_INCLUDE_ANGLE = 289, - END = 290, - INCLUDE = 291, - INTERFACE = 292, - MODULE = 293, - SUBMODULE = 294, - USE = 295 + YYEMPTY = -2, + YYEOF = 0, /* "end of file" */ + YYerror = 256, /* error */ + YYUNDEF = 257, /* "invalid token" */ + EOSTMT = 258, /* EOSTMT */ + ASSIGNMENT_OP = 259, /* ASSIGNMENT_OP */ + GARBAGE = 260, /* GARBAGE */ + CPP_LINE_DIRECTIVE = 261, /* CPP_LINE_DIRECTIVE */ + CPP_INCLUDE = 262, /* CPP_INCLUDE */ + F90PPR_INCLUDE = 263, /* F90PPR_INCLUDE */ + COCO_INCLUDE = 264, /* COCO_INCLUDE */ + F90PPR_DEFINE = 265, /* F90PPR_DEFINE */ + CPP_DEFINE = 266, /* CPP_DEFINE */ + F90PPR_UNDEF = 267, /* F90PPR_UNDEF */ + CPP_UNDEF = 268, /* CPP_UNDEF */ + CPP_IFDEF = 269, /* CPP_IFDEF */ + CPP_IFNDEF = 270, /* CPP_IFNDEF */ + CPP_IF = 271, /* CPP_IF */ + CPP_ELSE = 272, /* CPP_ELSE */ + CPP_ELIF = 273, /* CPP_ELIF */ + CPP_ENDIF = 274, /* CPP_ENDIF */ + F90PPR_IFDEF = 275, /* F90PPR_IFDEF */ + F90PPR_IFNDEF = 276, /* F90PPR_IFNDEF */ + F90PPR_IF = 277, /* F90PPR_IF */ + F90PPR_ELSE = 278, /* F90PPR_ELSE */ + F90PPR_ELIF = 279, /* F90PPR_ELIF */ + F90PPR_ENDIF = 280, /* F90PPR_ENDIF */ + COMMA = 281, /* COMMA */ + COLON = 282, /* COLON */ + DCOLON = 283, /* DCOLON */ + LPAREN = 284, /* LPAREN */ + RPAREN = 285, /* RPAREN */ + UNTERMINATED_STRING = 286, /* UNTERMINATED_STRING */ + STRING = 287, /* STRING */ + WORD = 288, /* WORD */ + CPP_INCLUDE_ANGLE = 289, /* CPP_INCLUDE_ANGLE */ + END = 290, /* END */ + INCLUDE = 291, /* INCLUDE */ + INTERFACE = 292, /* INTERFACE */ + MODULE = 293, /* MODULE */ + SUBMODULE = 294, /* SUBMODULE */ + USE = 295 /* USE */ }; + typedef enum yytokentype yytoken_kind_t; #endif -/* Tokens. */ -#define EOSTMT 258 -#define ASSIGNMENT_OP 259 -#define GARBAGE 260 -#define CPP_LINE_DIRECTIVE 261 -#define CPP_INCLUDE 262 -#define F90PPR_INCLUDE 263 -#define COCO_INCLUDE 264 -#define F90PPR_DEFINE 265 -#define CPP_DEFINE 266 -#define F90PPR_UNDEF 267 -#define CPP_UNDEF 268 -#define CPP_IFDEF 269 -#define CPP_IFNDEF 270 -#define CPP_IF 271 -#define CPP_ELSE 272 -#define CPP_ELIF 273 -#define CPP_ENDIF 274 -#define F90PPR_IFDEF 275 -#define F90PPR_IFNDEF 276 -#define F90PPR_IF 277 -#define F90PPR_ELSE 278 -#define F90PPR_ELIF 279 -#define F90PPR_ENDIF 280 -#define COMMA 281 -#define COLON 282 -#define DCOLON 283 -#define LPAREN 284 -#define RPAREN 285 -#define UNTERMINATED_STRING 286 -#define STRING 287 -#define WORD 288 -#define CPP_INCLUDE_ANGLE 289 -#define END 290 -#define INCLUDE 291 -#define INTERFACE 292 -#define MODULE 293 -#define SUBMODULE 294 -#define USE 295 /* Value type. */ #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED union YYSTYPE { -#line 73 "cmFortranParser.y" +#line 71 "cmFortranParser.y" char* string; -#line 141 "cmFortranParserTokens.h" +#line 108 "cmFortranParserTokens.h" }; typedef union YYSTYPE YYSTYPE; diff --git a/Tests/RunCMake/Syntax/NameWithSpaces-stderr.txt b/Tests/RunCMake/Syntax/NameWithSpaces-stderr.txt index cf6dad5..71e8db3 100644 --- a/Tests/RunCMake/Syntax/NameWithSpaces-stderr.txt +++ b/Tests/RunCMake/Syntax/NameWithSpaces-stderr.txt @@ -7,6 +7,6 @@ \${var - syntax error, unexpected \$end, expecting } \(6\) + syntax error, unexpected end of file, expecting } \(6\) Call Stack \(most recent call first\): CMakeLists.txt:3 \(include\)$ diff --git a/Tests/RunCMake/Syntax/NameWithTabs-stderr.txt b/Tests/RunCMake/Syntax/NameWithTabs-stderr.txt index 70e7c12..84ccdbe 100644 --- a/Tests/RunCMake/Syntax/NameWithTabs-stderr.txt +++ b/Tests/RunCMake/Syntax/NameWithTabs-stderr.txt @@ -7,6 +7,6 @@ \${var - syntax error, unexpected \$end, expecting } \(6\) + syntax error, unexpected end of file, expecting } \(6\) Call Stack \(most recent call first\): CMakeLists.txt:3 \(include\)$ diff --git a/Tests/RunCMake/Syntax/ParenInENV-stderr.txt b/Tests/RunCMake/Syntax/ParenInENV-stderr.txt index 144b57c..24c810b 100644 --- a/Tests/RunCMake/Syntax/ParenInENV-stderr.txt +++ b/Tests/RunCMake/Syntax/ParenInENV-stderr.txt @@ -9,12 +9,12 @@ This warning is for project developers. Use -Wno-dev to suppress it. CMake Error at ParenInENV.cmake:2 \(message\): Syntax error in cmake code at - .*Tests/RunCMake/Syntax/ParenInENV.cmake:2 + .*/Tests/RunCMake/Syntax/ParenInENV.cmake:2 when parsing string -->\$ENV{e - syntax error, unexpected \$end, expecting } \(10\) + syntax error, unexpected end of file, expecting } \(10\) Call Stack \(most recent call first\): CMakeLists.txt:3 \(include\) diff --git a/Tests/RunCMake/Syntax/UnterminatedBrace0-stderr.txt b/Tests/RunCMake/Syntax/UnterminatedBrace0-stderr.txt index cf63dbe..b309c3b 100644 --- a/Tests/RunCMake/Syntax/UnterminatedBrace0-stderr.txt +++ b/Tests/RunCMake/Syntax/UnterminatedBrace0-stderr.txt @@ -7,6 +7,6 @@ CMake Error at UnterminatedBrace0.cmake:2 \(set\): \${ - syntax error, unexpected \$end, expecting } \(3\) + syntax error, unexpected end of file, expecting } \(3\) Call Stack \(most recent call first\): CMakeLists.txt:3 \(include\) diff --git a/Tests/RunCMake/Syntax/UnterminatedBrace1-stderr.txt b/Tests/RunCMake/Syntax/UnterminatedBrace1-stderr.txt index 0e6f786..ffe0e2a 100644 --- a/Tests/RunCMake/Syntax/UnterminatedBrace1-stderr.txt +++ b/Tests/RunCMake/Syntax/UnterminatedBrace1-stderr.txt @@ -7,7 +7,7 @@ CMake Warning \(dev\) at UnterminatedBrace1.cmake:3 \(set\): \${ - syntax error, unexpected \$end, expecting } \(3\) + syntax error, unexpected end of file, expecting } \(3\) Call Stack \(most recent call first\): CMakeLists.txt:3 \(include\) This warning is for project developers. Use -Wno-dev to suppress it. diff --git a/Tests/RunCMake/math/MATH-InvalidExpression-stderr.txt b/Tests/RunCMake/math/MATH-InvalidExpression-stderr.txt index 22226f2..da44726 100644 --- a/Tests/RunCMake/math/MATH-InvalidExpression-stderr.txt +++ b/Tests/RunCMake/math/MATH-InvalidExpression-stderr.txt @@ -1,5 +1,5 @@ ^CMake Error at MATH-InvalidExpression.cmake:1 \(math\): - math cannot parse the expression: "INVALID": syntax error, unexpected \$end - \(7\). + math cannot parse the expression: "INVALID": syntax error, unexpected end + of file \(7\). Call Stack \(most recent call first\): CMakeLists.txt:3 \(include\)$ -- cgit v0.12