summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2014-04-27 18:20:27 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2014-04-27 18:20:27 +0200
commit64c550a34a257130d0cee1ae971f45a492b646f9 (patch)
tree6380415090f163e6d4a51c963117f83149e3b08e
parentc6fa3cffaef7b9fd8ce1e5098ae07bb7c95dc386 (diff)
downloadlibtasn1-64c550a34a257130d0cee1ae971f45a492b646f9.tar.gz
libtasn1-64c550a34a257130d0cee1ae971f45a492b646f9.tar.bz2
libtasn1-64c550a34a257130d0cee1ae971f45a492b646f9.zip
updated bison file
-rw-r--r--lib/ASN1.c1717
1 files changed, 766 insertions, 951 deletions
diff --git a/lib/ASN1.c b/lib/ASN1.c
index ef58f95..b0504be 100644
--- a/lib/ASN1.c
+++ b/lib/ASN1.c
@@ -1,19 +1,19 @@
-/* A Bison parser, made by GNU Bison 2.7. */
+/* A Bison parser, made by GNU Bison 3.0.2. */
/* Bison implementation for Yacc-like parsers in C
-
- Copyright (C) 1984, 1989-1990, 2000-2012 Free Software Foundation, Inc.
-
+
+ Copyright (C) 1984, 1989-1990, 2000-2013 Free Software Foundation, Inc.
+
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
-
+
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
-
+
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
@@ -26,7 +26,7 @@
special exception, which will cause the skeleton and the resulting
Bison output files to be licensed under the GNU General Public
License without this special exception.
-
+
This special exception was added by the Free Software Foundation in
version 2.2 of Bison. */
@@ -44,7 +44,7 @@
#define YYBISON 1
/* Bison version. */
-#define YYBISON_VERSION "2.7"
+#define YYBISON_VERSION "3.0.2"
/* Skeleton name. */
#define YYSKELETON_NAME "yacc.c"
@@ -63,14 +63,14 @@
#define yyparse _asn1_yyparse
#define yylex _asn1_yylex
#define yyerror _asn1_yyerror
-#define yylval _asn1_yylval
-#define yychar _asn1_yychar
#define yydebug _asn1_yydebug
#define yynerrs _asn1_yynerrs
+#define yylval _asn1_yylval
+#define yychar _asn1_yychar
+
/* Copy the first part of user declarations. */
-/* Line 371 of yacc.c */
-#line 1 "ASN1.y"
+#line 1 "ASN1.y" /* yacc.c:339 */
/*
* Copyright (C) 2001-2014 Free Software Foundation, Inc.
@@ -126,14 +126,13 @@ static void _asn1_yyerror (const char *);
static int _asn1_yylex(void);
-/* Line 371 of yacc.c */
-#line 131 "ASN1.c"
+#line 130 "ASN1.c" /* yacc.c:339 */
-# ifndef YY_NULL
+# ifndef YY_NULLPTR
# if defined __cplusplus && 201103L <= __cplusplus
-# define YY_NULL nullptr
+# define YY_NULLPTR nullptr
# else
-# define YY_NULL 0
+# define YY_NULLPTR 0
# endif
# endif
@@ -146,7 +145,7 @@ static int _asn1_yylex(void);
#endif
-/* Enabling traces. */
+/* Debug traces. */
#ifndef YYDEBUG
# define YYDEBUG 0
#endif
@@ -154,59 +153,58 @@ static int _asn1_yylex(void);
extern int _asn1_yydebug;
#endif
-/* Tokens. */
+/* Token type. */
#ifndef YYTOKENTYPE
# define YYTOKENTYPE
- /* Put the tokens into the symbol table, so that GDB and other debuggers
- know about them. */
- enum yytokentype {
- ASSIG = 258,
- NUM = 259,
- IDENTIFIER = 260,
- OPTIONAL = 261,
- INTEGER = 262,
- SIZE = 263,
- OCTET = 264,
- STRING = 265,
- SEQUENCE = 266,
- BIT = 267,
- UNIVERSAL = 268,
- PRIVATE = 269,
- APPLICATION = 270,
- DEFAULT = 271,
- CHOICE = 272,
- OF = 273,
- OBJECT = 274,
- STR_IDENTIFIER = 275,
- BOOLEAN = 276,
- ASN1_TRUE = 277,
- ASN1_FALSE = 278,
- TOKEN_NULL = 279,
- ANY = 280,
- DEFINED = 281,
- BY = 282,
- SET = 283,
- EXPLICIT = 284,
- IMPLICIT = 285,
- DEFINITIONS = 286,
- TAGS = 287,
- BEGIN = 288,
- END = 289,
- UTCTime = 290,
- GeneralizedTime = 291,
- GeneralString = 292,
- NumericString = 293,
- IA5String = 294,
- TeletexString = 295,
- PrintableString = 296,
- UniversalString = 297,
- BMPString = 298,
- UTF8String = 299,
- VisibleString = 300,
- FROM = 301,
- IMPORTS = 302,
- ENUMERATED = 303
- };
+ enum yytokentype
+ {
+ ASSIG = 258,
+ NUM = 259,
+ IDENTIFIER = 260,
+ OPTIONAL = 261,
+ INTEGER = 262,
+ SIZE = 263,
+ OCTET = 264,
+ STRING = 265,
+ SEQUENCE = 266,
+ BIT = 267,
+ UNIVERSAL = 268,
+ PRIVATE = 269,
+ APPLICATION = 270,
+ DEFAULT = 271,
+ CHOICE = 272,
+ OF = 273,
+ OBJECT = 274,
+ STR_IDENTIFIER = 275,
+ BOOLEAN = 276,
+ ASN1_TRUE = 277,
+ ASN1_FALSE = 278,
+ TOKEN_NULL = 279,
+ ANY = 280,
+ DEFINED = 281,
+ BY = 282,
+ SET = 283,
+ EXPLICIT = 284,
+ IMPLICIT = 285,
+ DEFINITIONS = 286,
+ TAGS = 287,
+ BEGIN = 288,
+ END = 289,
+ UTCTime = 290,
+ GeneralizedTime = 291,
+ GeneralString = 292,
+ NumericString = 293,
+ IA5String = 294,
+ TeletexString = 295,
+ PrintableString = 296,
+ UniversalString = 297,
+ BMPString = 298,
+ UTF8String = 299,
+ VisibleString = 300,
+ FROM = 301,
+ IMPORTS = 302,
+ ENUMERATED = 303
+ };
#endif
/* Tokens. */
#define ASSIG 258
@@ -256,49 +254,33 @@ extern int _asn1_yydebug;
#define IMPORTS 302
#define ENUMERATED 303
-
-
+/* Value type. */
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
-typedef union YYSTYPE
+typedef union YYSTYPE YYSTYPE;
+union YYSTYPE
{
-/* Line 387 of yacc.c */
-#line 62 "ASN1.y"
+#line 62 "ASN1.y" /* yacc.c:355 */
unsigned int constant;
char str[ASN1_MAX_NAME_SIZE+1];
asn1_node node;
-
-/* Line 387 of yacc.c */
-#line 274 "ASN1.c"
-} YYSTYPE;
+#line 269 "ASN1.c" /* yacc.c:355 */
+};
# define YYSTYPE_IS_TRIVIAL 1
-# define yystype YYSTYPE /* obsolescent; will be withdrawn */
# define YYSTYPE_IS_DECLARED 1
#endif
+
extern YYSTYPE _asn1_yylval;
-#ifdef YYPARSE_PARAM
-#if defined __STDC__ || defined __cplusplus
-int _asn1_yyparse (void *YYPARSE_PARAM);
-#else
-int _asn1_yyparse ();
-#endif
-#else /* ! YYPARSE_PARAM */
-#if defined __STDC__ || defined __cplusplus
int _asn1_yyparse (void);
-#else
-int _asn1_yyparse ();
-#endif
-#endif /* ! YYPARSE_PARAM */
/* Copy the second part of user declarations. */
-/* Line 390 of yacc.c */
-#line 302 "ASN1.c"
+#line 284 "ASN1.c" /* yacc.c:358 */
#ifdef short
# undef short
@@ -312,11 +294,8 @@ typedef unsigned char yytype_uint8;
#ifdef YYTYPE_INT8
typedef YYTYPE_INT8 yytype_int8;
-#elif (defined __STDC__ || defined __C99__FUNC__ \
- || defined __cplusplus || defined _MSC_VER)
-typedef signed char yytype_int8;
#else
-typedef short int yytype_int8;
+typedef signed char yytype_int8;
#endif
#ifdef YYTYPE_UINT16
@@ -336,8 +315,7 @@ typedef short int yytype_int16;
# define YYSIZE_T __SIZE_TYPE__
# elif defined size_t
# define YYSIZE_T size_t
-# elif ! defined YYSIZE_T && (defined __STDC__ || defined __C99__FUNC__ \
- || defined __cplusplus || defined _MSC_VER)
+# elif ! defined YYSIZE_T
# include <stddef.h> /* INFRINGES ON USER NAME SPACE */
# define YYSIZE_T size_t
# else
@@ -359,6 +337,33 @@ typedef short int 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__))
+#endif
+
+#ifndef YY_ATTRIBUTE_UNUSED
+# define YY_ATTRIBUTE_UNUSED YY_ATTRIBUTE ((__unused__))
+#endif
+
+#if !defined _Noreturn \
+ && (!defined __STDC_VERSION__ || __STDC_VERSION__ < 201112)
+# if defined _MSC_VER && 1200 <= _MSC_VER
+# define _Noreturn __declspec (noreturn)
+# else
+# define _Noreturn YY_ATTRIBUTE ((__noreturn__))
+# endif
+#endif
+
/* Suppress unused-variable warnings by "using" E. */
#if ! defined lint || defined __GNUC__
# define YYUSE(E) ((void) (E))
@@ -366,24 +371,26 @@ typedef short int yytype_int16;
# define YYUSE(E) /* empty */
#endif
-/* Identity function, used to suppress warnings about constant conditions. */
-#ifndef lint
-# define YYID(N) (N)
-#else
-#if (defined __STDC__ || defined __C99__FUNC__ \
- || defined __cplusplus || defined _MSC_VER)
-static int
-YYID (int yyi)
+#if defined __GNUC__ && 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\"")\
+ _Pragma ("GCC diagnostic ignored \"-Wmaybe-uninitialized\"")
+# define YY_IGNORE_MAYBE_UNINITIALIZED_END \
+ _Pragma ("GCC diagnostic pop")
#else
-static int
-YYID (yyi)
- int yyi;
+# define YY_INITIAL_VALUE(Value) Value
#endif
-{
- return yyi;
-}
+#ifndef YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
+# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
+# define YY_IGNORE_MAYBE_UNINITIALIZED_END
+#endif
+#ifndef YY_INITIAL_VALUE
+# define YY_INITIAL_VALUE(Value) /* Nothing. */
#endif
+
#if ! defined yyoverflow || YYERROR_VERBOSE
/* The parser invokes alloca or malloc; define the necessary symbols. */
@@ -401,8 +408,7 @@ YYID (yyi)
# define alloca _alloca
# else
# define YYSTACK_ALLOC alloca
-# if ! defined _ALLOCA_H && ! defined EXIT_SUCCESS && (defined __STDC__ || defined __C99__FUNC__ \
- || defined __cplusplus || defined _MSC_VER)
+# if ! defined _ALLOCA_H && ! defined EXIT_SUCCESS
# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
/* Use EXIT_SUCCESS as a witness for stdlib.h. */
# ifndef EXIT_SUCCESS
@@ -414,8 +420,8 @@ YYID (yyi)
# endif
# ifdef YYSTACK_ALLOC
- /* Pacify GCC's `empty if-body' warning. */
-# define YYSTACK_FREE(Ptr) do { /* empty */; } while (YYID (0))
+ /* Pacify GCC's 'empty if-body' warning. */
+# define YYSTACK_FREE(Ptr) do { /* empty */; } while (0)
# ifndef YYSTACK_ALLOC_MAXIMUM
/* The OS might guarantee only one guard page at the bottom of the stack,
and a page size can be as small as 4096 bytes. So we cannot safely
@@ -431,7 +437,7 @@ YYID (yyi)
# endif
# if (defined __cplusplus && ! defined EXIT_SUCCESS \
&& ! ((defined YYMALLOC || defined malloc) \
- && (defined YYFREE || defined free)))
+ && (defined YYFREE || defined free)))
# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
# ifndef EXIT_SUCCESS
# define EXIT_SUCCESS 0
@@ -439,15 +445,13 @@ YYID (yyi)
# endif
# ifndef YYMALLOC
# define YYMALLOC malloc
-# if ! defined malloc && ! defined EXIT_SUCCESS && (defined __STDC__ || defined __C99__FUNC__ \
- || defined __cplusplus || defined _MSC_VER)
+# if ! defined malloc && ! defined EXIT_SUCCESS
void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */
# endif
# endif
# ifndef YYFREE
# define YYFREE free
-# if ! defined free && ! defined EXIT_SUCCESS && (defined __STDC__ || defined __C99__FUNC__ \
- || defined __cplusplus || defined _MSC_VER)
+# if ! defined free && ! defined EXIT_SUCCESS
void free (void *); /* INFRINGES ON USER NAME SPACE */
# endif
# endif
@@ -457,7 +461,7 @@ void free (void *); /* INFRINGES ON USER NAME SPACE */
#if (! defined yyoverflow \
&& (! defined __cplusplus \
- || (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL)))
+ || (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL)))
/* A type that is properly aligned for any stack member. */
union yyalloc
@@ -482,16 +486,16 @@ union yyalloc
elements in the stack, and YYPTR gives the new location of the
stack. Advance YYPTR to a properly aligned location for the next
stack. */
-# define YYSTACK_RELOCATE(Stack_alloc, Stack) \
- do \
- { \
- YYSIZE_T yynewbytes; \
- YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \
- Stack = &yyptr->Stack_alloc; \
- yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
- yyptr += yynewbytes / sizeof (*yyptr); \
- } \
- while (YYID (0))
+# define YYSTACK_RELOCATE(Stack_alloc, Stack) \
+ do \
+ { \
+ YYSIZE_T yynewbytes; \
+ YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \
+ Stack = &yyptr->Stack_alloc; \
+ yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
+ yyptr += yynewbytes / sizeof (*yyptr); \
+ } \
+ while (0)
#endif
@@ -510,7 +514,7 @@ union yyalloc
for (yyi = 0; yyi < (Count); yyi++) \
(Dst)[yyi] = (Src)[yyi]; \
} \
- while (YYID (0))
+ while (0)
# endif
# endif
#endif /* !YYCOPY_NEEDED */
@@ -526,17 +530,19 @@ union yyalloc
#define YYNNTS 52
/* YYNRULES -- Number of rules. */
#define YYNRULES 128
-/* YYNRULES -- Number of states. */
+/* YYNSTATES -- Number of states. */
#define YYNSTATES 223
-/* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */
+/* YYTRANSLATE[YYX] -- Symbol number corresponding to YYX as returned
+ by yylex, with out-of-bounds checking. */
#define YYUNDEFTOK 2
#define YYMAXUTOK 303
-#define YYTRANSLATE(YYX) \
+#define YYTRANSLATE(YYX) \
((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
-/* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX. */
+/* YYTRANSLATE[TOKEN-NUM] -- Symbol number corresponding to TOKEN-NUM
+ as returned by yylex, without out-of-bounds checking. */
static const yytype_uint8 yytranslate[] =
{
0, 2, 2, 2, 2, 2, 2, 2, 2, 2,
@@ -573,71 +579,7 @@ static const yytype_uint8 yytranslate[] =
};
#if YYDEBUG
-/* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in
- YYRHS. */
-static const yytype_uint16 yyprhs[] =
-{
- 0, 0, 3, 12, 14, 17, 20, 22, 24, 26,
- 28, 30, 33, 35, 37, 39, 43, 48, 50, 54,
- 56, 61, 63, 66, 68, 70, 72, 76, 81, 83,
- 86, 89, 92, 95, 98, 100, 104, 106, 111, 116,
- 124, 126, 128, 130, 135, 143, 145, 149, 151, 154,
- 156, 159, 161, 164, 166, 169, 171, 174, 176, 179,
- 181, 184, 186, 189, 191, 194, 197, 201, 206, 208,
- 212, 215, 219, 225, 230, 233, 235, 238, 240, 242,
- 244, 246, 248, 250, 252, 254, 256, 258, 260, 262,
- 264, 266, 268, 270, 272, 274, 276, 278, 280, 282,
- 285, 287, 290, 293, 296, 298, 302, 307, 311, 316,
- 321, 325, 330, 335, 337, 342, 346, 350, 358, 365,
- 370, 372, 374, 376, 379, 384, 388, 390, 392
-};
-
-/* YYRHS -- A `-1'-separated list of the rules' RHS. */
-static const yytype_int8 yyrhs[] =
-{
- 61, 0, -1, 110, 31, 111, 32, 3, 33, 109,
- 34, -1, 4, -1, 49, 4, -1, 50, 4, -1,
- 62, -1, 63, -1, 4, -1, 5, -1, 4, -1,
- 50, 4, -1, 5, -1, 64, -1, 5, -1, 51,
- 64, 52, -1, 5, 51, 64, 52, -1, 68, -1,
- 69, 53, 68, -1, 65, -1, 5, 51, 4, 52,
- -1, 70, -1, 71, 70, -1, 13, -1, 14, -1,
- 15, -1, 54, 4, 55, -1, 54, 72, 4, 55,
- -1, 73, -1, 73, 29, -1, 73, 30, -1, 16,
- 67, -1, 16, 22, -1, 16, 23, -1, 64, -1,
- 76, 56, 64, -1, 7, -1, 7, 57, 69, 58,
- -1, 77, 51, 76, 52, -1, 77, 51, 66, 59,
- 59, 66, 52, -1, 21, -1, 35, -1, 36, -1,
- 8, 51, 65, 52, -1, 8, 51, 65, 59, 59,
- 65, 52, -1, 80, -1, 51, 80, 52, -1, 37,
- -1, 37, 81, -1, 38, -1, 38, 81, -1, 39,
- -1, 39, 81, -1, 40, -1, 40, 81, -1, 41,
- -1, 41, 81, -1, 42, -1, 42, 81, -1, 43,
- -1, 43, 81, -1, 44, -1, 44, 81, -1, 45,
- -1, 45, 81, -1, 9, 10, -1, 9, 10, 81,
- -1, 5, 51, 4, 52, -1, 92, -1, 93, 53,
- 92, -1, 12, 10, -1, 12, 10, 81, -1, 12,
- 10, 57, 93, 58, -1, 48, 57, 93, 58, -1,
- 19, 20, -1, 5, -1, 5, 81, -1, 77, -1,
- 95, -1, 78, -1, 79, -1, 91, -1, 94, -1,
- 82, -1, 83, -1, 84, -1, 85, -1, 86, -1,
- 87, -1, 88, -1, 89, -1, 90, -1, 102, -1,
- 96, -1, 104, -1, 105, -1, 103, -1, 24, -1,
- 97, -1, 74, 97, -1, 98, -1, 98, 75, -1,
- 98, 6, -1, 5, 99, -1, 100, -1, 101, 53,
- 100, -1, 11, 57, 101, 58, -1, 11, 18, 97,
- -1, 11, 81, 18, 97, -1, 28, 57, 101, 58,
- -1, 28, 18, 97, -1, 28, 81, 18, 97, -1,
- 17, 57, 101, 58, -1, 25, -1, 25, 26, 27,
- 5, -1, 5, 3, 98, -1, 1, 3, 98, -1,
- 5, 19, 20, 3, 57, 71, 58, -1, 5, 5,
- 3, 57, 71, 58, -1, 5, 7, 3, 64, -1,
- 106, -1, 107, -1, 108, -1, 109, 108, -1, 5,
- 57, 71, 58, -1, 5, 57, 58, -1, 5, -1,
- 29, -1, 30, -1
-};
-
-/* YYRLINE[YYN] -- source line where rule number YYN was defined. */
+ /* YYRLINE[YYN] -- Source line where rule number YYN was defined. */
static const yytype_uint16 yyrline[] =
{
0, 135, 135, 148, 149, 152, 155, 156, 159, 160,
@@ -684,13 +626,13 @@ static const char *const yytname[] =
"type_assig_right_tag_default", "type_assig", "type_assig_list",
"sequence_def", "set_def", "choise_def", "any_def", "type_def",
"constant_def", "type_constant", "type_constant_list", "definitions_id",
- "explicit_implicit", YY_NULL
+ "explicit_implicit", YY_NULLPTR
};
#endif
# ifdef YYPRINT
-/* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to
- token YYLEX-NUM. */
+/* YYTOKNUM[NUM] -- (External) token number corresponding to the
+ (internal) symbol number NUM (which must be that of a token). */
static const yytype_uint16 yytoknum[] =
{
0, 256, 257, 258, 259, 260, 261, 262, 263, 264,
@@ -702,86 +644,18 @@ static const yytype_uint16 yytoknum[] =
};
# endif
-/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */
-static const yytype_uint8 yyr1[] =
-{
- 0, 60, 61, 62, 62, 63, 64, 64, 65, 65,
- 66, 66, 66, 67, 67, 68, 68, 69, 69, 70,
- 70, 71, 71, 72, 72, 72, 73, 73, 74, 74,
- 74, 75, 75, 75, 76, 76, 77, 77, 77, 77,
- 78, 79, 79, 80, 80, 81, 81, 82, 82, 83,
- 83, 84, 84, 85, 85, 86, 86, 87, 87, 88,
- 88, 89, 89, 90, 90, 91, 91, 92, 93, 93,
- 94, 94, 94, 95, 96, 97, 97, 97, 97, 97,
- 97, 97, 97, 97, 97, 97, 97, 97, 97, 97,
- 97, 97, 97, 97, 97, 97, 97, 97, 98, 98,
- 99, 99, 99, 100, 101, 101, 102, 102, 102, 103,
- 103, 103, 104, 105, 105, 106, 106, 107, 107, 107,
- 108, 108, 109, 109, 110, 110, 110, 111, 111
-};
+#define YYPACT_NINF -129
-/* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */
-static const yytype_uint8 yyr2[] =
-{
- 0, 2, 8, 1, 2, 2, 1, 1, 1, 1,
- 1, 2, 1, 1, 1, 3, 4, 1, 3, 1,
- 4, 1, 2, 1, 1, 1, 3, 4, 1, 2,
- 2, 2, 2, 2, 1, 3, 1, 4, 4, 7,
- 1, 1, 1, 4, 7, 1, 3, 1, 2, 1,
- 2, 1, 2, 1, 2, 1, 2, 1, 2, 1,
- 2, 1, 2, 1, 2, 2, 3, 4, 1, 3,
- 2, 3, 5, 4, 2, 1, 2, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 2,
- 1, 2, 2, 2, 1, 3, 4, 3, 4, 4,
- 3, 4, 4, 1, 4, 3, 3, 7, 6, 4,
- 1, 1, 1, 2, 4, 3, 1, 1, 1
-};
+#define yypact_value_is_default(Yystate) \
+ (!!((Yystate) == (-129)))
-/* YYDEFACT[STATE-NAME] -- Default reduction number in state STATE-NUM.
- Performed when YYTABLE doesn't specify something else to do. Zero
- means the default is an error. */
-static const yytype_uint8 yydefact[] =
-{
- 0, 126, 0, 0, 0, 1, 0, 8, 9, 125,
- 19, 21, 0, 127, 128, 0, 0, 124, 22, 0,
- 0, 0, 20, 0, 0, 0, 120, 121, 122, 0,
- 0, 0, 0, 0, 0, 2, 123, 75, 36, 0,
- 0, 0, 0, 0, 40, 97, 113, 0, 41, 42,
- 47, 49, 51, 53, 55, 57, 59, 61, 63, 0,
- 0, 28, 0, 77, 79, 80, 83, 84, 85, 86,
- 87, 88, 89, 90, 91, 81, 82, 78, 93, 98,
- 116, 92, 96, 94, 95, 115, 0, 0, 0, 0,
- 0, 45, 76, 0, 65, 0, 0, 0, 70, 0,
- 74, 0, 0, 0, 0, 48, 50, 52, 54, 56,
- 58, 60, 62, 64, 0, 0, 23, 24, 25, 0,
- 29, 30, 99, 0, 0, 3, 0, 0, 6, 7,
- 119, 0, 0, 0, 0, 0, 17, 0, 66, 107,
- 0, 104, 0, 0, 0, 71, 0, 0, 110, 0,
- 0, 0, 68, 0, 26, 0, 3, 12, 0, 34,
- 0, 0, 0, 4, 5, 0, 9, 0, 46, 0,
- 0, 0, 37, 100, 103, 0, 106, 108, 0, 112,
- 114, 109, 111, 0, 0, 73, 27, 5, 0, 38,
- 0, 118, 0, 43, 0, 0, 15, 18, 102, 0,
- 101, 105, 72, 0, 69, 0, 35, 117, 0, 16,
- 14, 32, 33, 13, 31, 67, 10, 0, 0, 0,
- 11, 39, 44
-};
+#define YYTABLE_NINF -12
-/* YYDEFGOTO[NTERM-NUM]. */
-static const yytype_int16 yydefgoto[] =
-{
- -1, 2, 128, 129, 130, 10, 160, 214, 136, 137,
- 11, 12, 119, 61, 62, 200, 161, 63, 64, 65,
- 91, 92, 66, 67, 68, 69, 70, 71, 72, 73,
- 74, 75, 152, 153, 76, 77, 78, 79, 80, 174,
- 141, 142, 81, 82, 83, 84, 26, 27, 28, 29,
- 3, 15
-};
+#define yytable_value_is_error(Yytable_value) \
+ 0
-/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
- STATE-NUM. */
-#define YYPACT_NINF -129
+ /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
+ STATE-NUM. */
static const yytype_int16 yypact[] =
{
36, -7, 74, 22, 3, -129, 26, -129, 34, -129,
@@ -809,7 +683,37 @@ static const yytype_int16 yypact[] =
-129, -129, -129
};
-/* YYPGOTO[NTERM-NUM]. */
+ /* 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[] =
+{
+ 0, 126, 0, 0, 0, 1, 0, 8, 9, 125,
+ 19, 21, 0, 127, 128, 0, 0, 124, 22, 0,
+ 0, 0, 20, 0, 0, 0, 120, 121, 122, 0,
+ 0, 0, 0, 0, 0, 2, 123, 75, 36, 0,
+ 0, 0, 0, 0, 40, 97, 113, 0, 41, 42,
+ 47, 49, 51, 53, 55, 57, 59, 61, 63, 0,
+ 0, 28, 0, 77, 79, 80, 83, 84, 85, 86,
+ 87, 88, 89, 90, 91, 81, 82, 78, 93, 98,
+ 116, 92, 96, 94, 95, 115, 0, 0, 0, 0,
+ 0, 45, 76, 0, 65, 0, 0, 0, 70, 0,
+ 74, 0, 0, 0, 0, 48, 50, 52, 54, 56,
+ 58, 60, 62, 64, 0, 0, 23, 24, 25, 0,
+ 29, 30, 99, 0, 0, 3, 0, 0, 6, 7,
+ 119, 0, 0, 0, 0, 0, 17, 0, 66, 107,
+ 0, 104, 0, 0, 0, 71, 0, 0, 110, 0,
+ 0, 0, 68, 0, 26, 0, 3, 12, 0, 34,
+ 0, 0, 0, 4, 5, 0, 9, 0, 46, 0,
+ 0, 0, 37, 100, 103, 0, 106, 108, 0, 112,
+ 114, 109, 111, 0, 0, 73, 27, 5, 0, 38,
+ 0, 118, 0, 43, 0, 0, 15, 18, 102, 0,
+ 101, 105, 72, 0, 69, 0, 35, 117, 0, 16,
+ 14, 32, 33, 13, 31, 67, 10, 0, 0, 0,
+ 11, 39, 44
+};
+
+ /* YYPGOTO[NTERM-NUM]. */
static const yytype_int16 yypgoto[] =
{
-129, -129, -129, -129, -120, -128, 4, -129, 39, -129,
@@ -820,10 +724,20 @@ static const yytype_int16 yypgoto[] =
-129, -129
};
-/* YYTABLE[YYPACT[STATE-NUM]]. What to do in state STATE-NUM. If
- positive, shift that token. If negative, reduce the rule which
- number is the opposite. If YYTABLE_NINF, syntax error. */
-#define YYTABLE_NINF -12
+ /* YYDEFGOTO[NTERM-NUM]. */
+static const yytype_int16 yydefgoto[] =
+{
+ -1, 2, 128, 129, 130, 10, 160, 214, 136, 137,
+ 11, 12, 119, 61, 62, 200, 161, 63, 64, 65,
+ 91, 92, 66, 67, 68, 69, 70, 71, 72, 73,
+ 74, 75, 152, 153, 76, 77, 78, 79, 80, 174,
+ 141, 142, 81, 82, 83, 84, 26, 27, 28, 29,
+ 3, 15
+};
+
+ /* 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_int16 yytable[] =
{
18, 85, 122, 159, 167, 89, 97, 7, 8, 7,
@@ -851,12 +765,6 @@ static const yytype_int16 yytable[] =
133, 201, 222, 36
};
-#define yypact_value_is_default(Yystate) \
- (!!((Yystate) == (-129)))
-
-#define yytable_value_is_error(Yytable_value) \
- YYID (0)
-
static const yytype_uint8 yycheck[] =
{
12, 31, 62, 123, 132, 8, 40, 4, 5, 4,
@@ -884,8 +792,8 @@ static const yytype_uint8 yycheck[] =
90, 175, 52, 29
};
-/* YYSTOS[STATE-NUM] -- The (internal number of the) accessing
- symbol of state STATE-NUM. */
+ /* YYSTOS[STATE-NUM] -- The (internal number of the) accessing
+ symbol of state STATE-NUM. */
static const yytype_uint8 yystos[] =
{
0, 5, 61, 110, 57, 0, 31, 4, 5, 58,
@@ -913,30 +821,52 @@ static const yytype_uint8 yystos[] =
4, 52, 52
};
-#define yyerrok (yyerrstatus = 0)
-#define yyclearin (yychar = YYEMPTY)
-#define YYEMPTY (-2)
-#define YYEOF 0
-
-#define YYACCEPT goto yyacceptlab
-#define YYABORT goto yyabortlab
-#define YYERROR goto yyerrorlab
-
-
-/* Like YYERROR except do call yyerror. This remains here temporarily
- to ease the transition to the new meaning of YYERROR, for GCC.
- Once GCC version 2 has supplanted version 1, this can go. However,
- YYFAIL appears to be in use. Nevertheless, it is formally deprecated
- in Bison 2.4.2's NEWS entry, where a plan to phase it out is
- discussed. */
-
-#define YYFAIL goto yyerrlab
-#if defined YYFAIL
- /* This is here to suppress warnings from the GCC cpp's
- -Wunused-macros. Normally we don't worry about that warning, but
- some users do, and we want to make it easy for users to remove
- YYFAIL uses, which will produce warnings from Bison 2.5. */
-#endif
+ /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */
+static const yytype_uint8 yyr1[] =
+{
+ 0, 60, 61, 62, 62, 63, 64, 64, 65, 65,
+ 66, 66, 66, 67, 67, 68, 68, 69, 69, 70,
+ 70, 71, 71, 72, 72, 72, 73, 73, 74, 74,
+ 74, 75, 75, 75, 76, 76, 77, 77, 77, 77,
+ 78, 79, 79, 80, 80, 81, 81, 82, 82, 83,
+ 83, 84, 84, 85, 85, 86, 86, 87, 87, 88,
+ 88, 89, 89, 90, 90, 91, 91, 92, 93, 93,
+ 94, 94, 94, 95, 96, 97, 97, 97, 97, 97,
+ 97, 97, 97, 97, 97, 97, 97, 97, 97, 97,
+ 97, 97, 97, 97, 97, 97, 97, 97, 98, 98,
+ 99, 99, 99, 100, 101, 101, 102, 102, 102, 103,
+ 103, 103, 104, 105, 105, 106, 106, 107, 107, 107,
+ 108, 108, 109, 109, 110, 110, 110, 111, 111
+};
+
+ /* YYR2[YYN] -- Number of symbols on the right hand side of rule YYN. */
+static const yytype_uint8 yyr2[] =
+{
+ 0, 2, 8, 1, 2, 2, 1, 1, 1, 1,
+ 1, 2, 1, 1, 1, 3, 4, 1, 3, 1,
+ 4, 1, 2, 1, 1, 1, 3, 4, 1, 2,
+ 2, 2, 2, 2, 1, 3, 1, 4, 4, 7,
+ 1, 1, 1, 4, 7, 1, 3, 1, 2, 1,
+ 2, 1, 2, 1, 2, 1, 2, 1, 2, 1,
+ 2, 1, 2, 1, 2, 2, 3, 4, 1, 3,
+ 2, 3, 5, 4, 2, 1, 2, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 2,
+ 1, 2, 2, 2, 1, 3, 4, 3, 4, 4,
+ 3, 4, 4, 1, 4, 3, 3, 7, 6, 4,
+ 1, 1, 1, 2, 4, 3, 1, 1, 1
+};
+
+
+#define yyerrok (yyerrstatus = 0)
+#define yyclearin (yychar = YYEMPTY)
+#define YYEMPTY (-2)
+#define YYEOF 0
+
+#define YYACCEPT goto yyacceptlab
+#define YYABORT goto yyabortlab
+#define YYERROR goto yyerrorlab
+
#define YYRECOVERING() (!!yyerrstatus)
@@ -953,27 +883,15 @@ do \
else \
{ \
yyerror (YY_("syntax error: cannot back up")); \
- YYERROR; \
- } \
-while (YYID (0))
+ YYERROR; \
+ } \
+while (0)
/* Error token number */
-#define YYTERROR 1
-#define YYERRCODE 256
-
-
-/* This macro is provided for backward compatibility. */
-#ifndef YY_LOCATION_PRINT
-# define YY_LOCATION_PRINT(File, Loc) ((void) 0)
-#endif
+#define YYTERROR 1
+#define YYERRCODE 256
-/* YYLEX -- calling `yylex' with the right arguments. */
-#ifdef YYLEX_PARAM
-# define YYLEX yylex (YYLEX_PARAM)
-#else
-# define YYLEX yylex ()
-#endif
/* Enable debugging if requested. */
#if YYDEBUG
@@ -983,40 +901,36 @@ while (YYID (0))
# define YYFPRINTF fprintf
# endif
-# define YYDPRINTF(Args) \
-do { \
- if (yydebug) \
- YYFPRINTF Args; \
-} while (YYID (0))
+# define YYDPRINTF(Args) \
+do { \
+ if (yydebug) \
+ YYFPRINTF Args; \
+} while (0)
+
+/* This macro is provided for backward compatibility. */
+#ifndef YY_LOCATION_PRINT
+# define YY_LOCATION_PRINT(File, Loc) ((void) 0)
+#endif
+
-# define YY_SYMBOL_PRINT(Title, Type, Value, Location) \
-do { \
- if (yydebug) \
- { \
- YYFPRINTF (stderr, "%s ", Title); \
- yy_symbol_print (stderr, \
- Type, Value); \
- YYFPRINTF (stderr, "\n"); \
- } \
-} while (YYID (0))
+# define YY_SYMBOL_PRINT(Title, Type, Value, Location) \
+do { \
+ if (yydebug) \
+ { \
+ YYFPRINTF (stderr, "%s ", Title); \
+ yy_symbol_print (stderr, \
+ Type, Value); \
+ YYFPRINTF (stderr, "\n"); \
+ } \
+} while (0)
-/*--------------------------------.
-| Print this symbol on YYOUTPUT. |
-`--------------------------------*/
+/*----------------------------------------.
+| Print this symbol's value on YYOUTPUT. |
+`----------------------------------------*/
-/*ARGSUSED*/
-#if (defined __STDC__ || defined __C99__FUNC__ \
- || defined __cplusplus || defined _MSC_VER)
static void
yy_symbol_value_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep)
-#else
-static void
-yy_symbol_value_print (yyoutput, yytype, yyvaluep)
- FILE *yyoutput;
- int yytype;
- YYSTYPE const * const yyvaluep;
-#endif
{
FILE *yyo = yyoutput;
YYUSE (yyo);
@@ -1025,14 +939,8 @@ yy_symbol_value_print (yyoutput, yytype, yyvaluep)
# ifdef YYPRINT
if (yytype < YYNTOKENS)
YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep);
-# else
- YYUSE (yyoutput);
# endif
- switch (yytype)
- {
- default:
- break;
- }
+ YYUSE (yytype);
}
@@ -1040,22 +948,11 @@ yy_symbol_value_print (yyoutput, yytype, yyvaluep)
| Print this symbol on YYOUTPUT. |
`--------------------------------*/
-#if (defined __STDC__ || defined __C99__FUNC__ \
- || defined __cplusplus || defined _MSC_VER)
static void
yy_symbol_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep)
-#else
-static void
-yy_symbol_print (yyoutput, yytype, yyvaluep)
- FILE *yyoutput;
- int yytype;
- YYSTYPE const * const yyvaluep;
-#endif
{
- if (yytype < YYNTOKENS)
- YYFPRINTF (yyoutput, "token %s (", yytname[yytype]);
- else
- YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]);
+ YYFPRINTF (yyoutput, "%s %s (",
+ yytype < YYNTOKENS ? "token" : "nterm", yytname[yytype]);
yy_symbol_value_print (yyoutput, yytype, yyvaluep);
YYFPRINTF (yyoutput, ")");
@@ -1066,16 +963,8 @@ yy_symbol_print (yyoutput, yytype, yyvaluep)
| TOP (included). |
`------------------------------------------------------------------*/
-#if (defined __STDC__ || defined __C99__FUNC__ \
- || defined __cplusplus || defined _MSC_VER)
static void
yy_stack_print (yytype_int16 *yybottom, yytype_int16 *yytop)
-#else
-static void
-yy_stack_print (yybottom, yytop)
- yytype_int16 *yybottom;
- yytype_int16 *yytop;
-#endif
{
YYFPRINTF (stderr, "Stack now");
for (; yybottom <= yytop; yybottom++)
@@ -1086,49 +975,42 @@ yy_stack_print (yybottom, yytop)
YYFPRINTF (stderr, "\n");
}
-# define YY_STACK_PRINT(Bottom, Top) \
-do { \
- if (yydebug) \
- yy_stack_print ((Bottom), (Top)); \
-} while (YYID (0))
+# define YY_STACK_PRINT(Bottom, Top) \
+do { \
+ if (yydebug) \
+ yy_stack_print ((Bottom), (Top)); \
+} while (0)
/*------------------------------------------------.
| Report that the YYRULE is going to be reduced. |
`------------------------------------------------*/
-#if (defined __STDC__ || defined __C99__FUNC__ \
- || defined __cplusplus || defined _MSC_VER)
-static void
-yy_reduce_print (YYSTYPE *yyvsp, int yyrule)
-#else
static void
-yy_reduce_print (yyvsp, yyrule)
- YYSTYPE *yyvsp;
- int yyrule;
-#endif
+yy_reduce_print (yytype_int16 *yyssp, YYSTYPE *yyvsp, int yyrule)
{
+ unsigned long int yylno = yyrline[yyrule];
int yynrhs = yyr2[yyrule];
int yyi;
- unsigned long int yylno = yyrline[yyrule];
YYFPRINTF (stderr, "Reducing stack by rule %d (line %lu):\n",
- yyrule - 1, yylno);
+ yyrule - 1, yylno);
/* The symbols being reduced. */
for (yyi = 0; yyi < yynrhs; yyi++)
{
YYFPRINTF (stderr, " $%d = ", yyi + 1);
- yy_symbol_print (stderr, yyrhs[yyprhs[yyrule] + yyi],
- &(yyvsp[(yyi + 1) - (yynrhs)])
- );
+ yy_symbol_print (stderr,
+ yystos[yyssp[yyi + 1 - yynrhs]],
+ &(yyvsp[(yyi + 1) - (yynrhs)])
+ );
YYFPRINTF (stderr, "\n");
}
}
-# define YY_REDUCE_PRINT(Rule) \
-do { \
- if (yydebug) \
- yy_reduce_print (yyvsp, Rule); \
-} while (YYID (0))
+# define YY_REDUCE_PRINT(Rule) \
+do { \
+ if (yydebug) \
+ yy_reduce_print (yyssp, yyvsp, Rule); \
+} while (0)
/* Nonzero means print parse trace. It is left uninitialized so that
multiple parsers can coexist. */
@@ -1142,7 +1024,7 @@ int yydebug;
/* YYINITDEPTH -- initial size of the parser's stacks. */
-#ifndef YYINITDEPTH
+#ifndef YYINITDEPTH
# define YYINITDEPTH 200
#endif
@@ -1165,15 +1047,8 @@ int yydebug;
# define yystrlen strlen
# else
/* Return the length of YYSTR. */
-#if (defined __STDC__ || defined __C99__FUNC__ \
- || defined __cplusplus || defined _MSC_VER)
static YYSIZE_T
yystrlen (const char *yystr)
-#else
-static YYSIZE_T
-yystrlen (yystr)
- const char *yystr;
-#endif
{
YYSIZE_T yylen;
for (yylen = 0; yystr[yylen]; yylen++)
@@ -1189,16 +1064,8 @@ yystrlen (yystr)
# else
/* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in
YYDEST. */
-#if (defined __STDC__ || defined __C99__FUNC__ \
- || defined __cplusplus || defined _MSC_VER)
static char *
yystpcpy (char *yydest, const char *yysrc)
-#else
-static char *
-yystpcpy (yydest, yysrc)
- char *yydest;
- const char *yysrc;
-#endif
{
char *yyd = yydest;
const char *yys = yysrc;
@@ -1228,27 +1095,27 @@ yytnamerr (char *yyres, const char *yystr)
char const *yyp = yystr;
for (;;)
- switch (*++yyp)
- {
- case '\'':
- case ',':
- goto do_not_strip_quotes;
-
- case '\\':
- if (*++yyp != '\\')
- goto do_not_strip_quotes;
- /* Fall through. */
- default:
- if (yyres)
- yyres[yyn] = *yyp;
- yyn++;
- break;
-
- case '"':
- if (yyres)
- yyres[yyn] = '\0';
- return yyn;
- }
+ switch (*++yyp)
+ {
+ case '\'':
+ case ',':
+ goto do_not_strip_quotes;
+
+ case '\\':
+ if (*++yyp != '\\')
+ goto do_not_strip_quotes;
+ /* Fall through. */
+ default:
+ if (yyres)
+ yyres[yyn] = *yyp;
+ yyn++;
+ break;
+
+ case '"':
+ if (yyres)
+ yyres[yyn] = '\0';
+ return yyn;
+ }
do_not_strip_quotes: ;
}
@@ -1271,11 +1138,11 @@ static int
yysyntax_error (YYSIZE_T *yymsg_alloc, char **yymsg,
yytype_int16 *yyssp, int yytoken)
{
- YYSIZE_T yysize0 = yytnamerr (YY_NULL, yytname[yytoken]);
+ 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_NULL;
+ 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
@@ -1283,10 +1150,6 @@ yysyntax_error (YYSIZE_T *yymsg_alloc, char **yymsg,
int yycount = 0;
/* There are many possibilities here to consider:
- - Assume YYFAIL is not used. It's too flawed to consider. See
- <http://lists.gnu.org/archive/html/bison-patches/2009-12/msg00024.html>
- for details. YYERROR is fine as it does not invoke this
- function.
- If this state is a consistent state with a default action, then
the only way this function was invoked is if the default action
is an error action. In that case, don't check for expected
@@ -1336,7 +1199,7 @@ yysyntax_error (YYSIZE_T *yymsg_alloc, char **yymsg,
}
yyarg[yycount++] = yytname[yyx];
{
- YYSIZE_T yysize1 = yysize + yytnamerr (YY_NULL, yytname[yyx]);
+ YYSIZE_T yysize1 = yysize + yytnamerr (YY_NULLPTR, yytname[yyx]);
if (! (yysize <= yysize1
&& yysize1 <= YYSTACK_ALLOC_MAXIMUM))
return 2;
@@ -1403,31 +1266,17 @@ yysyntax_error (YYSIZE_T *yymsg_alloc, char **yymsg,
| Release the memory associated to this symbol. |
`-----------------------------------------------*/
-/*ARGSUSED*/
-#if (defined __STDC__ || defined __C99__FUNC__ \
- || defined __cplusplus || defined _MSC_VER)
static void
yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep)
-#else
-static void
-yydestruct (yymsg, yytype, yyvaluep)
- const char *yymsg;
- int yytype;
- YYSTYPE *yyvaluep;
-#endif
{
YYUSE (yyvaluep);
-
if (!yymsg)
yymsg = "Deleting";
YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp);
- switch (yytype)
- {
-
- default:
- break;
- }
+ YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
+ YYUSE (yytype);
+ YY_IGNORE_MAYBE_UNINITIALIZED_END
}
@@ -1436,18 +1285,8 @@ yydestruct (yymsg, yytype, yyvaluep)
/* The lookahead symbol. */
int yychar;
-
-#ifndef YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
-# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
-# define YY_IGNORE_MAYBE_UNINITIALIZED_END
-#endif
-#ifndef YY_INITIAL_VALUE
-# define YY_INITIAL_VALUE(Value) /* Nothing. */
-#endif
-
/* The semantic value of the lookahead symbol. */
-YYSTYPE yylval YY_INITIAL_VALUE(yyval_default);
-
+YYSTYPE yylval;
/* Number of syntax errors so far. */
int yynerrs;
@@ -1456,35 +1295,16 @@ int yynerrs;
| yyparse. |
`----------*/
-#ifdef YYPARSE_PARAM
-#if (defined __STDC__ || defined __C99__FUNC__ \
- || defined __cplusplus || defined _MSC_VER)
-int
-yyparse (void *YYPARSE_PARAM)
-#else
-int
-yyparse (YYPARSE_PARAM)
- void *YYPARSE_PARAM;
-#endif
-#else /* ! YYPARSE_PARAM */
-#if (defined __STDC__ || defined __C99__FUNC__ \
- || defined __cplusplus || defined _MSC_VER)
int
yyparse (void)
-#else
-int
-yyparse ()
-
-#endif
-#endif
{
int yystate;
/* 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.
+ 'yyss': related to states.
+ 'yyvs': related to semantic values.
Refer to the stacks through separate pointers, to allow yyoverflow
to reallocate them elsewhere. */
@@ -1552,23 +1372,23 @@ yyparse ()
#ifdef 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. */
- 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),
- &yystacksize);
-
- yyss = yyss1;
- yyvs = yyvs1;
+ /* Give user a chance to reallocate the stack. Use copies of
+ these so that the &'s don't force the real ones into
+ memory. */
+ 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),
+ &yystacksize);
+
+ yyss = yyss1;
+ yyvs = yyvs1;
}
#else /* no yyoverflow */
# ifndef YYSTACK_RELOCATE
@@ -1576,22 +1396,22 @@ yyparse ()
# else
/* Extend the stack our own way. */
if (YYMAXDEPTH <= yystacksize)
- goto yyexhaustedlab;
+ goto yyexhaustedlab;
yystacksize *= 2;
if (YYMAXDEPTH < yystacksize)
- yystacksize = YYMAXDEPTH;
+ yystacksize = YYMAXDEPTH;
{
- yytype_int16 *yyss1 = yyss;
- union yyalloc *yyptr =
- (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize));
- if (! yyptr)
- goto yyexhaustedlab;
- YYSTACK_RELOCATE (yyss_alloc, yyss);
- YYSTACK_RELOCATE (yyvs_alloc, yyvs);
+ yytype_int16 *yyss1 = yyss;
+ union yyalloc *yyptr =
+ (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize));
+ if (! yyptr)
+ goto yyexhaustedlab;
+ YYSTACK_RELOCATE (yyss_alloc, yyss);
+ YYSTACK_RELOCATE (yyvs_alloc, yyvs);
# undef YYSTACK_RELOCATE
- if (yyss1 != yyssa)
- YYSTACK_FREE (yyss1);
+ if (yyss1 != yyssa)
+ YYSTACK_FREE (yyss1);
}
# endif
#endif /* no yyoverflow */
@@ -1600,10 +1420,10 @@ yyparse ()
yyvsp = yyvs + yysize - 1;
YYDPRINTF ((stderr, "Stack size increased to %lu\n",
- (unsigned long int) yystacksize));
+ (unsigned long int) yystacksize));
if (yyss + yystacksize - 1 <= yyssp)
- YYABORT;
+ YYABORT;
}
YYDPRINTF ((stderr, "Entering state %d\n", yystate));
@@ -1632,7 +1452,7 @@ yybackup:
if (yychar == YYEMPTY)
{
YYDPRINTF ((stderr, "Reading a token: "));
- yychar = YYLEX;
+ yychar = yylex ();
}
if (yychar <= YYEOF)
@@ -1697,7 +1517,7 @@ yyreduce:
yylen = yyr2[yyn];
/* If YYLEN is nonzero, implement the default value of the action:
- `$$ = $1'.
+ '$$ = $1'.
Otherwise, the following line sets YYVAL to garbage.
This behavior is undocumented and Bison
@@ -1711,823 +1531,822 @@ yyreduce:
switch (yyn)
{
case 2:
-/* Line 1792 of yacc.c */
-#line 138 "ASN1.y"
- {(yyval.node)=_asn1_add_static_node(ASN1_ETYPE_DEFINITIONS|(yyvsp[(3) - (8)].constant));
- _asn1_set_name((yyval.node),_asn1_get_name((yyvsp[(1) - (8)].node)));
- _asn1_set_name((yyvsp[(1) - (8)].node),"");
- _asn1_set_right((yyvsp[(1) - (8)].node),(yyvsp[(7) - (8)].node));
- _asn1_set_down((yyval.node),(yyvsp[(1) - (8)].node));
+#line 138 "ASN1.y" /* yacc.c:1646 */
+ {(yyval.node)=_asn1_add_static_node(ASN1_ETYPE_DEFINITIONS|(yyvsp[-5].constant));
+ _asn1_set_name((yyval.node),_asn1_get_name((yyvsp[-7].node)));
+ _asn1_set_name((yyvsp[-7].node),"");
+ _asn1_set_right((yyvsp[-7].node),(yyvsp[-1].node));
+ _asn1_set_down((yyval.node),(yyvsp[-7].node));
p_tree=(yyval.node);
}
+#line 1544 "ASN1.c" /* yacc.c:1646 */
break;
case 3:
-/* Line 1792 of yacc.c */
-#line 148 "ASN1.y"
- {snprintf((yyval.str),sizeof((yyval.str)),"%s",(yyvsp[(1) - (1)].str));}
+#line 148 "ASN1.y" /* yacc.c:1646 */
+ {snprintf((yyval.str),sizeof((yyval.str)),"%s",(yyvsp[0].str));}
+#line 1550 "ASN1.c" /* yacc.c:1646 */
break;
case 4:
-/* Line 1792 of yacc.c */
-#line 149 "ASN1.y"
- {snprintf((yyval.str),sizeof((yyval.str)),"%s",(yyvsp[(2) - (2)].str));}
+#line 149 "ASN1.y" /* yacc.c:1646 */
+ {snprintf((yyval.str),sizeof((yyval.str)),"%s",(yyvsp[0].str));}
+#line 1556 "ASN1.c" /* yacc.c:1646 */
break;
case 5:
-/* Line 1792 of yacc.c */
-#line 152 "ASN1.y"
- {snprintf((yyval.str),sizeof((yyval.str)),"-%s",(yyvsp[(2) - (2)].str));}
+#line 152 "ASN1.y" /* yacc.c:1646 */
+ {snprintf((yyval.str),sizeof((yyval.str)),"-%s",(yyvsp[0].str));}
+#line 1562 "ASN1.c" /* yacc.c:1646 */
break;
case 6:
-/* Line 1792 of yacc.c */
-#line 155 "ASN1.y"
- {snprintf((yyval.str),sizeof((yyval.str)),"%s",(yyvsp[(1) - (1)].str));}
+#line 155 "ASN1.y" /* yacc.c:1646 */
+ {snprintf((yyval.str),sizeof((yyval.str)),"%s",(yyvsp[0].str));}
+#line 1568 "ASN1.c" /* yacc.c:1646 */
break;
case 7:
-/* Line 1792 of yacc.c */
-#line 156 "ASN1.y"
- {snprintf((yyval.str),sizeof((yyval.str)),"%s",(yyvsp[(1) - (1)].str));}
+#line 156 "ASN1.y" /* yacc.c:1646 */
+ {snprintf((yyval.str),sizeof((yyval.str)),"%s",(yyvsp[0].str));}
+#line 1574 "ASN1.c" /* yacc.c:1646 */
break;
case 8:
-/* Line 1792 of yacc.c */
-#line 159 "ASN1.y"
- {snprintf((yyval.str),sizeof((yyval.str)),"%s",(yyvsp[(1) - (1)].str));}
+#line 159 "ASN1.y" /* yacc.c:1646 */
+ {snprintf((yyval.str),sizeof((yyval.str)),"%s",(yyvsp[0].str));}
+#line 1580 "ASN1.c" /* yacc.c:1646 */
break;
case 9:
-/* Line 1792 of yacc.c */
-#line 160 "ASN1.y"
- {snprintf((yyval.str),sizeof((yyval.str)),"%s",(yyvsp[(1) - (1)].str));}
+#line 160 "ASN1.y" /* yacc.c:1646 */
+ {snprintf((yyval.str),sizeof((yyval.str)),"%s",(yyvsp[0].str));}
+#line 1586 "ASN1.c" /* yacc.c:1646 */
break;
case 10:
-/* Line 1792 of yacc.c */
-#line 163 "ASN1.y"
- {snprintf((yyval.str),sizeof((yyval.str)),"%s",(yyvsp[(1) - (1)].str));}
+#line 163 "ASN1.y" /* yacc.c:1646 */
+ {snprintf((yyval.str),sizeof((yyval.str)),"%s",(yyvsp[0].str));}
+#line 1592 "ASN1.c" /* yacc.c:1646 */
break;
case 11:
-/* Line 1792 of yacc.c */
-#line 164 "ASN1.y"
- {snprintf((yyval.str),sizeof((yyval.str)),"-%s",(yyvsp[(2) - (2)].str));}
+#line 164 "ASN1.y" /* yacc.c:1646 */
+ {snprintf((yyval.str),sizeof((yyval.str)),"-%s",(yyvsp[0].str));}
+#line 1598 "ASN1.c" /* yacc.c:1646 */
break;
case 12:
-/* Line 1792 of yacc.c */
-#line 165 "ASN1.y"
- {snprintf((yyval.str),sizeof((yyval.str)),"%s",(yyvsp[(1) - (1)].str));}
+#line 165 "ASN1.y" /* yacc.c:1646 */
+ {snprintf((yyval.str),sizeof((yyval.str)),"%s",(yyvsp[0].str));}
+#line 1604 "ASN1.c" /* yacc.c:1646 */
break;
case 13:
-/* Line 1792 of yacc.c */
-#line 168 "ASN1.y"
- {snprintf((yyval.str),sizeof((yyval.str)),"%s",(yyvsp[(1) - (1)].str));}
+#line 168 "ASN1.y" /* yacc.c:1646 */
+ {snprintf((yyval.str),sizeof((yyval.str)),"%s",(yyvsp[0].str));}
+#line 1610 "ASN1.c" /* yacc.c:1646 */
break;
case 14:
-/* Line 1792 of yacc.c */
-#line 169 "ASN1.y"
- {snprintf((yyval.str),sizeof((yyval.str)),"%s",(yyvsp[(1) - (1)].str));}
+#line 169 "ASN1.y" /* yacc.c:1646 */
+ {snprintf((yyval.str),sizeof((yyval.str)),"%s",(yyvsp[0].str));}
+#line 1616 "ASN1.c" /* yacc.c:1646 */
break;
case 15:
-/* Line 1792 of yacc.c */
-#line 172 "ASN1.y"
+#line 172 "ASN1.y" /* yacc.c:1646 */
{(yyval.node)=_asn1_add_static_node(ASN1_ETYPE_CONSTANT);
- _asn1_set_value((yyval.node),(yyvsp[(2) - (3)].str),strlen((yyvsp[(2) - (3)].str))+1);}
+ _asn1_set_value((yyval.node),(yyvsp[-1].str),strlen((yyvsp[-1].str))+1);}
+#line 1623 "ASN1.c" /* yacc.c:1646 */
break;
case 16:
-/* Line 1792 of yacc.c */
-#line 174 "ASN1.y"
+#line 174 "ASN1.y" /* yacc.c:1646 */
{(yyval.node)=_asn1_add_static_node(ASN1_ETYPE_CONSTANT);
- _asn1_set_name((yyval.node),(yyvsp[(1) - (4)].str));
- _asn1_set_value((yyval.node),(yyvsp[(3) - (4)].str),strlen((yyvsp[(3) - (4)].str))+1);}
+ _asn1_set_name((yyval.node),(yyvsp[-3].str));
+ _asn1_set_value((yyval.node),(yyvsp[-1].str),strlen((yyvsp[-1].str))+1);}
+#line 1631 "ASN1.c" /* yacc.c:1646 */
break;
case 17:
-/* Line 1792 of yacc.c */
-#line 179 "ASN1.y"
- {(yyval.node)=(yyvsp[(1) - (1)].node);}
+#line 179 "ASN1.y" /* yacc.c:1646 */
+ {(yyval.node)=(yyvsp[0].node);}
+#line 1637 "ASN1.c" /* yacc.c:1646 */
break;
case 18:
-/* Line 1792 of yacc.c */
-#line 180 "ASN1.y"
- {(yyval.node)=(yyvsp[(1) - (3)].node);
- _asn1_set_right(_asn1_get_last_right((yyvsp[(1) - (3)].node)),(yyvsp[(3) - (3)].node));}
+#line 180 "ASN1.y" /* yacc.c:1646 */
+ {(yyval.node)=(yyvsp[-2].node);
+ _asn1_set_right(_asn1_get_last_right((yyvsp[-2].node)),(yyvsp[0].node));}
+#line 1644 "ASN1.c" /* yacc.c:1646 */
break;
case 19:
-/* Line 1792 of yacc.c */
-#line 184 "ASN1.y"
+#line 184 "ASN1.y" /* yacc.c:1646 */
{(yyval.node)=_asn1_add_static_node(ASN1_ETYPE_CONSTANT);
- _asn1_set_value((yyval.node),(yyvsp[(1) - (1)].str),strlen((yyvsp[(1) - (1)].str))+1);}
+ _asn1_set_value((yyval.node),(yyvsp[0].str),strlen((yyvsp[0].str))+1);}
+#line 1651 "ASN1.c" /* yacc.c:1646 */
break;
case 20:
-/* Line 1792 of yacc.c */
-#line 186 "ASN1.y"
+#line 186 "ASN1.y" /* yacc.c:1646 */
{(yyval.node)=_asn1_add_static_node(ASN1_ETYPE_CONSTANT);
- _asn1_set_name((yyval.node),(yyvsp[(1) - (4)].str));
- _asn1_set_value((yyval.node),(yyvsp[(3) - (4)].str),strlen((yyvsp[(3) - (4)].str))+1);}
+ _asn1_set_name((yyval.node),(yyvsp[-3].str));
+ _asn1_set_value((yyval.node),(yyvsp[-1].str),strlen((yyvsp[-1].str))+1);}
+#line 1659 "ASN1.c" /* yacc.c:1646 */
break;
case 21:
-/* Line 1792 of yacc.c */
-#line 191 "ASN1.y"
- {(yyval.node)=(yyvsp[(1) - (1)].node);}
+#line 191 "ASN1.y" /* yacc.c:1646 */
+ {(yyval.node)=(yyvsp[0].node);}
+#line 1665 "ASN1.c" /* yacc.c:1646 */
break;
case 22:
-/* Line 1792 of yacc.c */
-#line 192 "ASN1.y"
- {(yyval.node)=(yyvsp[(1) - (2)].node);
- _asn1_set_right(_asn1_get_last_right((yyvsp[(1) - (2)].node)),(yyvsp[(2) - (2)].node));}
+#line 192 "ASN1.y" /* yacc.c:1646 */
+ {(yyval.node)=(yyvsp[-1].node);
+ _asn1_set_right(_asn1_get_last_right((yyvsp[-1].node)),(yyvsp[0].node));}
+#line 1672 "ASN1.c" /* yacc.c:1646 */
break;
case 23:
-/* Line 1792 of yacc.c */
-#line 196 "ASN1.y"
+#line 196 "ASN1.y" /* yacc.c:1646 */
{(yyval.constant)=CONST_UNIVERSAL;}
+#line 1678 "ASN1.c" /* yacc.c:1646 */
break;
case 24:
-/* Line 1792 of yacc.c */
-#line 197 "ASN1.y"
+#line 197 "ASN1.y" /* yacc.c:1646 */
{(yyval.constant)=CONST_PRIVATE;}
+#line 1684 "ASN1.c" /* yacc.c:1646 */
break;
case 25:
-/* Line 1792 of yacc.c */
-#line 198 "ASN1.y"
+#line 198 "ASN1.y" /* yacc.c:1646 */
{(yyval.constant)=CONST_APPLICATION;}
+#line 1690 "ASN1.c" /* yacc.c:1646 */
break;
case 26:
-/* Line 1792 of yacc.c */
-#line 201 "ASN1.y"
+#line 201 "ASN1.y" /* yacc.c:1646 */
{(yyval.node)=_asn1_add_static_node(ASN1_ETYPE_TAG);
- _asn1_set_value((yyval.node),(yyvsp[(2) - (3)].str),strlen((yyvsp[(2) - (3)].str))+1);}
+ _asn1_set_value((yyval.node),(yyvsp[-1].str),strlen((yyvsp[-1].str))+1);}
+#line 1697 "ASN1.c" /* yacc.c:1646 */
break;
case 27:
-/* Line 1792 of yacc.c */
-#line 203 "ASN1.y"
- {(yyval.node)=_asn1_add_static_node(ASN1_ETYPE_TAG | (yyvsp[(2) - (4)].constant));
- _asn1_set_value((yyval.node),(yyvsp[(3) - (4)].str),strlen((yyvsp[(3) - (4)].str))+1);}
+#line 203 "ASN1.y" /* yacc.c:1646 */
+ {(yyval.node)=_asn1_add_static_node(ASN1_ETYPE_TAG | (yyvsp[-2].constant));
+ _asn1_set_value((yyval.node),(yyvsp[-1].str),strlen((yyvsp[-1].str))+1);}
+#line 1704 "ASN1.c" /* yacc.c:1646 */
break;
case 28:
-/* Line 1792 of yacc.c */
-#line 207 "ASN1.y"
- {(yyval.node)=(yyvsp[(1) - (1)].node);}
+#line 207 "ASN1.y" /* yacc.c:1646 */
+ {(yyval.node)=(yyvsp[0].node);}
+#line 1710 "ASN1.c" /* yacc.c:1646 */
break;
case 29:
-/* Line 1792 of yacc.c */
-#line 208 "ASN1.y"
- {(yyval.node)=_asn1_mod_type((yyvsp[(1) - (2)].node),CONST_EXPLICIT);}
+#line 208 "ASN1.y" /* yacc.c:1646 */
+ {(yyval.node)=_asn1_mod_type((yyvsp[-1].node),CONST_EXPLICIT);}
+#line 1716 "ASN1.c" /* yacc.c:1646 */
break;
case 30:
-/* Line 1792 of yacc.c */
-#line 209 "ASN1.y"
- {(yyval.node)=_asn1_mod_type((yyvsp[(1) - (2)].node),CONST_IMPLICIT);}
+#line 209 "ASN1.y" /* yacc.c:1646 */
+ {(yyval.node)=_asn1_mod_type((yyvsp[-1].node),CONST_IMPLICIT);}
+#line 1722 "ASN1.c" /* yacc.c:1646 */
break;
case 31:
-/* Line 1792 of yacc.c */
-#line 212 "ASN1.y"
+#line 212 "ASN1.y" /* yacc.c:1646 */
{(yyval.node)=_asn1_add_static_node(ASN1_ETYPE_DEFAULT);
- _asn1_set_value((yyval.node),(yyvsp[(2) - (2)].str),strlen((yyvsp[(2) - (2)].str))+1);}
+ _asn1_set_value((yyval.node),(yyvsp[0].str),strlen((yyvsp[0].str))+1);}
+#line 1729 "ASN1.c" /* yacc.c:1646 */
break;
case 32:
-/* Line 1792 of yacc.c */
-#line 214 "ASN1.y"
+#line 214 "ASN1.y" /* yacc.c:1646 */
{(yyval.node)=_asn1_add_static_node(ASN1_ETYPE_DEFAULT|CONST_TRUE);}
+#line 1735 "ASN1.c" /* yacc.c:1646 */
break;
case 33:
-/* Line 1792 of yacc.c */
-#line 215 "ASN1.y"
+#line 215 "ASN1.y" /* yacc.c:1646 */
{(yyval.node)=_asn1_add_static_node(ASN1_ETYPE_DEFAULT|CONST_FALSE);}
+#line 1741 "ASN1.c" /* yacc.c:1646 */
break;
case 36:
-/* Line 1792 of yacc.c */
-#line 224 "ASN1.y"
+#line 224 "ASN1.y" /* yacc.c:1646 */
{(yyval.node)=_asn1_add_static_node(ASN1_ETYPE_INTEGER);}
+#line 1747 "ASN1.c" /* yacc.c:1646 */
break;
case 37:
-/* Line 1792 of yacc.c */
-#line 225 "ASN1.y"
+#line 225 "ASN1.y" /* yacc.c:1646 */
{(yyval.node)=_asn1_add_static_node(ASN1_ETYPE_INTEGER|CONST_LIST);
- _asn1_set_down((yyval.node),(yyvsp[(3) - (4)].node));}
+ _asn1_set_down((yyval.node),(yyvsp[-1].node));}
+#line 1754 "ASN1.c" /* yacc.c:1646 */
break;
case 38:
-/* Line 1792 of yacc.c */
-#line 227 "ASN1.y"
+#line 227 "ASN1.y" /* yacc.c:1646 */
{(yyval.node)=_asn1_add_static_node(ASN1_ETYPE_INTEGER);}
+#line 1760 "ASN1.c" /* yacc.c:1646 */
break;
case 39:
-/* Line 1792 of yacc.c */
-#line 229 "ASN1.y"
+#line 229 "ASN1.y" /* yacc.c:1646 */
{(yyval.node)=_asn1_add_static_node(ASN1_ETYPE_INTEGER|CONST_MIN_MAX);
_asn1_set_down((yyval.node),_asn1_add_static_node(ASN1_ETYPE_SIZE));
- _asn1_set_value(_asn1_get_down((yyval.node)),(yyvsp[(6) - (7)].str),strlen((yyvsp[(6) - (7)].str))+1);
- _asn1_set_name(_asn1_get_down((yyval.node)),(yyvsp[(3) - (7)].str));}
+ _asn1_set_value(_asn1_get_down((yyval.node)),(yyvsp[-1].str),strlen((yyvsp[-1].str))+1);
+ _asn1_set_name(_asn1_get_down((yyval.node)),(yyvsp[-4].str));}
+#line 1769 "ASN1.c" /* yacc.c:1646 */
break;
case 40:
-/* Line 1792 of yacc.c */
-#line 235 "ASN1.y"
+#line 235 "ASN1.y" /* yacc.c:1646 */
{(yyval.node)=_asn1_add_static_node(ASN1_ETYPE_BOOLEAN);}
+#line 1775 "ASN1.c" /* yacc.c:1646 */
break;
case 41:
-/* Line 1792 of yacc.c */
-#line 238 "ASN1.y"
+#line 238 "ASN1.y" /* yacc.c:1646 */
{(yyval.node)=_asn1_add_static_node(ASN1_ETYPE_UTC_TIME);}
+#line 1781 "ASN1.c" /* yacc.c:1646 */
break;
case 42:
-/* Line 1792 of yacc.c */
-#line 239 "ASN1.y"
+#line 239 "ASN1.y" /* yacc.c:1646 */
{(yyval.node)=_asn1_add_static_node(ASN1_ETYPE_GENERALIZED_TIME);}
+#line 1787 "ASN1.c" /* yacc.c:1646 */
break;
case 43:
-/* Line 1792 of yacc.c */
-#line 242 "ASN1.y"
+#line 242 "ASN1.y" /* yacc.c:1646 */
{(yyval.node)=_asn1_add_static_node(ASN1_ETYPE_SIZE|CONST_1_PARAM);
- _asn1_set_value((yyval.node),(yyvsp[(3) - (4)].str),strlen((yyvsp[(3) - (4)].str))+1);}
+ _asn1_set_value((yyval.node),(yyvsp[-1].str),strlen((yyvsp[-1].str))+1);}
+#line 1794 "ASN1.c" /* yacc.c:1646 */
break;
case 44:
-/* Line 1792 of yacc.c */
-#line 245 "ASN1.y"
+#line 245 "ASN1.y" /* yacc.c:1646 */
{(yyval.node)=_asn1_add_static_node(ASN1_ETYPE_SIZE|CONST_MIN_MAX);
- _asn1_set_value((yyval.node),(yyvsp[(3) - (7)].str),strlen((yyvsp[(3) - (7)].str))+1);
- _asn1_set_name((yyval.node),(yyvsp[(6) - (7)].str));}
+ _asn1_set_value((yyval.node),(yyvsp[-4].str),strlen((yyvsp[-4].str))+1);
+ _asn1_set_name((yyval.node),(yyvsp[-1].str));}
+#line 1802 "ASN1.c" /* yacc.c:1646 */
break;
case 45:
-/* Line 1792 of yacc.c */
-#line 250 "ASN1.y"
- {(yyval.node)=(yyvsp[(1) - (1)].node);}
+#line 250 "ASN1.y" /* yacc.c:1646 */
+ {(yyval.node)=(yyvsp[0].node);}
+#line 1808 "ASN1.c" /* yacc.c:1646 */
break;
case 46:
-/* Line 1792 of yacc.c */
-#line 251 "ASN1.y"
- {(yyval.node)=(yyvsp[(2) - (3)].node);}
+#line 251 "ASN1.y" /* yacc.c:1646 */
+ {(yyval.node)=(yyvsp[-1].node);}
+#line 1814 "ASN1.c" /* yacc.c:1646 */
break;
case 47:
-/* Line 1792 of yacc.c */
-#line 254 "ASN1.y"
+#line 254 "ASN1.y" /* yacc.c:1646 */
{(yyval.node)=_asn1_add_static_node(ASN1_ETYPE_GENERALSTRING);}
+#line 1820 "ASN1.c" /* yacc.c:1646 */
break;
case 48:
-/* Line 1792 of yacc.c */
-#line 255 "ASN1.y"
+#line 255 "ASN1.y" /* yacc.c:1646 */
{(yyval.node)=_asn1_add_static_node(ASN1_ETYPE_GENERALSTRING|CONST_SIZE);
- _asn1_set_down((yyval.node),(yyvsp[(2) - (2)].node));}
+ _asn1_set_down((yyval.node),(yyvsp[0].node));}
+#line 1827 "ASN1.c" /* yacc.c:1646 */
break;
case 49:
-/* Line 1792 of yacc.c */
-#line 259 "ASN1.y"
+#line 259 "ASN1.y" /* yacc.c:1646 */
{(yyval.node)=_asn1_add_static_node(ASN1_ETYPE_NUMERIC_STRING|CONST_UNIVERSAL);}
+#line 1833 "ASN1.c" /* yacc.c:1646 */
break;
case 50:
-/* Line 1792 of yacc.c */
-#line 260 "ASN1.y"
+#line 260 "ASN1.y" /* yacc.c:1646 */
{(yyval.node)=_asn1_add_static_node(ASN1_ETYPE_NUMERIC_STRING|CONST_SIZE);
- _asn1_set_down((yyval.node),(yyvsp[(2) - (2)].node));}
+ _asn1_set_down((yyval.node),(yyvsp[0].node));}
+#line 1840 "ASN1.c" /* yacc.c:1646 */
break;
case 51:
-/* Line 1792 of yacc.c */
-#line 264 "ASN1.y"
+#line 264 "ASN1.y" /* yacc.c:1646 */
{(yyval.node)=_asn1_add_static_node(ASN1_ETYPE_IA5_STRING);}
+#line 1846 "ASN1.c" /* yacc.c:1646 */
break;
case 52:
-/* Line 1792 of yacc.c */
-#line 265 "ASN1.y"
+#line 265 "ASN1.y" /* yacc.c:1646 */
{(yyval.node)=_asn1_add_static_node(ASN1_ETYPE_IA5_STRING|CONST_SIZE);
- _asn1_set_down((yyval.node),(yyvsp[(2) - (2)].node));}
+ _asn1_set_down((yyval.node),(yyvsp[0].node));}
+#line 1853 "ASN1.c" /* yacc.c:1646 */
break;
case 53:
-/* Line 1792 of yacc.c */
-#line 269 "ASN1.y"
+#line 269 "ASN1.y" /* yacc.c:1646 */
{(yyval.node)=_asn1_add_static_node(ASN1_ETYPE_TELETEX_STRING);}
+#line 1859 "ASN1.c" /* yacc.c:1646 */
break;
case 54:
-/* Line 1792 of yacc.c */
-#line 270 "ASN1.y"
+#line 270 "ASN1.y" /* yacc.c:1646 */
{(yyval.node)=_asn1_add_static_node(ASN1_ETYPE_TELETEX_STRING|CONST_SIZE);
- _asn1_set_down((yyval.node),(yyvsp[(2) - (2)].node));}
+ _asn1_set_down((yyval.node),(yyvsp[0].node));}
+#line 1866 "ASN1.c" /* yacc.c:1646 */
break;
case 55:
-/* Line 1792 of yacc.c */
-#line 274 "ASN1.y"
+#line 274 "ASN1.y" /* yacc.c:1646 */
{(yyval.node)=_asn1_add_static_node(ASN1_ETYPE_PRINTABLE_STRING);}
+#line 1872 "ASN1.c" /* yacc.c:1646 */
break;
case 56:
-/* Line 1792 of yacc.c */
-#line 275 "ASN1.y"
+#line 275 "ASN1.y" /* yacc.c:1646 */
{(yyval.node)=_asn1_add_static_node(ASN1_ETYPE_PRINTABLE_STRING|CONST_SIZE);
- _asn1_set_down((yyval.node),(yyvsp[(2) - (2)].node));}
+ _asn1_set_down((yyval.node),(yyvsp[0].node));}
+#line 1879 "ASN1.c" /* yacc.c:1646 */
break;
case 57:
-/* Line 1792 of yacc.c */
-#line 279 "ASN1.y"
+#line 279 "ASN1.y" /* yacc.c:1646 */
{(yyval.node)=_asn1_add_static_node(ASN1_ETYPE_UNIVERSAL_STRING);}
+#line 1885 "ASN1.c" /* yacc.c:1646 */
break;
case 58:
-/* Line 1792 of yacc.c */
-#line 280 "ASN1.y"
+#line 280 "ASN1.y" /* yacc.c:1646 */
{(yyval.node)=_asn1_add_static_node(ASN1_ETYPE_UNIVERSAL_STRING|CONST_SIZE);
- _asn1_set_down((yyval.node),(yyvsp[(2) - (2)].node));}
+ _asn1_set_down((yyval.node),(yyvsp[0].node));}
+#line 1892 "ASN1.c" /* yacc.c:1646 */
break;
case 59:
-/* Line 1792 of yacc.c */
-#line 284 "ASN1.y"
+#line 284 "ASN1.y" /* yacc.c:1646 */
{(yyval.node)=_asn1_add_static_node(ASN1_ETYPE_BMP_STRING);}
+#line 1898 "ASN1.c" /* yacc.c:1646 */
break;
case 60:
-/* Line 1792 of yacc.c */
-#line 285 "ASN1.y"
+#line 285 "ASN1.y" /* yacc.c:1646 */
{(yyval.node)=_asn1_add_static_node(ASN1_ETYPE_BMP_STRING|CONST_SIZE);
- _asn1_set_down((yyval.node),(yyvsp[(2) - (2)].node));}
+ _asn1_set_down((yyval.node),(yyvsp[0].node));}
+#line 1905 "ASN1.c" /* yacc.c:1646 */
break;
case 61:
-/* Line 1792 of yacc.c */
-#line 289 "ASN1.y"
+#line 289 "ASN1.y" /* yacc.c:1646 */
{(yyval.node)=_asn1_add_static_node(ASN1_ETYPE_UTF8_STRING);}
+#line 1911 "ASN1.c" /* yacc.c:1646 */
break;
case 62:
-/* Line 1792 of yacc.c */
-#line 290 "ASN1.y"
+#line 290 "ASN1.y" /* yacc.c:1646 */
{(yyval.node)=_asn1_add_static_node(ASN1_ETYPE_UTF8_STRING|CONST_SIZE);
- _asn1_set_down((yyval.node),(yyvsp[(2) - (2)].node));}
+ _asn1_set_down((yyval.node),(yyvsp[0].node));}
+#line 1918 "ASN1.c" /* yacc.c:1646 */
break;
case 63:
-/* Line 1792 of yacc.c */
-#line 294 "ASN1.y"
+#line 294 "ASN1.y" /* yacc.c:1646 */
{(yyval.node)=_asn1_add_static_node(ASN1_ETYPE_VISIBLE_STRING);}
+#line 1924 "ASN1.c" /* yacc.c:1646 */
break;
case 64:
-/* Line 1792 of yacc.c */
-#line 295 "ASN1.y"
+#line 295 "ASN1.y" /* yacc.c:1646 */
{(yyval.node)=_asn1_add_static_node(ASN1_ETYPE_VISIBLE_STRING|CONST_SIZE);
- _asn1_set_down((yyval.node),(yyvsp[(2) - (2)].node));}
+ _asn1_set_down((yyval.node),(yyvsp[0].node));}
+#line 1931 "ASN1.c" /* yacc.c:1646 */
break;
case 65:
-/* Line 1792 of yacc.c */
-#line 299 "ASN1.y"
+#line 299 "ASN1.y" /* yacc.c:1646 */
{(yyval.node)=_asn1_add_static_node(ASN1_ETYPE_OCTET_STRING);}
+#line 1937 "ASN1.c" /* yacc.c:1646 */
break;
case 66:
-/* Line 1792 of yacc.c */
-#line 300 "ASN1.y"
+#line 300 "ASN1.y" /* yacc.c:1646 */
{(yyval.node)=_asn1_add_static_node(ASN1_ETYPE_OCTET_STRING|CONST_SIZE);
- _asn1_set_down((yyval.node),(yyvsp[(3) - (3)].node));}
+ _asn1_set_down((yyval.node),(yyvsp[0].node));}
+#line 1944 "ASN1.c" /* yacc.c:1646 */
break;
case 67:
-/* Line 1792 of yacc.c */
-#line 304 "ASN1.y"
+#line 304 "ASN1.y" /* yacc.c:1646 */
{(yyval.node)=_asn1_add_static_node(ASN1_ETYPE_CONSTANT);
- _asn1_set_name((yyval.node),(yyvsp[(1) - (4)].str));
- _asn1_set_value((yyval.node),(yyvsp[(3) - (4)].str),strlen((yyvsp[(3) - (4)].str))+1);}
+ _asn1_set_name((yyval.node),(yyvsp[-3].str));
+ _asn1_set_value((yyval.node),(yyvsp[-1].str),strlen((yyvsp[-1].str))+1);}
+#line 1952 "ASN1.c" /* yacc.c:1646 */
break;
case 68:
-/* Line 1792 of yacc.c */
-#line 309 "ASN1.y"
- {(yyval.node)=(yyvsp[(1) - (1)].node);}
+#line 309 "ASN1.y" /* yacc.c:1646 */
+ {(yyval.node)=(yyvsp[0].node);}
+#line 1958 "ASN1.c" /* yacc.c:1646 */
break;
case 69:
-/* Line 1792 of yacc.c */
-#line 310 "ASN1.y"
- {(yyval.node)=(yyvsp[(1) - (3)].node);
- _asn1_set_right(_asn1_get_last_right((yyvsp[(1) - (3)].node)),(yyvsp[(3) - (3)].node));}
+#line 310 "ASN1.y" /* yacc.c:1646 */
+ {(yyval.node)=(yyvsp[-2].node);
+ _asn1_set_right(_asn1_get_last_right((yyvsp[-2].node)),(yyvsp[0].node));}
+#line 1965 "ASN1.c" /* yacc.c:1646 */
break;
case 70:
-/* Line 1792 of yacc.c */
-#line 314 "ASN1.y"
+#line 314 "ASN1.y" /* yacc.c:1646 */
{(yyval.node)=_asn1_add_static_node(ASN1_ETYPE_BIT_STRING);}
+#line 1971 "ASN1.c" /* yacc.c:1646 */
break;
case 71:
-/* Line 1792 of yacc.c */
-#line 315 "ASN1.y"
+#line 315 "ASN1.y" /* yacc.c:1646 */
{(yyval.node)=_asn1_add_static_node(ASN1_ETYPE_BIT_STRING|CONST_SIZE);}
+#line 1977 "ASN1.c" /* yacc.c:1646 */
break;
case 72:
-/* Line 1792 of yacc.c */
-#line 317 "ASN1.y"
+#line 317 "ASN1.y" /* yacc.c:1646 */
{(yyval.node)=_asn1_add_static_node(ASN1_ETYPE_BIT_STRING|CONST_LIST);
- _asn1_set_down((yyval.node),(yyvsp[(4) - (5)].node));}
+ _asn1_set_down((yyval.node),(yyvsp[-1].node));}
+#line 1984 "ASN1.c" /* yacc.c:1646 */
break;
case 73:
-/* Line 1792 of yacc.c */
-#line 322 "ASN1.y"
+#line 322 "ASN1.y" /* yacc.c:1646 */
{(yyval.node)=_asn1_add_static_node(ASN1_ETYPE_ENUMERATED|CONST_LIST);
- _asn1_set_down((yyval.node),(yyvsp[(3) - (4)].node));}
+ _asn1_set_down((yyval.node),(yyvsp[-1].node));}
+#line 1991 "ASN1.c" /* yacc.c:1646 */
break;
case 74:
-/* Line 1792 of yacc.c */
-#line 327 "ASN1.y"
+#line 327 "ASN1.y" /* yacc.c:1646 */
{(yyval.node)=_asn1_add_static_node(ASN1_ETYPE_OBJECT_ID);}
+#line 1997 "ASN1.c" /* yacc.c:1646 */
break;
case 75:
-/* Line 1792 of yacc.c */
-#line 330 "ASN1.y"
+#line 330 "ASN1.y" /* yacc.c:1646 */
{(yyval.node)=_asn1_add_static_node(ASN1_ETYPE_IDENTIFIER);
- _asn1_set_value((yyval.node),(yyvsp[(1) - (1)].str),strlen((yyvsp[(1) - (1)].str))+1);}
+ _asn1_set_value((yyval.node),(yyvsp[0].str),strlen((yyvsp[0].str))+1);}
+#line 2004 "ASN1.c" /* yacc.c:1646 */
break;
case 76:
-/* Line 1792 of yacc.c */
-#line 332 "ASN1.y"
+#line 332 "ASN1.y" /* yacc.c:1646 */
{(yyval.node)=_asn1_add_static_node(ASN1_ETYPE_IDENTIFIER|CONST_SIZE);
- _asn1_set_value((yyval.node),(yyvsp[(1) - (2)].str),strlen((yyvsp[(1) - (2)].str))+1);
- _asn1_set_down((yyval.node),(yyvsp[(2) - (2)].node));}
+ _asn1_set_value((yyval.node),(yyvsp[-1].str),strlen((yyvsp[-1].str))+1);
+ _asn1_set_down((yyval.node),(yyvsp[0].node));}
+#line 2012 "ASN1.c" /* yacc.c:1646 */
break;
case 77:
-/* Line 1792 of yacc.c */
-#line 335 "ASN1.y"
- {(yyval.node)=(yyvsp[(1) - (1)].node);}
+#line 335 "ASN1.y" /* yacc.c:1646 */
+ {(yyval.node)=(yyvsp[0].node);}
+#line 2018 "ASN1.c" /* yacc.c:1646 */
break;
case 78:
-/* Line 1792 of yacc.c */
-#line 336 "ASN1.y"
- {(yyval.node)=(yyvsp[(1) - (1)].node);}
+#line 336 "ASN1.y" /* yacc.c:1646 */
+ {(yyval.node)=(yyvsp[0].node);}
+#line 2024 "ASN1.c" /* yacc.c:1646 */
break;
case 79:
-/* Line 1792 of yacc.c */
-#line 337 "ASN1.y"
- {(yyval.node)=(yyvsp[(1) - (1)].node);}
+#line 337 "ASN1.y" /* yacc.c:1646 */
+ {(yyval.node)=(yyvsp[0].node);}
+#line 2030 "ASN1.c" /* yacc.c:1646 */
break;
case 81:
-/* Line 1792 of yacc.c */
-#line 339 "ASN1.y"
- {(yyval.node)=(yyvsp[(1) - (1)].node);}
+#line 339 "ASN1.y" /* yacc.c:1646 */
+ {(yyval.node)=(yyvsp[0].node);}
+#line 2036 "ASN1.c" /* yacc.c:1646 */
break;
case 82:
-/* Line 1792 of yacc.c */
-#line 340 "ASN1.y"
- {(yyval.node)=(yyvsp[(1) - (1)].node);}
+#line 340 "ASN1.y" /* yacc.c:1646 */
+ {(yyval.node)=(yyvsp[0].node);}
+#line 2042 "ASN1.c" /* yacc.c:1646 */
break;
case 83:
-/* Line 1792 of yacc.c */
-#line 341 "ASN1.y"
- {(yyval.node)=(yyvsp[(1) - (1)].node);}
+#line 341 "ASN1.y" /* yacc.c:1646 */
+ {(yyval.node)=(yyvsp[0].node);}
+#line 2048 "ASN1.c" /* yacc.c:1646 */
break;
case 84:
-/* Line 1792 of yacc.c */
-#line 342 "ASN1.y"
- {(yyval.node)=(yyvsp[(1) - (1)].node);}
+#line 342 "ASN1.y" /* yacc.c:1646 */
+ {(yyval.node)=(yyvsp[0].node);}
+#line 2054 "ASN1.c" /* yacc.c:1646 */
break;
case 85:
-/* Line 1792 of yacc.c */
-#line 343 "ASN1.y"
- {(yyval.node)=(yyvsp[(1) - (1)].node);}
+#line 343 "ASN1.y" /* yacc.c:1646 */
+ {(yyval.node)=(yyvsp[0].node);}
+#line 2060 "ASN1.c" /* yacc.c:1646 */
break;
case 86:
-/* Line 1792 of yacc.c */
-#line 344 "ASN1.y"
- {(yyval.node)=(yyvsp[(1) - (1)].node);}
+#line 344 "ASN1.y" /* yacc.c:1646 */
+ {(yyval.node)=(yyvsp[0].node);}
+#line 2066 "ASN1.c" /* yacc.c:1646 */
break;
case 87:
-/* Line 1792 of yacc.c */
-#line 345 "ASN1.y"
- {(yyval.node)=(yyvsp[(1) - (1)].node);}
+#line 345 "ASN1.y" /* yacc.c:1646 */
+ {(yyval.node)=(yyvsp[0].node);}
+#line 2072 "ASN1.c" /* yacc.c:1646 */
break;
case 88:
-/* Line 1792 of yacc.c */
-#line 346 "ASN1.y"
- {(yyval.node)=(yyvsp[(1) - (1)].node);}
+#line 346 "ASN1.y" /* yacc.c:1646 */
+ {(yyval.node)=(yyvsp[0].node);}
+#line 2078 "ASN1.c" /* yacc.c:1646 */
break;
case 89:
-/* Line 1792 of yacc.c */
-#line 347 "ASN1.y"
- {(yyval.node)=(yyvsp[(1) - (1)].node);}
+#line 347 "ASN1.y" /* yacc.c:1646 */
+ {(yyval.node)=(yyvsp[0].node);}
+#line 2084 "ASN1.c" /* yacc.c:1646 */
break;
case 90:
-/* Line 1792 of yacc.c */
-#line 348 "ASN1.y"
- {(yyval.node)=(yyvsp[(1) - (1)].node);}
+#line 348 "ASN1.y" /* yacc.c:1646 */
+ {(yyval.node)=(yyvsp[0].node);}
+#line 2090 "ASN1.c" /* yacc.c:1646 */
break;
case 91:
-/* Line 1792 of yacc.c */
-#line 349 "ASN1.y"
- {(yyval.node)=(yyvsp[(1) - (1)].node);}
+#line 349 "ASN1.y" /* yacc.c:1646 */
+ {(yyval.node)=(yyvsp[0].node);}
+#line 2096 "ASN1.c" /* yacc.c:1646 */
break;
case 92:
-/* Line 1792 of yacc.c */
-#line 350 "ASN1.y"
- {(yyval.node)=(yyvsp[(1) - (1)].node);}
+#line 350 "ASN1.y" /* yacc.c:1646 */
+ {(yyval.node)=(yyvsp[0].node);}
+#line 2102 "ASN1.c" /* yacc.c:1646 */
break;
case 93:
-/* Line 1792 of yacc.c */
-#line 351 "ASN1.y"
- {(yyval.node)=(yyvsp[(1) - (1)].node);}
+#line 351 "ASN1.y" /* yacc.c:1646 */
+ {(yyval.node)=(yyvsp[0].node);}
+#line 2108 "ASN1.c" /* yacc.c:1646 */
break;
case 94:
-/* Line 1792 of yacc.c */
-#line 352 "ASN1.y"
- {(yyval.node)=(yyvsp[(1) - (1)].node);}
+#line 352 "ASN1.y" /* yacc.c:1646 */
+ {(yyval.node)=(yyvsp[0].node);}
+#line 2114 "ASN1.c" /* yacc.c:1646 */
break;
case 95:
-/* Line 1792 of yacc.c */
-#line 353 "ASN1.y"
- {(yyval.node)=(yyvsp[(1) - (1)].node);}
+#line 353 "ASN1.y" /* yacc.c:1646 */
+ {(yyval.node)=(yyvsp[0].node);}
+#line 2120 "ASN1.c" /* yacc.c:1646 */
break;
case 96:
-/* Line 1792 of yacc.c */
-#line 354 "ASN1.y"
- {(yyval.node)=(yyvsp[(1) - (1)].node);}
+#line 354 "ASN1.y" /* yacc.c:1646 */
+ {(yyval.node)=(yyvsp[0].node);}
+#line 2126 "ASN1.c" /* yacc.c:1646 */
break;
case 97:
-/* Line 1792 of yacc.c */
-#line 355 "ASN1.y"
+#line 355 "ASN1.y" /* yacc.c:1646 */
{(yyval.node)=_asn1_add_static_node(ASN1_ETYPE_NULL);}
+#line 2132 "ASN1.c" /* yacc.c:1646 */
break;
case 98:
-/* Line 1792 of yacc.c */
-#line 358 "ASN1.y"
- {(yyval.node)=(yyvsp[(1) - (1)].node);}
+#line 358 "ASN1.y" /* yacc.c:1646 */
+ {(yyval.node)=(yyvsp[0].node);}
+#line 2138 "ASN1.c" /* yacc.c:1646 */
break;
case 99:
-/* Line 1792 of yacc.c */
-#line 359 "ASN1.y"
- {(yyval.node)=_asn1_mod_type((yyvsp[(2) - (2)].node),CONST_TAG);
- _asn1_set_right((yyvsp[(1) - (2)].node),_asn1_get_down((yyval.node)));
- _asn1_set_down((yyval.node),(yyvsp[(1) - (2)].node));}
+#line 359 "ASN1.y" /* yacc.c:1646 */
+ {(yyval.node)=_asn1_mod_type((yyvsp[0].node),CONST_TAG);
+ _asn1_set_right((yyvsp[-1].node),_asn1_get_down((yyval.node)));
+ _asn1_set_down((yyval.node),(yyvsp[-1].node));}
+#line 2146 "ASN1.c" /* yacc.c:1646 */
break;
case 100:
-/* Line 1792 of yacc.c */
-#line 364 "ASN1.y"
- {(yyval.node)=(yyvsp[(1) - (1)].node);}
+#line 364 "ASN1.y" /* yacc.c:1646 */
+ {(yyval.node)=(yyvsp[0].node);}
+#line 2152 "ASN1.c" /* yacc.c:1646 */
break;
case 101:
-/* Line 1792 of yacc.c */
-#line 365 "ASN1.y"
- {(yyval.node)=_asn1_mod_type((yyvsp[(1) - (2)].node),CONST_DEFAULT);
- _asn1_set_right((yyvsp[(2) - (2)].node),_asn1_get_down((yyval.node)));
- _asn1_set_down((yyval.node),(yyvsp[(2) - (2)].node));}
+#line 365 "ASN1.y" /* yacc.c:1646 */
+ {(yyval.node)=_asn1_mod_type((yyvsp[-1].node),CONST_DEFAULT);
+ _asn1_set_right((yyvsp[0].node),_asn1_get_down((yyval.node)));
+ _asn1_set_down((yyval.node),(yyvsp[0].node));}
+#line 2160 "ASN1.c" /* yacc.c:1646 */
break;
case 102:
-/* Line 1792 of yacc.c */
-#line 368 "ASN1.y"
- {(yyval.node)=_asn1_mod_type((yyvsp[(1) - (2)].node),CONST_OPTION);}
+#line 368 "ASN1.y" /* yacc.c:1646 */
+ {(yyval.node)=_asn1_mod_type((yyvsp[-1].node),CONST_OPTION);}
+#line 2166 "ASN1.c" /* yacc.c:1646 */
break;
case 103:
-/* Line 1792 of yacc.c */
-#line 371 "ASN1.y"
- {(yyval.node)=_asn1_set_name((yyvsp[(2) - (2)].node),(yyvsp[(1) - (2)].str));}
+#line 371 "ASN1.y" /* yacc.c:1646 */
+ {(yyval.node)=_asn1_set_name((yyvsp[0].node),(yyvsp[-1].str));}
+#line 2172 "ASN1.c" /* yacc.c:1646 */
break;
case 104:
-/* Line 1792 of yacc.c */
-#line 374 "ASN1.y"
- {(yyval.node)=(yyvsp[(1) - (1)].node);}
+#line 374 "ASN1.y" /* yacc.c:1646 */
+ {(yyval.node)=(yyvsp[0].node);}
+#line 2178 "ASN1.c" /* yacc.c:1646 */
break;
case 105:
-/* Line 1792 of yacc.c */
-#line 375 "ASN1.y"
- {(yyval.node)=(yyvsp[(1) - (3)].node);
- _asn1_set_right(_asn1_get_last_right((yyvsp[(1) - (3)].node)),(yyvsp[(3) - (3)].node));}
+#line 375 "ASN1.y" /* yacc.c:1646 */
+ {(yyval.node)=(yyvsp[-2].node);
+ _asn1_set_right(_asn1_get_last_right((yyvsp[-2].node)),(yyvsp[0].node));}
+#line 2185 "ASN1.c" /* yacc.c:1646 */
break;
case 106:
-/* Line 1792 of yacc.c */
-#line 379 "ASN1.y"
+#line 379 "ASN1.y" /* yacc.c:1646 */
{(yyval.node)=_asn1_add_static_node(ASN1_ETYPE_SEQUENCE);
- _asn1_set_down((yyval.node),(yyvsp[(3) - (4)].node));}
+ _asn1_set_down((yyval.node),(yyvsp[-1].node));}
+#line 2192 "ASN1.c" /* yacc.c:1646 */
break;
case 107:
-/* Line 1792 of yacc.c */
-#line 381 "ASN1.y"
+#line 381 "ASN1.y" /* yacc.c:1646 */
{(yyval.node)=_asn1_add_static_node(ASN1_ETYPE_SEQUENCE_OF);
- _asn1_set_down((yyval.node),(yyvsp[(3) - (3)].node));}
+ _asn1_set_down((yyval.node),(yyvsp[0].node));}
+#line 2199 "ASN1.c" /* yacc.c:1646 */
break;
case 108:
-/* Line 1792 of yacc.c */
-#line 383 "ASN1.y"
+#line 383 "ASN1.y" /* yacc.c:1646 */
{(yyval.node)=_asn1_add_static_node(ASN1_ETYPE_SEQUENCE_OF|CONST_SIZE);
- _asn1_set_right((yyvsp[(2) - (4)].node),(yyvsp[(4) - (4)].node));
- _asn1_set_down((yyval.node),(yyvsp[(2) - (4)].node));}
+ _asn1_set_right((yyvsp[-2].node),(yyvsp[0].node));
+ _asn1_set_down((yyval.node),(yyvsp[-2].node));}
+#line 2207 "ASN1.c" /* yacc.c:1646 */
break;
case 109:
-/* Line 1792 of yacc.c */
-#line 388 "ASN1.y"
+#line 388 "ASN1.y" /* yacc.c:1646 */
{(yyval.node)=_asn1_add_static_node(ASN1_ETYPE_SET);
- _asn1_set_down((yyval.node),(yyvsp[(3) - (4)].node));}
+ _asn1_set_down((yyval.node),(yyvsp[-1].node));}
+#line 2214 "ASN1.c" /* yacc.c:1646 */
break;
case 110:
-/* Line 1792 of yacc.c */
-#line 390 "ASN1.y"
+#line 390 "ASN1.y" /* yacc.c:1646 */
{(yyval.node)=_asn1_add_static_node(ASN1_ETYPE_SET_OF);
- _asn1_set_down((yyval.node),(yyvsp[(3) - (3)].node));}
+ _asn1_set_down((yyval.node),(yyvsp[0].node));}
+#line 2221 "ASN1.c" /* yacc.c:1646 */
break;
case 111:
-/* Line 1792 of yacc.c */
-#line 392 "ASN1.y"
+#line 392 "ASN1.y" /* yacc.c:1646 */
{(yyval.node)=_asn1_add_static_node(ASN1_ETYPE_SET_OF|CONST_SIZE);
- _asn1_set_right((yyvsp[(2) - (4)].node),(yyvsp[(4) - (4)].node));
- _asn1_set_down((yyval.node),(yyvsp[(2) - (4)].node));}
+ _asn1_set_right((yyvsp[-2].node),(yyvsp[0].node));
+ _asn1_set_down((yyval.node),(yyvsp[-2].node));}
+#line 2229 "ASN1.c" /* yacc.c:1646 */
break;
case 112:
-/* Line 1792 of yacc.c */
-#line 397 "ASN1.y"
+#line 397 "ASN1.y" /* yacc.c:1646 */
{(yyval.node)=_asn1_add_static_node(ASN1_ETYPE_CHOICE);
- _asn1_set_down((yyval.node),(yyvsp[(3) - (4)].node));}
+ _asn1_set_down((yyval.node),(yyvsp[-1].node));}
+#line 2236 "ASN1.c" /* yacc.c:1646 */
break;
case 113:
-/* Line 1792 of yacc.c */
-#line 401 "ASN1.y"
+#line 401 "ASN1.y" /* yacc.c:1646 */
{(yyval.node)=_asn1_add_static_node(ASN1_ETYPE_ANY);}
+#line 2242 "ASN1.c" /* yacc.c:1646 */
break;
case 114:
-/* Line 1792 of yacc.c */
-#line 402 "ASN1.y"
+#line 402 "ASN1.y" /* yacc.c:1646 */
{(yyval.node)=_asn1_add_static_node(ASN1_ETYPE_ANY|CONST_DEFINED_BY);
_asn1_set_down((yyval.node),_asn1_add_static_node(ASN1_ETYPE_CONSTANT));
- _asn1_set_name(_asn1_get_down((yyval.node)),(yyvsp[(4) - (4)].str));}
+ _asn1_set_name(_asn1_get_down((yyval.node)),(yyvsp[0].str));}
+#line 2250 "ASN1.c" /* yacc.c:1646 */
break;
case 115:
-/* Line 1792 of yacc.c */
-#line 407 "ASN1.y"
- {(yyval.node)=_asn1_set_name((yyvsp[(3) - (3)].node),(yyvsp[(1) - (3)].str));}
+#line 407 "ASN1.y" /* yacc.c:1646 */
+ {(yyval.node)=_asn1_set_name((yyvsp[0].node),(yyvsp[-2].str));}
+#line 2256 "ASN1.c" /* yacc.c:1646 */
break;
case 116:
-/* Line 1792 of yacc.c */
-#line 409 "ASN1.y"
- {(yyval.node)=_asn1_set_name((yyvsp[(3) - (3)].node), last_error_token);}
+#line 409 "ASN1.y" /* yacc.c:1646 */
+ {(yyval.node)=_asn1_set_name((yyvsp[0].node), last_error_token);}
+#line 2262 "ASN1.c" /* yacc.c:1646 */
break;
case 117:
-/* Line 1792 of yacc.c */
-#line 413 "ASN1.y"
+#line 413 "ASN1.y" /* yacc.c:1646 */
{(yyval.node)=_asn1_add_static_node(ASN1_ETYPE_OBJECT_ID|CONST_ASSIGN);
- _asn1_set_name((yyval.node),(yyvsp[(1) - (7)].str));
- _asn1_set_down((yyval.node),(yyvsp[(6) - (7)].node));}
+ _asn1_set_name((yyval.node),(yyvsp[-6].str));
+ _asn1_set_down((yyval.node),(yyvsp[-1].node));}
+#line 2270 "ASN1.c" /* yacc.c:1646 */
break;
case 118:
-/* Line 1792 of yacc.c */
-#line 417 "ASN1.y"
+#line 417 "ASN1.y" /* yacc.c:1646 */
{(yyval.node)=_asn1_add_static_node(ASN1_ETYPE_OBJECT_ID|CONST_ASSIGN|CONST_1_PARAM);
- _asn1_set_name((yyval.node),(yyvsp[(1) - (6)].str));
- _asn1_set_value((yyval.node),(yyvsp[(2) - (6)].str),strlen((yyvsp[(2) - (6)].str))+1);
- _asn1_set_down((yyval.node),(yyvsp[(5) - (6)].node));}
+ _asn1_set_name((yyval.node),(yyvsp[-5].str));
+ _asn1_set_value((yyval.node),(yyvsp[-4].str),strlen((yyvsp[-4].str))+1);
+ _asn1_set_down((yyval.node),(yyvsp[-1].node));}
+#line 2279 "ASN1.c" /* yacc.c:1646 */
break;
case 119:
-/* Line 1792 of yacc.c */
-#line 422 "ASN1.y"
+#line 422 "ASN1.y" /* yacc.c:1646 */
{(yyval.node)=_asn1_add_static_node(ASN1_ETYPE_INTEGER|CONST_ASSIGN);
- _asn1_set_name((yyval.node),(yyvsp[(1) - (4)].str));
- _asn1_set_value((yyval.node),(yyvsp[(4) - (4)].str),strlen((yyvsp[(4) - (4)].str))+1);}
+ _asn1_set_name((yyval.node),(yyvsp[-3].str));
+ _asn1_set_value((yyval.node),(yyvsp[0].str),strlen((yyvsp[0].str))+1);}
+#line 2287 "ASN1.c" /* yacc.c:1646 */
break;
case 120:
-/* Line 1792 of yacc.c */
-#line 427 "ASN1.y"
- {(yyval.node)=(yyvsp[(1) - (1)].node);}
+#line 427 "ASN1.y" /* yacc.c:1646 */
+ {(yyval.node)=(yyvsp[0].node);}
+#line 2293 "ASN1.c" /* yacc.c:1646 */
break;
case 121:
-/* Line 1792 of yacc.c */
-#line 428 "ASN1.y"
- {(yyval.node)=(yyvsp[(1) - (1)].node);}
+#line 428 "ASN1.y" /* yacc.c:1646 */
+ {(yyval.node)=(yyvsp[0].node);}
+#line 2299 "ASN1.c" /* yacc.c:1646 */
break;
case 122:
-/* Line 1792 of yacc.c */
-#line 431 "ASN1.y"
- {(yyval.node)=(yyvsp[(1) - (1)].node);}
+#line 431 "ASN1.y" /* yacc.c:1646 */
+ {(yyval.node)=(yyvsp[0].node);}
+#line 2305 "ASN1.c" /* yacc.c:1646 */
break;
case 123:
-/* Line 1792 of yacc.c */
-#line 432 "ASN1.y"
- {(yyval.node)=(yyvsp[(1) - (2)].node);
- _asn1_set_right(_asn1_get_last_right((yyvsp[(1) - (2)].node)),(yyvsp[(2) - (2)].node));}
+#line 432 "ASN1.y" /* yacc.c:1646 */
+ {(yyval.node)=(yyvsp[-1].node);
+ _asn1_set_right(_asn1_get_last_right((yyvsp[-1].node)),(yyvsp[0].node));}
+#line 2312 "ASN1.c" /* yacc.c:1646 */
break;
case 124:
-/* Line 1792 of yacc.c */
-#line 436 "ASN1.y"
+#line 436 "ASN1.y" /* yacc.c:1646 */
{(yyval.node)=_asn1_add_static_node(ASN1_ETYPE_OBJECT_ID);
- _asn1_set_down((yyval.node),(yyvsp[(3) - (4)].node));
- _asn1_set_name((yyval.node),(yyvsp[(1) - (4)].str));}
+ _asn1_set_down((yyval.node),(yyvsp[-1].node));
+ _asn1_set_name((yyval.node),(yyvsp[-3].str));}
+#line 2320 "ASN1.c" /* yacc.c:1646 */
break;
case 125:
-/* Line 1792 of yacc.c */
-#line 439 "ASN1.y"
+#line 439 "ASN1.y" /* yacc.c:1646 */
{(yyval.node)=_asn1_add_static_node(ASN1_ETYPE_OBJECT_ID);
- _asn1_set_name((yyval.node),(yyvsp[(1) - (3)].str));}
+ _asn1_set_name((yyval.node),(yyvsp[-2].str));}
+#line 2327 "ASN1.c" /* yacc.c:1646 */
break;
case 126:
-/* Line 1792 of yacc.c */
-#line 441 "ASN1.y"
+#line 441 "ASN1.y" /* yacc.c:1646 */
{(yyval.node)=_asn1_add_static_node(ASN1_ETYPE_OBJECT_ID);
- _asn1_set_name((yyval.node),(yyvsp[(1) - (1)].str));}
+ _asn1_set_name((yyval.node),(yyvsp[0].str));}
+#line 2334 "ASN1.c" /* yacc.c:1646 */
break;
case 127:
-/* Line 1792 of yacc.c */
-#line 465 "ASN1.y"
+#line 465 "ASN1.y" /* yacc.c:1646 */
{(yyval.constant)=CONST_EXPLICIT;}
+#line 2340 "ASN1.c" /* yacc.c:1646 */
break;
case 128:
-/* Line 1792 of yacc.c */
-#line 466 "ASN1.y"
+#line 466 "ASN1.y" /* yacc.c:1646 */
{(yyval.constant)=CONST_IMPLICIT;}
+#line 2346 "ASN1.c" /* yacc.c:1646 */
break;
-/* Line 1792 of yacc.c */
-#line 2531 "ASN1.c"
+#line 2350 "ASN1.c" /* yacc.c:1646 */
default: break;
}
/* User semantic actions sometimes alter yychar, and that requires
@@ -2549,7 +2368,7 @@ yyreduce:
*++yyvsp = yyval;
- /* Now `shift' the result of the reduction. Determine what state
+ /* Now 'shift' the result of the reduction. Determine what state
that goes to, based on the state we popped back to and the rule
number reduced by. */
@@ -2564,9 +2383,9 @@ yyreduce:
goto yynewstate;
-/*------------------------------------.
-| yyerrlab -- here on detecting error |
-`------------------------------------*/
+/*--------------------------------------.
+| yyerrlab -- here on detecting error. |
+`--------------------------------------*/
yyerrlab:
/* Make sure we have latest lookahead translation. See comments at
user semantic actions for why this is necessary. */
@@ -2617,20 +2436,20 @@ yyerrlab:
if (yyerrstatus == 3)
{
/* If just tried and failed to reuse lookahead token after an
- error, discard it. */
+ error, discard it. */
if (yychar <= YYEOF)
- {
- /* Return failure if at end of input. */
- if (yychar == YYEOF)
- YYABORT;
- }
+ {
+ /* Return failure if at end of input. */
+ if (yychar == YYEOF)
+ YYABORT;
+ }
else
- {
- yydestruct ("Error: discarding",
- yytoken, &yylval);
- yychar = YYEMPTY;
- }
+ {
+ yydestruct ("Error: discarding",
+ yytoken, &yylval);
+ yychar = YYEMPTY;
+ }
}
/* Else will try to reuse lookahead token after shifting the error
@@ -2649,7 +2468,7 @@ yyerrorlab:
if (/*CONSTCOND*/ 0)
goto yyerrorlab;
- /* Do not reclaim the symbols of the rule which action triggered
+ /* Do not reclaim the symbols of the rule whose action triggered
this YYERROR. */
YYPOPSTACK (yylen);
yylen = 0;
@@ -2662,29 +2481,29 @@ yyerrorlab:
| yyerrlab1 -- common code for both syntax error and YYERROR. |
`-------------------------------------------------------------*/
yyerrlab1:
- yyerrstatus = 3; /* Each real token shifted decrements this. */
+ yyerrstatus = 3; /* Each real token shifted decrements this. */
for (;;)
{
yyn = yypact[yystate];
if (!yypact_value_is_default (yyn))
- {
- yyn += YYTERROR;
- if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR)
- {
- yyn = yytable[yyn];
- if (0 < yyn)
- break;
- }
- }
+ {
+ yyn += YYTERROR;
+ if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR)
+ {
+ yyn = yytable[yyn];
+ if (0 < yyn)
+ break;
+ }
+ }
/* Pop the current state because it cannot handle the error token. */
if (yyssp == yyss)
- YYABORT;
+ YYABORT;
yydestruct ("Error: popping",
- yystos[yystate], yyvsp);
+ yystos[yystate], yyvsp);
YYPOPSTACK (1);
yystate = *yyssp;
YY_STACK_PRINT (yyss, yyssp);
@@ -2735,14 +2554,14 @@ yyreturn:
yydestruct ("Cleanup: discarding lookahead",
yytoken, &yylval);
}
- /* Do not reclaim the symbols of the rule which action triggered
+ /* Do not reclaim the symbols of the rule whose action triggered
this YYABORT or YYACCEPT. */
YYPOPSTACK (yylen);
YY_STACK_PRINT (yyss, yyssp);
while (yyssp != yyss)
{
yydestruct ("Cleanup: popping",
- yystos[*yyssp], yyvsp);
+ yystos[*yyssp], yyvsp);
YYPOPSTACK (1);
}
#ifndef yyoverflow
@@ -2753,13 +2572,9 @@ yyreturn:
if (yymsg != yymsgbuf)
YYSTACK_FREE (yymsg);
#endif
- /* Make sure YYID is used. */
- return YYID (yyresult);
+ return yyresult;
}
-
-
-/* Line 2055 of yacc.c */
-#line 470 "ASN1.y"
+#line 470 "ASN1.y" /* yacc.c:1906 */