1 /* A Bison parser, made by GNU Bison 2.7. */
3 /* Bison implementation for Yacc-like parsers in C
5 Copyright (C) 1984, 1989-1990, 2000-2012 Free Software Foundation, Inc.
7 This program is free software: you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation, either version 3 of the License, or
10 (at your option) any later version.
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program. If not, see <http://www.gnu.org/licenses/>. */
20 /* As a special exception, you may create a larger work that contains
21 part or all of the Bison parser skeleton and distribute that work
22 under terms of your choice, so long as that work isn't itself a
23 parser generator using the skeleton or a modified version thereof
24 as a parser skeleton. Alternatively, if you modify or redistribute
25 the parser skeleton itself, you may (at your option) remove this
26 special exception, which will cause the skeleton and the resulting
27 Bison output files to be licensed under the GNU General Public
28 License without this special exception.
30 This special exception was added by the Free Software Foundation in
31 version 2.2 of Bison. */
33 /* C LALR(1) parser skeleton written by Richard Stallman, by
34 simplifying the original so-called "semantic" parser. */
36 /* All symbols defined below should begin with yy or YY, to avoid
37 infringing on user name space. This should be done even for local
38 variables, as they might otherwise be expanded by user macros.
39 There are some unavoidable exceptions within include files to
40 define necessary library symbols; they are noted "INFRINGES ON
41 USER NAME SPACE" below. */
43 /* Identify Bison output. */
47 #define YYBISON_VERSION "2.7"
50 #define YYSKELETON_NAME "yacc.c"
62 /* Substitute the variable and function names. */
63 #define yyparse ExprIntrpparse
64 #define yylex ExprIntrplex
65 #define yyerror ExprIntrperror
66 #define yylval ExprIntrplval
67 #define yychar ExprIntrpchar
68 #define yydebug ExprIntrpdebug
69 #define yynerrs ExprIntrpnerrs
71 /* Copy the first part of user declarations. */
72 /* Line 371 of yacc.c */
73 #line 17 "D:/ABV/OCCT/occt7/src/ExprIntrp/ExprIntrp.yacc"
75 #include <ExprIntrp_yaccintrf.hxx>
77 extern void ExprIntrp_EndOfFuncDef();
78 extern void ExprIntrp_EndOfRelation();
79 extern void ExprIntrp_AssignVariable();
80 extern void ExprIntrp_EndOfAssign();
81 extern void ExprIntrp_Deassign();
82 extern void ExprIntrp_SumOperator();
83 extern void ExprIntrp_MinusOperator();
84 extern void ExprIntrp_ProductOperator();
85 extern void ExprIntrp_DivideOperator();
86 extern void ExprIntrp_ExpOperator();
87 extern void ExprIntrp_UnaryMinusOperator();
88 extern void ExprIntrp_UnaryPlusOperator();
89 extern void ExprIntrp_VariableIdentifier();
90 extern void ExprIntrp_NumValue();
91 extern void ExprIntrp_EndFunction();
92 extern void ExprIntrp_EndDerFunction();
93 extern void ExprIntrp_EndDifferential();
94 extern void ExprIntrp_EndDiffFunction();
95 extern void ExprIntrp_EndFuncArg();
96 extern void ExprIntrp_NextFuncArg();
97 extern void ExprIntrp_StartFunction();
98 extern void ExprIntrp_DefineFunction();
99 extern void ExprIntrp_StartDerivate();
100 extern void ExprIntrp_EndDerivate();
101 extern void ExprIntrp_DiffVar();
102 extern void ExprIntrp_DiffDegree();
103 extern void ExprIntrp_VerDiffDegree();
104 extern void ExprIntrp_DiffDegreeVar();
105 extern void ExprIntrp_StartDifferential();
106 extern void ExprIntrp_StartFunction();
107 extern void ExprIntrp_EndFuncArg();
108 extern void ExprIntrp_NextFuncArg();
109 extern void ExprIntrp_VariableIdentifier();
110 extern void ExprIntrp_Derivation();
111 extern void ExprIntrp_EndDerivation();
112 extern void ExprIntrp_DerivationValue();
113 extern void ExprIntrp_ConstantIdentifier();
114 extern void ExprIntrp_ConstantDefinition();
115 extern void ExprIntrp_VariableIdentifier();
116 extern void ExprIntrp_NumValue();
117 extern void ExprIntrp_Sumator();
118 extern void ExprIntrp_VariableIdentifier();
119 extern void ExprIntrp_Productor();
120 extern void ExprIntrp_EndOfEqual();
122 // disable MSVC warnings in bison code
124 #pragma warning(disable:4131 4244 4127 4702)
127 /* Line 371 of yacc.c */
128 #line 77 "D:/ABV/OCCT/occt7/src/ExprIntrp/ExprIntrp.yacc"
131 /* Line 371 of yacc.c */
132 #line 133 "ExprIntrp.tab.c"
135 # if defined __cplusplus && 201103L <= __cplusplus
136 # define YY_NULL nullptr
142 /* Enabling verbose error messages. */
143 #ifdef YYERROR_VERBOSE
144 # undef YYERROR_VERBOSE
145 # define YYERROR_VERBOSE 1
147 # define YYERROR_VERBOSE 0
150 /* In a future release of Bison, this section will be replaced
151 by #include "ExprIntrp.tab.h". */
152 #ifndef YY_EXPRINTRP_EXPRINTRP_TAB_H_INCLUDED
153 # define YY_EXPRINTRP_EXPRINTRP_TAB_H_INCLUDED
154 /* Enabling traces. */
159 extern int ExprIntrpdebug;
165 /* Put the tokens into the symbol table, so that GDB and other debuggers
175 ENDPARENTHESIS = 265,
194 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
196 # define YYSTYPE_IS_TRIVIAL 1
197 # define yystype YYSTYPE /* obsolescent; will be withdrawn */
198 # define YYSTYPE_IS_DECLARED 1
201 extern YYSTYPE ExprIntrplval;
204 #if defined __STDC__ || defined __cplusplus
205 int ExprIntrpparse (void *YYPARSE_PARAM);
207 int ExprIntrpparse ();
209 #else /* ! YYPARSE_PARAM */
210 #if defined __STDC__ || defined __cplusplus
211 int ExprIntrpparse (void);
213 int ExprIntrpparse ();
215 #endif /* ! YYPARSE_PARAM */
217 #endif /* !YY_EXPRINTRP_EXPRINTRP_TAB_H_INCLUDED */
219 /* Copy the second part of user declarations. */
221 /* Line 390 of yacc.c */
222 #line 223 "ExprIntrp.tab.c"
229 typedef YYTYPE_UINT8 yytype_uint8;
231 typedef unsigned char yytype_uint8;
235 typedef YYTYPE_INT8 yytype_int8;
236 #elif (defined __STDC__ || defined __C99__FUNC__ \
237 || defined __cplusplus || defined _MSC_VER)
238 typedef signed char yytype_int8;
240 typedef short int yytype_int8;
244 typedef YYTYPE_UINT16 yytype_uint16;
246 typedef unsigned short int yytype_uint16;
250 typedef YYTYPE_INT16 yytype_int16;
252 typedef short int yytype_int16;
256 # ifdef __SIZE_TYPE__
257 # define YYSIZE_T __SIZE_TYPE__
258 # elif defined size_t
259 # define YYSIZE_T size_t
260 # elif ! defined YYSIZE_T && (defined __STDC__ || defined __C99__FUNC__ \
261 || defined __cplusplus || defined _MSC_VER)
262 # include <stddef.h> /* INFRINGES ON USER NAME SPACE */
263 # define YYSIZE_T size_t
265 # define YYSIZE_T unsigned int
269 #define YYSIZE_MAXIMUM ((YYSIZE_T) -1)
272 # if defined YYENABLE_NLS && YYENABLE_NLS
274 # include <libintl.h> /* INFRINGES ON USER NAME SPACE */
275 # define YY_(Msgid) dgettext ("bison-runtime", Msgid)
279 # define YY_(Msgid) Msgid
283 /* Suppress unused-variable warnings by "using" E. */
284 #if ! defined lint || defined __GNUC__
285 # define YYUSE(E) ((void) (E))
287 # define YYUSE(E) /* empty */
290 /* Identity function, used to suppress warnings about constant conditions. */
294 #if (defined __STDC__ || defined __C99__FUNC__ \
295 || defined __cplusplus || defined _MSC_VER)
308 #if ! defined yyoverflow || YYERROR_VERBOSE
310 /* The parser invokes alloca or malloc; define the necessary symbols. */
312 # ifdef YYSTACK_USE_ALLOCA
313 # if YYSTACK_USE_ALLOCA
315 # define YYSTACK_ALLOC __builtin_alloca
316 # elif defined __BUILTIN_VA_ARG_INCR
317 # include <alloca.h> /* INFRINGES ON USER NAME SPACE */
319 # define YYSTACK_ALLOC __alloca
320 # elif defined _MSC_VER
321 # include <malloc.h> /* INFRINGES ON USER NAME SPACE */
322 # define alloca _alloca
324 # define YYSTACK_ALLOC alloca
325 # if ! defined _ALLOCA_H && ! defined EXIT_SUCCESS && (defined __STDC__ || defined __C99__FUNC__ \
326 || defined __cplusplus || defined _MSC_VER)
327 # include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
328 /* Use EXIT_SUCCESS as a witness for stdlib.h. */
329 # ifndef EXIT_SUCCESS
330 # define EXIT_SUCCESS 0
337 # ifdef YYSTACK_ALLOC
338 /* Pacify GCC's `empty if-body' warning. */
339 # define YYSTACK_FREE(Ptr) do { /* empty */; } while (YYID (0))
340 # ifndef YYSTACK_ALLOC_MAXIMUM
341 /* The OS might guarantee only one guard page at the bottom of the stack,
342 and a page size can be as small as 4096 bytes. So we cannot safely
343 invoke alloca (N) if N exceeds 4096. Use a slightly smaller number
344 to allow for a few compiler-allocated temporary stack slots. */
345 # define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2006 */
348 # define YYSTACK_ALLOC YYMALLOC
349 # define YYSTACK_FREE YYFREE
350 # ifndef YYSTACK_ALLOC_MAXIMUM
351 # define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM
353 # if (defined __cplusplus && ! defined EXIT_SUCCESS \
354 && ! ((defined YYMALLOC || defined malloc) \
355 && (defined YYFREE || defined free)))
356 # include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
357 # ifndef EXIT_SUCCESS
358 # define EXIT_SUCCESS 0
362 # define YYMALLOC malloc
363 # if ! defined malloc && ! defined EXIT_SUCCESS && (defined __STDC__ || defined __C99__FUNC__ \
364 || defined __cplusplus || defined _MSC_VER)
365 void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */
370 # if ! defined free && ! defined EXIT_SUCCESS && (defined __STDC__ || defined __C99__FUNC__ \
371 || defined __cplusplus || defined _MSC_VER)
372 void free (void *); /* INFRINGES ON USER NAME SPACE */
376 #endif /* ! defined yyoverflow || YYERROR_VERBOSE */
379 #if (! defined yyoverflow \
380 && (! defined __cplusplus \
381 || (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL)))
383 /* A type that is properly aligned for any stack member. */
386 yytype_int16 yyss_alloc;
390 /* The size of the maximum gap between one aligned stack and the next. */
391 # define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1)
393 /* The size of an array large to enough to hold all stacks, each with
395 # define YYSTACK_BYTES(N) \
396 ((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \
397 + YYSTACK_GAP_MAXIMUM)
399 # define YYCOPY_NEEDED 1
401 /* Relocate STACK from its old location to the new one. The
402 local variables YYSIZE and YYSTACKSIZE give the old and new number of
403 elements in the stack, and YYPTR gives the new location of the
404 stack. Advance YYPTR to a properly aligned location for the next
406 # define YYSTACK_RELOCATE(Stack_alloc, Stack) \
409 YYSIZE_T yynewbytes; \
410 YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \
411 Stack = &yyptr->Stack_alloc; \
412 yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
413 yyptr += yynewbytes / sizeof (*yyptr); \
419 #if defined YYCOPY_NEEDED && YYCOPY_NEEDED
420 /* Copy COUNT objects from SRC to DST. The source and destination do
423 # if defined __GNUC__ && 1 < __GNUC__
424 # define YYCOPY(Dst, Src, Count) \
425 __builtin_memcpy (Dst, Src, (Count) * sizeof (*(Src)))
427 # define YYCOPY(Dst, Src, Count) \
431 for (yyi = 0; yyi < (Count); yyi++) \
432 (Dst)[yyi] = (Src)[yyi]; \
437 #endif /* !YYCOPY_NEEDED */
439 /* YYFINAL -- State number of the termination state. */
441 /* YYLAST -- Last index in YYTABLE. */
444 /* YYNTOKENS -- Number of terminals. */
446 /* YYNNTS -- Number of nonterminals. */
448 /* YYNRULES -- Number of rules. */
450 /* YYNRULES -- Number of states. */
451 #define YYNSTATES 149
453 /* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */
455 #define YYMAXUTOK 279
457 #define YYTRANSLATE(YYX) \
458 ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
460 /* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX. */
461 static const yytype_uint8 yytranslate[] =
463 0, 2, 2, 2, 2, 2, 2, 2, 2, 2,
464 25, 2, 2, 2, 2, 2, 2, 2, 2, 2,
465 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
466 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
467 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
468 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
469 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
470 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
471 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
472 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
473 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
474 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
475 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
476 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
477 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
478 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
479 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
480 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
481 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
482 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
483 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
484 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
485 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
486 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
487 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
488 2, 2, 2, 2, 2, 2, 1, 2, 3, 4,
489 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
490 15, 16, 17, 18, 19, 20, 21, 22, 23, 24
494 /* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in
496 static const yytype_uint8 yyprhs[] =
498 0, 0, 3, 5, 7, 9, 11, 13, 14, 19,
499 20, 26, 30, 34, 38, 42, 46, 50, 54, 57,
500 60, 62, 64, 66, 68, 70, 72, 74, 76, 78,
501 83, 88, 89, 95, 97, 98, 103, 105, 106, 111,
502 112, 116, 122, 123, 124, 134, 136, 138, 139, 145,
503 147, 148, 153, 155, 156, 164, 165, 166, 177, 178,
504 179, 188, 189, 190, 205, 206, 207, 222, 224, 228,
508 /* YYRHS -- A `-1'-separated list of the rules' RHS. */
509 static const yytype_int8 yyrhs[] =
511 27, 0, -1, 32, -1, 28, -1, 30, -1, 40,
512 -1, 66, -1, -1, 13, 29, 18, 32, -1, -1,
513 19, 9, 13, 31, 11, -1, 32, 3, 32, -1,
514 32, 4, 32, -1, 32, 7, 32, -1, 32, 5,
515 32, -1, 32, 6, 32, -1, 8, 32, 10, -1,
516 9, 32, 11, -1, 4, 32, -1, 3, 32, -1,
517 33, -1, 53, -1, 57, -1, 60, -1, 63, -1,
518 34, -1, 35, -1, 13, -1, 12, -1, 39, 8,
519 37, 10, -1, 42, 8, 37, 10, -1, -1, 44,
520 36, 8, 37, 10, -1, 32, -1, -1, 32, 14,
521 38, 37, -1, 13, -1, -1, 48, 41, 18, 32,
522 -1, -1, 13, 43, 16, -1, 15, 47, 5, 15,
523 13, -1, -1, -1, 15, 12, 45, 47, 5, 15,
524 12, 46, 13, -1, 13, -1, 44, -1, -1, 13,
525 49, 9, 50, 11, -1, 52, -1, -1, 52, 14,
526 51, 50, -1, 13, -1, -1, 17, 9, 32, 14,
527 13, 54, 11, -1, -1, -1, 17, 9, 32, 14,
528 13, 55, 14, 12, 56, 11, -1, -1, -1, 22,
529 9, 13, 58, 14, 12, 59, 11, -1, -1, -1,
530 23, 9, 32, 14, 13, 61, 14, 32, 14, 32,
531 14, 12, 62, 11, -1, -1, -1, 24, 9, 32,
532 14, 13, 64, 14, 32, 14, 32, 14, 12, 65,
533 11, -1, 67, -1, 67, 21, 66, -1, 67, 25,
534 66, -1, 32, 20, 32, -1
537 /* YYRLINE[YYN] -- source line where rule number YYN was defined. */
538 static const yytype_uint8 yyrline[] =
540 0, 81, 81, 82, 83, 84, 85, 88, 88, 91,
541 91, 94, 95, 96, 97, 98, 99, 100, 101, 102,
542 103, 104, 105, 106, 107, 110, 111, 115, 116, 119,
543 120, 121, 121, 124, 125, 125, 128, 131, 131, 134,
544 134, 137, 138, 138, 138, 141, 142, 145, 145, 148,
545 149, 149, 152, 155, 155, 156, 156, 156, 159, 159,
546 159, 162, 162, 162, 165, 165, 165, 168, 169, 170,
551 #if YYDEBUG || YYERROR_VERBOSE || 0
552 /* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
553 First, the terminals, then, starting at YYNTOKENS, nonterminals. */
554 static const char *const yytname[] =
556 "$end", "error", "$undefined", "SUMOP", "MINUSOP", "DIVIDEOP", "EXPOP",
557 "MULTOP", "PARENTHESIS", "BRACKET", "ENDPARENTHESIS", "ENDBRACKET",
558 "VALUE", "IDENTIFIER", "COMMA", "DIFFERENTIAL", "DERIVATE", "DERIVKEY",
559 "ASSIGNOP", "DEASSIGNKEY", "EQUALOP", "RELSEPARATOR", "CONSTKEY",
560 "SUMKEY", "PRODKEY", "'\\n'", "$accept", "exprentry", "Assignment",
561 "$@1", "Deassignment", "$@2", "GenExpr", "SingleExpr", "Single",
562 "Function", "$@3", "ListGenExpr", "$@4", "funcident",
563 "FunctionDefinition", "$@5", "DerFunctionId", "$@6", "DiffFuncId", "$@7",
564 "$@8", "DiffId", "FunctionDef", "$@9", "ListArg", "$@10", "unarg",
565 "Derivation", "$@11", "$@12", "$@13", "ConstantDefinition", "$@14",
566 "$@15", "Sumator", "$@16", "$@17", "Productor", "$@18", "$@19",
567 "RelationList", "SingleRelation", YY_NULL
572 /* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to
574 static const yytype_uint16 yytoknum[] =
576 0, 256, 257, 258, 259, 260, 261, 262, 263, 264,
577 265, 266, 267, 268, 269, 270, 271, 272, 273, 274,
578 275, 276, 277, 278, 279, 10
582 /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */
583 static const yytype_uint8 yyr1[] =
585 0, 26, 27, 27, 27, 27, 27, 29, 28, 31,
586 30, 32, 32, 32, 32, 32, 32, 32, 32, 32,
587 32, 32, 32, 32, 32, 33, 33, 34, 34, 35,
588 35, 36, 35, 37, 38, 37, 39, 41, 40, 43,
589 42, 44, 45, 46, 44, 47, 47, 49, 48, 50,
590 51, 50, 52, 54, 53, 55, 56, 53, 58, 59,
591 57, 61, 62, 60, 64, 65, 63, 66, 66, 66,
595 /* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */
596 static const yytype_uint8 yyr2[] =
598 0, 2, 1, 1, 1, 1, 1, 0, 4, 0,
599 5, 3, 3, 3, 3, 3, 3, 3, 2, 2,
600 1, 1, 1, 1, 1, 1, 1, 1, 1, 4,
601 4, 0, 5, 1, 0, 4, 1, 0, 4, 0,
602 3, 5, 0, 0, 9, 1, 1, 0, 5, 1,
603 0, 4, 1, 0, 7, 0, 0, 10, 0, 0,
604 8, 0, 0, 14, 0, 0, 14, 1, 3, 3,
608 /* YYDEFACT[STATE-NAME] -- Default reduction number in state STATE-NUM.
609 Performed when YYTABLE doesn't specify something else to do. Zero
610 means the default is an error. */
611 static const yytype_uint8 yydefact[] =
613 0, 0, 0, 0, 0, 28, 27, 0, 0, 0,
614 0, 0, 0, 0, 3, 4, 2, 20, 25, 26,
615 0, 5, 0, 31, 37, 21, 22, 23, 24, 6,
616 67, 27, 19, 18, 0, 0, 0, 0, 0, 42,
617 45, 46, 0, 0, 0, 0, 0, 0, 1, 0,
618 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
619 0, 16, 17, 0, 40, 0, 0, 0, 0, 9,
620 58, 0, 0, 11, 12, 14, 15, 13, 70, 33,
621 0, 0, 0, 0, 0, 68, 69, 8, 52, 0,
622 49, 0, 0, 0, 0, 0, 0, 0, 34, 29,
623 30, 0, 38, 48, 50, 0, 41, 53, 10, 0,
624 61, 64, 0, 32, 0, 0, 0, 0, 59, 0,
625 0, 35, 51, 43, 54, 0, 0, 0, 0, 0,
626 56, 60, 0, 0, 44, 0, 0, 0, 57, 0,
627 0, 0, 0, 62, 65, 0, 0, 63, 66
630 /* YYDEFGOTO[NTERM-NUM]. */
631 static const yytype_int16 yydefgoto[] =
633 -1, 13, 14, 36, 15, 94, 79, 17, 18, 19,
634 57, 80, 112, 20, 21, 58, 22, 37, 23, 66,
635 129, 42, 24, 38, 89, 114, 90, 25, 116, 117,
636 135, 26, 95, 126, 27, 119, 145, 28, 120, 146,
640 /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
642 #define YYPACT_NINF -51
643 static const yytype_int16 yypact[] =
645 4, 62, 62, 62, 62, -51, 2, 87, 39, 58,
646 59, 60, 63, 9, -51, -51, 35, -51, -51, -51,
647 7, -51, 37, -51, -51, -51, -51, -51, -51, -51,
648 36, 6, 24, 24, 161, 152, 55, 64, 67, -51,
649 -51, -51, 73, 62, 68, 69, 62, 62, -51, 62,
650 62, 62, 62, 62, 62, 62, 62, 93, 79, 62,
651 62, -51, -51, 62, -51, 103, 43, 99, 30, -51,
652 -51, 84, 89, 24, 24, 111, -51, 111, 169, 101,
653 108, 109, 62, 62, 35, -51, -51, 169, -51, 115,
654 116, 124, 120, 121, 137, 117, 122, 138, -51, -51,
655 -51, 142, 169, -51, -51, 145, -51, 136, -51, 141,
656 -51, -51, 62, -51, 103, 149, 151, 155, -51, 156,
657 163, -51, -51, -51, -51, 166, 168, 62, 62, 167,
658 -51, -51, 106, 118, -51, 170, 62, 62, -51, 135,
659 140, 171, 172, -51, -51, 174, 175, -51, -51
662 /* YYPGOTO[NTERM-NUM]. */
663 static const yytype_int8 yypgoto[] =
665 -51, -51, -51, -51, -51, -51, 0, -51, -51, -51,
666 -51, -50, -51, -51, -51, -51, -51, -51, -2, -51,
667 -51, 123, -51, -51, 74, -51, -51, -51, -51, -51,
668 -51, -51, -51, -51, -51, -51, -51, -51, -51, -51,
672 /* YYTABLE[YYPACT[STATE-NUM]]. What to do in state STATE-NUM. If
673 positive, shift that token. If negative, reduce the rule which
674 number is the opposite. If YYTABLE_NINF, syntax error. */
675 #define YYTABLE_NINF -56
676 static const yytype_int16 yytable[] =
678 16, 32, 33, 34, 35, 41, 81, 1, 2, 48,
679 -36, -47, 3, 4, -36, 55, 5, 6, -39, 7,
680 -7, 8, -39, 9, 85, 86, 10, 11, 12, 51,
681 52, 53, 101, 49, 50, 51, 52, 53, 49, 50,
682 51, 52, 53, 68, 93, 56, 71, 72, 43, 73,
683 74, 75, 76, 77, 78, 54, 40, 59, 7, 84,
684 84, 60, 121, 87, 41, 1, 2, 44, 45, 46,
685 3, 4, 47, 63, 5, 31, 65, 7, 67, 8,
686 64, 69, 70, 102, 10, 11, 12, 49, 50, 51,
687 52, 53, 49, 50, 51, 52, 53, 83, 96, 39,
688 40, 82, 7, 97, 49, 50, 51, 52, 53, 49,
689 50, 51, 52, 53, 92, 98, 88, 52, 99, 100,
690 136, 49, 50, 51, 52, 53, 103, 132, 133, 105,
691 104, 109, 137, 106, 107, 110, 139, 140, 49, 50,
692 51, 52, 53, 49, 50, 51, 52, 53, 108, 141,
693 -55, 111, 113, 118, 142, 49, 50, 51, 52, 53,
694 115, 123, 124, 62, 49, 50, 51, 52, 53, 125,
695 127, 61, 49, 50, 51, 52, 53, 128, 130, 131,
696 134, 138, 0, 143, 144, 147, 148, 0, 122, 91
699 #define yypact_value_is_default(Yystate) \
700 (!!((Yystate) == (-51)))
702 #define yytable_value_is_error(Yytable_value) \
705 static const yytype_int16 yycheck[] =
707 0, 1, 2, 3, 4, 7, 56, 3, 4, 0,
708 8, 9, 8, 9, 8, 8, 12, 13, 16, 15,
709 18, 17, 16, 19, 59, 60, 22, 23, 24, 5,
710 6, 7, 82, 3, 4, 5, 6, 7, 3, 4,
711 5, 6, 7, 43, 14, 8, 46, 47, 9, 49,
712 50, 51, 52, 53, 54, 20, 13, 21, 15, 59,
713 60, 25, 112, 63, 66, 3, 4, 9, 9, 9,
714 8, 9, 9, 18, 12, 13, 9, 15, 5, 17,
715 16, 13, 13, 83, 22, 23, 24, 3, 4, 5,
716 6, 7, 3, 4, 5, 6, 7, 18, 14, 12,
717 13, 8, 15, 14, 3, 4, 5, 6, 7, 3,
718 4, 5, 6, 7, 15, 14, 13, 6, 10, 10,
719 14, 3, 4, 5, 6, 7, 11, 127, 128, 5,
720 14, 14, 14, 13, 13, 13, 136, 137, 3, 4,
721 5, 6, 7, 3, 4, 5, 6, 7, 11, 14,
722 14, 13, 10, 12, 14, 3, 4, 5, 6, 7,
723 15, 12, 11, 11, 3, 4, 5, 6, 7, 14,
724 14, 10, 3, 4, 5, 6, 7, 14, 12, 11,
725 13, 11, -1, 12, 12, 11, 11, -1, 114, 66
728 /* YYSTOS[STATE-NUM] -- The (internal number of the) accessing
729 symbol of state STATE-NUM. */
730 static const yytype_uint8 yystos[] =
732 0, 3, 4, 8, 9, 12, 13, 15, 17, 19,
733 22, 23, 24, 27, 28, 30, 32, 33, 34, 35,
734 39, 40, 42, 44, 48, 53, 57, 60, 63, 66,
735 67, 13, 32, 32, 32, 32, 29, 43, 49, 12,
736 13, 44, 47, 9, 9, 9, 9, 9, 0, 3,
737 4, 5, 6, 7, 20, 8, 8, 36, 41, 21,
738 25, 10, 11, 18, 16, 9, 45, 5, 32, 13,
739 13, 32, 32, 32, 32, 32, 32, 32, 32, 32,
740 37, 37, 8, 18, 32, 66, 66, 32, 13, 50,
741 52, 47, 15, 14, 31, 58, 14, 14, 14, 10,
742 10, 37, 32, 11, 14, 5, 13, 13, 11, 14,
743 13, 13, 38, 10, 51, 15, 54, 55, 12, 61,
744 64, 37, 50, 12, 11, 14, 59, 14, 14, 46,
745 12, 11, 32, 32, 13, 56, 14, 14, 11, 32,
746 32, 14, 14, 12, 12, 62, 65, 11, 11
749 #define yyerrok (yyerrstatus = 0)
750 #define yyclearin (yychar = YYEMPTY)
754 #define YYACCEPT goto yyacceptlab
755 #define YYABORT goto yyabortlab
756 #define YYERROR goto yyerrorlab
759 /* Like YYERROR except do call yyerror. This remains here temporarily
760 to ease the transition to the new meaning of YYERROR, for GCC.
761 Once GCC version 2 has supplanted version 1, this can go. However,
762 YYFAIL appears to be in use. Nevertheless, it is formally deprecated
763 in Bison 2.4.2's NEWS entry, where a plan to phase it out is
766 #define YYFAIL goto yyerrlab
768 /* This is here to suppress warnings from the GCC cpp's
769 -Wunused-macros. Normally we don't worry about that warning, but
770 some users do, and we want to make it easy for users to remove
771 YYFAIL uses, which will produce warnings from Bison 2.5. */
774 #define YYRECOVERING() (!!yyerrstatus)
776 #define YYBACKUP(Token, Value) \
778 if (yychar == YYEMPTY) \
782 YYPOPSTACK (yylen); \
788 yyerror (YY_("syntax error: cannot back up")); \
793 /* Error token number */
795 #define YYERRCODE 256
798 /* This macro is provided for backward compatibility. */
799 #ifndef YY_LOCATION_PRINT
800 # define YY_LOCATION_PRINT(File, Loc) ((void) 0)
804 /* YYLEX -- calling `yylex' with the right arguments. */
806 # define YYLEX yylex (YYLEX_PARAM)
808 # define YYLEX yylex ()
811 /* Enable debugging if requested. */
815 # include <stdio.h> /* INFRINGES ON USER NAME SPACE */
816 # define YYFPRINTF fprintf
819 # define YYDPRINTF(Args) \
825 # define YY_SYMBOL_PRINT(Title, Type, Value, Location) \
829 YYFPRINTF (stderr, "%s ", Title); \
830 yy_symbol_print (stderr, \
832 YYFPRINTF (stderr, "\n"); \
837 /*--------------------------------.
838 | Print this symbol on YYOUTPUT. |
839 `--------------------------------*/
842 #if (defined __STDC__ || defined __C99__FUNC__ \
843 || defined __cplusplus || defined _MSC_VER)
845 yy_symbol_value_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep)
848 yy_symbol_value_print (yyoutput, yytype, yyvaluep)
851 YYSTYPE const * const yyvaluep;
854 FILE *yyo = yyoutput;
859 if (yytype < YYNTOKENS)
860 YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep);
872 /*--------------------------------.
873 | Print this symbol on YYOUTPUT. |
874 `--------------------------------*/
876 #if (defined __STDC__ || defined __C99__FUNC__ \
877 || defined __cplusplus || defined _MSC_VER)
879 yy_symbol_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep)
882 yy_symbol_print (yyoutput, yytype, yyvaluep)
885 YYSTYPE const * const yyvaluep;
888 if (yytype < YYNTOKENS)
889 YYFPRINTF (yyoutput, "token %s (", yytname[yytype]);
891 YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]);
893 yy_symbol_value_print (yyoutput, yytype, yyvaluep);
894 YYFPRINTF (yyoutput, ")");
897 /*------------------------------------------------------------------.
898 | yy_stack_print -- Print the state stack from its BOTTOM up to its |
900 `------------------------------------------------------------------*/
902 #if (defined __STDC__ || defined __C99__FUNC__ \
903 || defined __cplusplus || defined _MSC_VER)
905 yy_stack_print (yytype_int16 *yybottom, yytype_int16 *yytop)
908 yy_stack_print (yybottom, yytop)
909 yytype_int16 *yybottom;
913 YYFPRINTF (stderr, "Stack now");
914 for (; yybottom <= yytop; yybottom++)
916 int yybot = *yybottom;
917 YYFPRINTF (stderr, " %d", yybot);
919 YYFPRINTF (stderr, "\n");
922 # define YY_STACK_PRINT(Bottom, Top) \
925 yy_stack_print ((Bottom), (Top)); \
929 /*------------------------------------------------.
930 | Report that the YYRULE is going to be reduced. |
931 `------------------------------------------------*/
933 #if (defined __STDC__ || defined __C99__FUNC__ \
934 || defined __cplusplus || defined _MSC_VER)
936 yy_reduce_print (YYSTYPE *yyvsp, int yyrule)
939 yy_reduce_print (yyvsp, yyrule)
944 int yynrhs = yyr2[yyrule];
946 unsigned long int yylno = yyrline[yyrule];
947 YYFPRINTF (stderr, "Reducing stack by rule %d (line %lu):\n",
949 /* The symbols being reduced. */
950 for (yyi = 0; yyi < yynrhs; yyi++)
952 YYFPRINTF (stderr, " $%d = ", yyi + 1);
953 yy_symbol_print (stderr, yyrhs[yyprhs[yyrule] + yyi],
954 &(yyvsp[(yyi + 1) - (yynrhs)])
956 YYFPRINTF (stderr, "\n");
960 # define YY_REDUCE_PRINT(Rule) \
963 yy_reduce_print (yyvsp, Rule); \
966 /* Nonzero means print parse trace. It is left uninitialized so that
967 multiple parsers can coexist. */
970 # define YYDPRINTF(Args)
971 # define YY_SYMBOL_PRINT(Title, Type, Value, Location)
972 # define YY_STACK_PRINT(Bottom, Top)
973 # define YY_REDUCE_PRINT(Rule)
974 #endif /* !YYDEBUG */
977 /* YYINITDEPTH -- initial size of the parser's stacks. */
979 # define YYINITDEPTH 200
982 /* YYMAXDEPTH -- maximum size the stacks can grow to (effective only
983 if the built-in stack extension method is used).
985 Do not make this value too large; the results are undefined if
986 YYSTACK_ALLOC_MAXIMUM < YYSTACK_BYTES (YYMAXDEPTH)
987 evaluated with infinite-precision integer arithmetic. */
990 # define YYMAXDEPTH 10000
997 # if defined __GLIBC__ && defined _STRING_H
998 # define yystrlen strlen
1000 /* Return the length of YYSTR. */
1001 #if (defined __STDC__ || defined __C99__FUNC__ \
1002 || defined __cplusplus || defined _MSC_VER)
1004 yystrlen (const char *yystr)
1012 for (yylen = 0; yystr[yylen]; yylen++)
1020 # if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE
1021 # define yystpcpy stpcpy
1023 /* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in
1025 #if (defined __STDC__ || defined __C99__FUNC__ \
1026 || defined __cplusplus || defined _MSC_VER)
1028 yystpcpy (char *yydest, const char *yysrc)
1031 yystpcpy (yydest, yysrc)
1037 const char *yys = yysrc;
1039 while ((*yyd++ = *yys++) != '\0')
1048 /* Copy to YYRES the contents of YYSTR after stripping away unnecessary
1049 quotes and backslashes, so that it's suitable for yyerror. The
1050 heuristic is that double-quoting is unnecessary unless the string
1051 contains an apostrophe, a comma, or backslash (other than
1052 backslash-backslash). YYSTR is taken from yytname. If YYRES is
1053 null, do not copy; instead, return the length of what the result
1056 yytnamerr (char *yyres, const char *yystr)
1061 char const *yyp = yystr;
1068 goto do_not_strip_quotes;
1072 goto do_not_strip_quotes;
1085 do_not_strip_quotes: ;
1089 return yystrlen (yystr);
1091 return yystpcpy (yyres, yystr) - yyres;
1095 /* Copy into *YYMSG, which is of size *YYMSG_ALLOC, an error message
1096 about the unexpected token YYTOKEN for the state stack whose top is
1099 Return 0 if *YYMSG was successfully written. Return 1 if *YYMSG is
1100 not large enough to hold the message. In that case, also set
1101 *YYMSG_ALLOC to the required number of bytes. Return 2 if the
1102 required number of bytes is too large to store. */
1104 yysyntax_error (YYSIZE_T *yymsg_alloc, char **yymsg,
1105 yytype_int16 *yyssp, int yytoken)
1107 YYSIZE_T yysize0 = yytnamerr (YY_NULL, yytname[yytoken]);
1108 YYSIZE_T yysize = yysize0;
1109 enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 };
1110 /* Internationalized format string. */
1111 const char *yyformat = YY_NULL;
1112 /* Arguments of yyformat. */
1113 char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
1114 /* Number of reported tokens (one for the "unexpected", one per
1118 /* There are many possibilities here to consider:
1119 - Assume YYFAIL is not used. It's too flawed to consider. See
1120 <http://lists.gnu.org/archive/html/bison-patches/2009-12/msg00024.html>
1121 for details. YYERROR is fine as it does not invoke this
1123 - If this state is a consistent state with a default action, then
1124 the only way this function was invoked is if the default action
1125 is an error action. In that case, don't check for expected
1126 tokens because there are none.
1127 - The only way there can be no lookahead present (in yychar) is if
1128 this state is a consistent state with a default action. Thus,
1129 detecting the absence of a lookahead is sufficient to determine
1130 that there is no unexpected or expected token to report. In that
1131 case, just report a simple "syntax error".
1132 - Don't assume there isn't a lookahead just because this state is a
1133 consistent state with a default action. There might have been a
1134 previous inconsistent state, consistent state with a non-default
1135 action, or user semantic action that manipulated yychar.
1136 - Of course, the expected token list depends on states to have
1137 correct lookahead information, and it depends on the parser not
1138 to perform extra reductions after fetching a lookahead from the
1139 scanner and before detecting a syntax error. Thus, state merging
1140 (from LALR or IELR) and default reductions corrupt the expected
1141 token list. However, the list is correct for canonical LR with
1142 one exception: it will still contain any token that will not be
1143 accepted due to an error action in a later state.
1145 if (yytoken != YYEMPTY)
1147 int yyn = yypact[*yyssp];
1148 yyarg[yycount++] = yytname[yytoken];
1149 if (!yypact_value_is_default (yyn))
1151 /* Start YYX at -YYN if negative to avoid negative indexes in
1152 YYCHECK. In other words, skip the first -YYN actions for
1153 this state because they are default actions. */
1154 int yyxbegin = yyn < 0 ? -yyn : 0;
1155 /* Stay within bounds of both yycheck and yytname. */
1156 int yychecklim = YYLAST - yyn + 1;
1157 int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS;
1160 for (yyx = yyxbegin; yyx < yyxend; ++yyx)
1161 if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR
1162 && !yytable_value_is_error (yytable[yyx + yyn]))
1164 if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM)
1170 yyarg[yycount++] = yytname[yyx];
1172 YYSIZE_T yysize1 = yysize + yytnamerr (YY_NULL, yytname[yyx]);
1173 if (! (yysize <= yysize1
1174 && yysize1 <= YYSTACK_ALLOC_MAXIMUM))
1184 # define YYCASE_(N, S) \
1188 YYCASE_(0, YY_("syntax error"));
1189 YYCASE_(1, YY_("syntax error, unexpected %s"));
1190 YYCASE_(2, YY_("syntax error, unexpected %s, expecting %s"));
1191 YYCASE_(3, YY_("syntax error, unexpected %s, expecting %s or %s"));
1192 YYCASE_(4, YY_("syntax error, unexpected %s, expecting %s or %s or %s"));
1193 YYCASE_(5, YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s"));
1198 YYSIZE_T yysize1 = yysize + yystrlen (yyformat);
1199 if (! (yysize <= yysize1 && yysize1 <= YYSTACK_ALLOC_MAXIMUM))
1204 if (*yymsg_alloc < yysize)
1206 *yymsg_alloc = 2 * yysize;
1207 if (! (yysize <= *yymsg_alloc
1208 && *yymsg_alloc <= YYSTACK_ALLOC_MAXIMUM))
1209 *yymsg_alloc = YYSTACK_ALLOC_MAXIMUM;
1213 /* Avoid sprintf, as that infringes on the user's name space.
1214 Don't have undefined behavior even if the translation
1215 produced a string with the wrong number of "%s"s. */
1219 while ((*yyp = *yyformat) != '\0')
1220 if (*yyp == '%' && yyformat[1] == 's' && yyi < yycount)
1222 yyp += yytnamerr (yyp, yyarg[yyi++]);
1233 #endif /* YYERROR_VERBOSE */
1235 /*-----------------------------------------------.
1236 | Release the memory associated to this symbol. |
1237 `-----------------------------------------------*/
1240 #if (defined __STDC__ || defined __C99__FUNC__ \
1241 || defined __cplusplus || defined _MSC_VER)
1243 yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep)
1246 yydestruct (yymsg, yytype, yyvaluep)
1256 YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp);
1269 /* The lookahead symbol. */
1273 #ifndef YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
1274 # define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
1275 # define YY_IGNORE_MAYBE_UNINITIALIZED_END
1277 #ifndef YY_INITIAL_VALUE
1278 # define YY_INITIAL_VALUE(Value) /* Nothing. */
1281 /* The semantic value of the lookahead symbol. */
1282 YYSTYPE yylval YY_INITIAL_VALUE(yyval_default);
1284 /* Number of syntax errors so far. */
1292 #ifdef YYPARSE_PARAM
1293 #if (defined __STDC__ || defined __C99__FUNC__ \
1294 || defined __cplusplus || defined _MSC_VER)
1296 yyparse (void *YYPARSE_PARAM)
1299 yyparse (YYPARSE_PARAM)
1300 void *YYPARSE_PARAM;
1302 #else /* ! YYPARSE_PARAM */
1303 #if (defined __STDC__ || defined __C99__FUNC__ \
1304 || defined __cplusplus || defined _MSC_VER)
1315 /* Number of tokens to shift before error messages enabled. */
1318 /* The stacks and their tools:
1319 `yyss': related to states.
1320 `yyvs': related to semantic values.
1322 Refer to the stacks through separate pointers, to allow yyoverflow
1323 to reallocate them elsewhere. */
1325 /* The state stack. */
1326 yytype_int16 yyssa[YYINITDEPTH];
1328 yytype_int16 *yyssp;
1330 /* The semantic value stack. */
1331 YYSTYPE yyvsa[YYINITDEPTH];
1335 YYSIZE_T yystacksize;
1339 /* Lookahead token as an internal (translated) token number. */
1341 /* The variables used to return semantic value and location from the
1346 /* Buffer for error messages, and its allocated size. */
1348 char *yymsg = yymsgbuf;
1349 YYSIZE_T yymsg_alloc = sizeof yymsgbuf;
1352 #define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N))
1354 /* The number of symbols on the RHS of the reduced rule.
1355 Keep to zero when no symbol should be popped. */
1358 yyssp = yyss = yyssa;
1359 yyvsp = yyvs = yyvsa;
1360 yystacksize = YYINITDEPTH;
1362 YYDPRINTF ((stderr, "Starting parse\n"));
1367 yychar = YYEMPTY; /* Cause a token to be read. */
1370 /*------------------------------------------------------------.
1371 | yynewstate -- Push a new state, which is found in yystate. |
1372 `------------------------------------------------------------*/
1374 /* In all cases, when you get here, the value and location stacks
1375 have just been pushed. So pushing a state here evens the stacks. */
1381 if (yyss + yystacksize - 1 <= yyssp)
1383 /* Get the current used size of the three stacks, in elements. */
1384 YYSIZE_T yysize = yyssp - yyss + 1;
1388 /* Give user a chance to reallocate the stack. Use copies of
1389 these so that the &'s don't force the real ones into
1391 YYSTYPE *yyvs1 = yyvs;
1392 yytype_int16 *yyss1 = yyss;
1394 /* Each stack pointer address is followed by the size of the
1395 data in use in that stack, in bytes. This used to be a
1396 conditional around just the two extra args, but that might
1397 be undefined if yyoverflow is a macro. */
1398 yyoverflow (YY_("memory exhausted"),
1399 &yyss1, yysize * sizeof (*yyssp),
1400 &yyvs1, yysize * sizeof (*yyvsp),
1406 #else /* no yyoverflow */
1407 # ifndef YYSTACK_RELOCATE
1408 goto yyexhaustedlab;
1410 /* Extend the stack our own way. */
1411 if (YYMAXDEPTH <= yystacksize)
1412 goto yyexhaustedlab;
1414 if (YYMAXDEPTH < yystacksize)
1415 yystacksize = YYMAXDEPTH;
1418 yytype_int16 *yyss1 = yyss;
1419 union yyalloc *yyptr =
1420 (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize));
1422 goto yyexhaustedlab;
1423 YYSTACK_RELOCATE (yyss_alloc, yyss);
1424 YYSTACK_RELOCATE (yyvs_alloc, yyvs);
1425 # undef YYSTACK_RELOCATE
1427 YYSTACK_FREE (yyss1);
1430 #endif /* no yyoverflow */
1432 yyssp = yyss + yysize - 1;
1433 yyvsp = yyvs + yysize - 1;
1435 YYDPRINTF ((stderr, "Stack size increased to %lu\n",
1436 (unsigned long int) yystacksize));
1438 if (yyss + yystacksize - 1 <= yyssp)
1442 YYDPRINTF ((stderr, "Entering state %d\n", yystate));
1444 if (yystate == YYFINAL)
1454 /* Do appropriate processing given the current state. Read a
1455 lookahead token if we need one and don't already have one. */
1457 /* First try to decide what to do without reference to lookahead token. */
1458 yyn = yypact[yystate];
1459 if (yypact_value_is_default (yyn))
1462 /* Not known => get a lookahead token if don't already have one. */
1464 /* YYCHAR is either YYEMPTY or YYEOF or a valid lookahead symbol. */
1465 if (yychar == YYEMPTY)
1467 YYDPRINTF ((stderr, "Reading a token: "));
1471 if (yychar <= YYEOF)
1473 yychar = yytoken = YYEOF;
1474 YYDPRINTF ((stderr, "Now at end of input.\n"));
1478 yytoken = YYTRANSLATE (yychar);
1479 YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc);
1482 /* If the proper action on seeing token YYTOKEN is to reduce or to
1483 detect an error, take that action. */
1485 if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken)
1490 if (yytable_value_is_error (yyn))
1496 /* Count tokens shifted since error; after three, turn off error
1501 /* Shift the lookahead token. */
1502 YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc);
1504 /* Discard the shifted token. */
1508 YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
1510 YY_IGNORE_MAYBE_UNINITIALIZED_END
1515 /*-----------------------------------------------------------.
1516 | yydefault -- do the default action for the current state. |
1517 `-----------------------------------------------------------*/
1519 yyn = yydefact[yystate];
1525 /*-----------------------------.
1526 | yyreduce -- Do a reduction. |
1527 `-----------------------------*/
1529 /* yyn is the number of a rule to reduce with. */
1532 /* If YYLEN is nonzero, implement the default value of the action:
1535 Otherwise, the following line sets YYVAL to garbage.
1536 This behavior is undocumented and Bison
1537 users should not rely upon it. Assigning to YYVAL
1538 unconditionally makes the parser a bit smaller, and it avoids a
1539 GCC warning that YYVAL may be used uninitialized. */
1540 yyval = yyvsp[1-yylen];
1543 YY_REDUCE_PRINT (yyn);
1547 /* Line 1792 of yacc.c */
1548 #line 84 "D:/ABV/OCCT/occt7/src/ExprIntrp/ExprIntrp.yacc"
1549 {ExprIntrp_EndOfFuncDef();}
1553 /* Line 1792 of yacc.c */
1554 #line 85 "D:/ABV/OCCT/occt7/src/ExprIntrp/ExprIntrp.yacc"
1555 {ExprIntrp_EndOfRelation();}
1559 /* Line 1792 of yacc.c */
1560 #line 88 "D:/ABV/OCCT/occt7/src/ExprIntrp/ExprIntrp.yacc"
1561 {ExprIntrp_AssignVariable();}
1565 /* Line 1792 of yacc.c */
1566 #line 88 "D:/ABV/OCCT/occt7/src/ExprIntrp/ExprIntrp.yacc"
1567 {ExprIntrp_EndOfAssign();}
1571 /* Line 1792 of yacc.c */
1572 #line 91 "D:/ABV/OCCT/occt7/src/ExprIntrp/ExprIntrp.yacc"
1573 {ExprIntrp_Deassign();}
1577 /* Line 1792 of yacc.c */
1578 #line 94 "D:/ABV/OCCT/occt7/src/ExprIntrp/ExprIntrp.yacc"
1579 {ExprIntrp_SumOperator();}
1583 /* Line 1792 of yacc.c */
1584 #line 95 "D:/ABV/OCCT/occt7/src/ExprIntrp/ExprIntrp.yacc"
1585 {ExprIntrp_MinusOperator();}
1589 /* Line 1792 of yacc.c */
1590 #line 96 "D:/ABV/OCCT/occt7/src/ExprIntrp/ExprIntrp.yacc"
1591 {ExprIntrp_ProductOperator();}
1595 /* Line 1792 of yacc.c */
1596 #line 97 "D:/ABV/OCCT/occt7/src/ExprIntrp/ExprIntrp.yacc"
1597 {ExprIntrp_DivideOperator();}
1601 /* Line 1792 of yacc.c */
1602 #line 98 "D:/ABV/OCCT/occt7/src/ExprIntrp/ExprIntrp.yacc"
1603 {ExprIntrp_ExpOperator();}
1607 /* Line 1792 of yacc.c */
1608 #line 101 "D:/ABV/OCCT/occt7/src/ExprIntrp/ExprIntrp.yacc"
1609 {ExprIntrp_UnaryMinusOperator();}
1613 /* Line 1792 of yacc.c */
1614 #line 102 "D:/ABV/OCCT/occt7/src/ExprIntrp/ExprIntrp.yacc"
1615 {ExprIntrp_UnaryPlusOperator();}
1619 /* Line 1792 of yacc.c */
1620 #line 115 "D:/ABV/OCCT/occt7/src/ExprIntrp/ExprIntrp.yacc"
1621 {ExprIntrp_VariableIdentifier();}
1625 /* Line 1792 of yacc.c */
1626 #line 116 "D:/ABV/OCCT/occt7/src/ExprIntrp/ExprIntrp.yacc"
1627 {ExprIntrp_NumValue();}
1631 /* Line 1792 of yacc.c */
1632 #line 119 "D:/ABV/OCCT/occt7/src/ExprIntrp/ExprIntrp.yacc"
1633 {ExprIntrp_EndFunction();}
1637 /* Line 1792 of yacc.c */
1638 #line 120 "D:/ABV/OCCT/occt7/src/ExprIntrp/ExprIntrp.yacc"
1639 {ExprIntrp_EndDerFunction();}
1643 /* Line 1792 of yacc.c */
1644 #line 121 "D:/ABV/OCCT/occt7/src/ExprIntrp/ExprIntrp.yacc"
1645 {ExprIntrp_EndDifferential();}
1649 /* Line 1792 of yacc.c */
1650 #line 121 "D:/ABV/OCCT/occt7/src/ExprIntrp/ExprIntrp.yacc"
1651 {ExprIntrp_EndDiffFunction();}
1655 /* Line 1792 of yacc.c */
1656 #line 124 "D:/ABV/OCCT/occt7/src/ExprIntrp/ExprIntrp.yacc"
1657 {ExprIntrp_EndFuncArg();}
1661 /* Line 1792 of yacc.c */
1662 #line 125 "D:/ABV/OCCT/occt7/src/ExprIntrp/ExprIntrp.yacc"
1663 {ExprIntrp_NextFuncArg();}
1667 /* Line 1792 of yacc.c */
1668 #line 128 "D:/ABV/OCCT/occt7/src/ExprIntrp/ExprIntrp.yacc"
1669 {ExprIntrp_StartFunction();}
1673 /* Line 1792 of yacc.c */
1674 #line 131 "D:/ABV/OCCT/occt7/src/ExprIntrp/ExprIntrp.yacc"
1675 {ExprIntrp_DefineFunction();}
1679 /* Line 1792 of yacc.c */
1680 #line 134 "D:/ABV/OCCT/occt7/src/ExprIntrp/ExprIntrp.yacc"
1681 {ExprIntrp_StartDerivate();}
1685 /* Line 1792 of yacc.c */
1686 #line 134 "D:/ABV/OCCT/occt7/src/ExprIntrp/ExprIntrp.yacc"
1687 {ExprIntrp_EndDerivate();}
1691 /* Line 1792 of yacc.c */
1692 #line 137 "D:/ABV/OCCT/occt7/src/ExprIntrp/ExprIntrp.yacc"
1693 {ExprIntrp_DiffVar();}
1697 /* Line 1792 of yacc.c */
1698 #line 138 "D:/ABV/OCCT/occt7/src/ExprIntrp/ExprIntrp.yacc"
1699 {ExprIntrp_DiffDegree();}
1703 /* Line 1792 of yacc.c */
1704 #line 138 "D:/ABV/OCCT/occt7/src/ExprIntrp/ExprIntrp.yacc"
1705 {ExprIntrp_VerDiffDegree();}
1709 /* Line 1792 of yacc.c */
1710 #line 138 "D:/ABV/OCCT/occt7/src/ExprIntrp/ExprIntrp.yacc"
1711 {ExprIntrp_DiffDegreeVar();}
1715 /* Line 1792 of yacc.c */
1716 #line 141 "D:/ABV/OCCT/occt7/src/ExprIntrp/ExprIntrp.yacc"
1717 {ExprIntrp_StartDifferential();}
1721 /* Line 1792 of yacc.c */
1722 #line 145 "D:/ABV/OCCT/occt7/src/ExprIntrp/ExprIntrp.yacc"
1723 {ExprIntrp_StartFunction();}
1727 /* Line 1792 of yacc.c */
1728 #line 148 "D:/ABV/OCCT/occt7/src/ExprIntrp/ExprIntrp.yacc"
1729 {ExprIntrp_EndFuncArg();}
1733 /* Line 1792 of yacc.c */
1734 #line 149 "D:/ABV/OCCT/occt7/src/ExprIntrp/ExprIntrp.yacc"
1735 {ExprIntrp_NextFuncArg();}
1739 /* Line 1792 of yacc.c */
1740 #line 152 "D:/ABV/OCCT/occt7/src/ExprIntrp/ExprIntrp.yacc"
1741 {ExprIntrp_VariableIdentifier();}
1745 /* Line 1792 of yacc.c */
1746 #line 155 "D:/ABV/OCCT/occt7/src/ExprIntrp/ExprIntrp.yacc"
1747 {ExprIntrp_Derivation();}
1751 /* Line 1792 of yacc.c */
1752 #line 155 "D:/ABV/OCCT/occt7/src/ExprIntrp/ExprIntrp.yacc"
1753 {ExprIntrp_EndDerivation();}
1757 /* Line 1792 of yacc.c */
1758 #line 156 "D:/ABV/OCCT/occt7/src/ExprIntrp/ExprIntrp.yacc"
1759 {ExprIntrp_Derivation();}
1763 /* Line 1792 of yacc.c */
1764 #line 156 "D:/ABV/OCCT/occt7/src/ExprIntrp/ExprIntrp.yacc"
1765 {ExprIntrp_DerivationValue();}
1769 /* Line 1792 of yacc.c */
1770 #line 156 "D:/ABV/OCCT/occt7/src/ExprIntrp/ExprIntrp.yacc"
1771 {ExprIntrp_EndDerivation();}
1775 /* Line 1792 of yacc.c */
1776 #line 159 "D:/ABV/OCCT/occt7/src/ExprIntrp/ExprIntrp.yacc"
1777 {ExprIntrp_ConstantIdentifier();}
1781 /* Line 1792 of yacc.c */
1782 #line 159 "D:/ABV/OCCT/occt7/src/ExprIntrp/ExprIntrp.yacc"
1783 {ExprIntrp_ConstantDefinition();}
1787 /* Line 1792 of yacc.c */
1788 #line 162 "D:/ABV/OCCT/occt7/src/ExprIntrp/ExprIntrp.yacc"
1789 {ExprIntrp_VariableIdentifier();}
1793 /* Line 1792 of yacc.c */
1794 #line 162 "D:/ABV/OCCT/occt7/src/ExprIntrp/ExprIntrp.yacc"
1795 {ExprIntrp_NumValue();}
1799 /* Line 1792 of yacc.c */
1800 #line 162 "D:/ABV/OCCT/occt7/src/ExprIntrp/ExprIntrp.yacc"
1801 {ExprIntrp_Sumator();}
1805 /* Line 1792 of yacc.c */
1806 #line 165 "D:/ABV/OCCT/occt7/src/ExprIntrp/ExprIntrp.yacc"
1807 {ExprIntrp_VariableIdentifier();}
1811 /* Line 1792 of yacc.c */
1812 #line 165 "D:/ABV/OCCT/occt7/src/ExprIntrp/ExprIntrp.yacc"
1813 {ExprIntrp_NumValue();}
1817 /* Line 1792 of yacc.c */
1818 #line 165 "D:/ABV/OCCT/occt7/src/ExprIntrp/ExprIntrp.yacc"
1819 {ExprIntrp_Productor();}
1823 /* Line 1792 of yacc.c */
1824 #line 173 "D:/ABV/OCCT/occt7/src/ExprIntrp/ExprIntrp.yacc"
1825 {ExprIntrp_EndOfEqual();}
1829 /* Line 1792 of yacc.c */
1830 #line 1831 "ExprIntrp.tab.c"
1833 /* User semantic actions sometimes alter yychar, and that requires
1834 that yytoken be updated with the new translation. We take the
1835 approach of translating immediately before every use of yytoken.
1836 One alternative is translating here after every semantic action,
1837 but that translation would be missed if the semantic action invokes
1838 YYABORT, YYACCEPT, or YYERROR immediately after altering yychar or
1839 if it invokes YYBACKUP. In the case of YYABORT or YYACCEPT, an
1840 incorrect destructor might then be invoked immediately. In the
1841 case of YYERROR or YYBACKUP, subsequent parser actions might lead
1842 to an incorrect destructor call or verbose syntax error message
1843 before the lookahead is translated. */
1844 YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc);
1848 YY_STACK_PRINT (yyss, yyssp);
1852 /* Now `shift' the result of the reduction. Determine what state
1853 that goes to, based on the state we popped back to and the rule
1854 number reduced by. */
1858 yystate = yypgoto[yyn - YYNTOKENS] + *yyssp;
1859 if (0 <= yystate && yystate <= YYLAST && yycheck[yystate] == *yyssp)
1860 yystate = yytable[yystate];
1862 yystate = yydefgoto[yyn - YYNTOKENS];
1867 /*------------------------------------.
1868 | yyerrlab -- here on detecting error |
1869 `------------------------------------*/
1871 /* Make sure we have latest lookahead translation. See comments at
1872 user semantic actions for why this is necessary. */
1873 yytoken = yychar == YYEMPTY ? YYEMPTY : YYTRANSLATE (yychar);
1875 /* If not already recovering from an error, report this error. */
1879 #if ! YYERROR_VERBOSE
1880 yyerror (YY_("syntax error"));
1882 # define YYSYNTAX_ERROR yysyntax_error (&yymsg_alloc, &yymsg, \
1885 char const *yymsgp = YY_("syntax error");
1886 int yysyntax_error_status;
1887 yysyntax_error_status = YYSYNTAX_ERROR;
1888 if (yysyntax_error_status == 0)
1890 else if (yysyntax_error_status == 1)
1892 if (yymsg != yymsgbuf)
1893 YYSTACK_FREE (yymsg);
1894 yymsg = (char *) YYSTACK_ALLOC (yymsg_alloc);
1898 yymsg_alloc = sizeof yymsgbuf;
1899 yysyntax_error_status = 2;
1903 yysyntax_error_status = YYSYNTAX_ERROR;
1908 if (yysyntax_error_status == 2)
1909 goto yyexhaustedlab;
1911 # undef YYSYNTAX_ERROR
1917 if (yyerrstatus == 3)
1919 /* If just tried and failed to reuse lookahead token after an
1920 error, discard it. */
1922 if (yychar <= YYEOF)
1924 /* Return failure if at end of input. */
1925 if (yychar == YYEOF)
1930 yydestruct ("Error: discarding",
1936 /* Else will try to reuse lookahead token after shifting the error
1941 /*---------------------------------------------------.
1942 | yyerrorlab -- error raised explicitly by YYERROR. |
1943 `---------------------------------------------------*/
1946 /* Pacify compilers like GCC when the user code never invokes
1947 YYERROR and the label yyerrorlab therefore never appears in user
1949 if (/*CONSTCOND*/ 0)
1952 /* Do not reclaim the symbols of the rule which action triggered
1956 YY_STACK_PRINT (yyss, yyssp);
1961 /*-------------------------------------------------------------.
1962 | yyerrlab1 -- common code for both syntax error and YYERROR. |
1963 `-------------------------------------------------------------*/
1965 yyerrstatus = 3; /* Each real token shifted decrements this. */
1969 yyn = yypact[yystate];
1970 if (!yypact_value_is_default (yyn))
1973 if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR)
1981 /* Pop the current state because it cannot handle the error token. */
1986 yydestruct ("Error: popping",
1987 yystos[yystate], yyvsp);
1990 YY_STACK_PRINT (yyss, yyssp);
1993 YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
1995 YY_IGNORE_MAYBE_UNINITIALIZED_END
1998 /* Shift the error token. */
1999 YY_SYMBOL_PRINT ("Shifting", yystos[yyn], yyvsp, yylsp);
2005 /*-------------------------------------.
2006 | yyacceptlab -- YYACCEPT comes here. |
2007 `-------------------------------------*/
2012 /*-----------------------------------.
2013 | yyabortlab -- YYABORT comes here. |
2014 `-----------------------------------*/
2019 #if !defined yyoverflow || YYERROR_VERBOSE
2020 /*-------------------------------------------------.
2021 | yyexhaustedlab -- memory exhaustion comes here. |
2022 `-------------------------------------------------*/
2024 yyerror (YY_("memory exhausted"));
2030 if (yychar != YYEMPTY)
2032 /* Make sure we have latest lookahead translation. See comments at
2033 user semantic actions for why this is necessary. */
2034 yytoken = YYTRANSLATE (yychar);
2035 yydestruct ("Cleanup: discarding lookahead",
2038 /* Do not reclaim the symbols of the rule which action triggered
2039 this YYABORT or YYACCEPT. */
2041 YY_STACK_PRINT (yyss, yyssp);
2042 while (yyssp != yyss)
2044 yydestruct ("Cleanup: popping",
2045 yystos[*yyssp], yyvsp);
2050 YYSTACK_FREE (yyss);
2053 if (yymsg != yymsgbuf)
2054 YYSTACK_FREE (yymsg);
2056 /* Make sure YYID is used. */
2057 return YYID (yyresult);