2 ** Inserted at beginning of c files generated by bison
3 ** REMEMBER: Change bison.reset too.
42 /*@-unqualifiedtrans@*/
49 /*drl added 11/27/2001*/
52 /*drl added 12/11/2002*/
57 /* < end of bison.head > */
59 /* A Bison parser, made by GNU Bison 2.3. */
61 /* Skeleton implementation for Bison's Yacc-like parsers in C
63 Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
64 Free Software Foundation, Inc.
66 This program is free software; you can redistribute it and/or modify
67 it under the terms of the GNU General Public License as published by
68 the Free Software Foundation; either version 2, or (at your option)
71 This program is distributed in the hope that it will be useful,
72 but WITHOUT ANY WARRANTY; without even the implied warranty of
73 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
74 GNU General Public License for more details.
76 You should have received a copy of the GNU General Public License
77 along with this program; if not, write to the Free Software
78 Foundation, Inc., 51 Franklin Street, Fifth Floor,
79 Boston, MA 02110-1301, USA. */
81 /* As a special exception, you may create a larger work that contains
82 part or all of the Bison parser skeleton and distribute that work
83 under terms of your choice, so long as that work isn't itself a
84 parser generator using the skeleton or a modified version thereof
85 as a parser skeleton. Alternatively, if you modify or redistribute
86 the parser skeleton itself, you may (at your option) remove this
87 special exception, which will cause the skeleton and the resulting
88 Bison output files to be licensed under the GNU General Public
89 License without this special exception.
91 This special exception was added by the Free Software Foundation in
92 version 2.2 of Bison. */
94 /* C LALR(1) parser skeleton written by Richard Stallman, by
95 simplifying the original so-called "semantic" parser. */
97 /* All symbols defined below should begin with yy or YY, to avoid
98 infringing on user name space. This should be done even for local
99 variables, as they might otherwise be expanded by user macros.
100 There are some unavoidable exceptions within include files to
101 define necessary library symbols; they are noted "INFRINGES ON
102 USER NAME SPACE" below. */
104 /* Identify Bison output. */
108 #define YYBISON_VERSION "2.3"
111 #define YYSKELETON_NAME "yacc.c"
116 /* Using locations. */
117 #define YYLSP_NEEDED 0
119 /* Substitute the variable and function names. */
120 #define yyparse lslparse
122 #define yyerror lslerror
123 #define yylval lsllval
124 #define yychar lslchar
125 #define yydebug lsldebug
126 #define yynerrs lslnerrs
132 /* Put the tokens into the symbol table, so that GDB and other debuggers
140 LST_FIELDMAPSYM = 263,
154 LST_COMMENTSYM = 277,
155 LST_WHITESPACE = 278,
156 LST_QUANTIFIERSYM = 279,
157 LST_EQUATIONSYM = 280,
159 LST_COMPOSESYM = 282,
162 LST_assertsTOKEN = 285,
163 LST_assumesTOKEN = 286,
165 LST_convertsTOKEN = 288,
166 LST_enumerationTOKEN = 289,
167 LST_equationsTOKEN = 290,
168 LST_exemptingTOKEN = 291,
170 LST_generatedTOKEN = 293,
171 LST_impliesTOKEN = 294,
172 LST_includesTOKEN = 295,
173 LST_introducesTOKEN = 296,
175 LST_partitionedTOKEN = 298,
176 LST_traitTOKEN = 299,
177 LST_tupleTOKEN = 300,
178 LST_unionTOKEN = 301,
183 #define LST_SIMPLEID 258
184 #define LST_LOGICALOP 259
186 #define LST_SIMPLEOP 261
187 #define LST_MAPSYM 262
188 #define LST_FIELDMAPSYM 263
189 #define LST_MARKERSYM 264
190 #define LST_ifTOKEN 265
191 #define LST_thenTOKEN 266
192 #define LST_elseTOKEN 267
193 #define LST_LBRACKET 268
194 #define LST_RBRACKET 269
195 #define LST_SELECTSYM 270
196 #define LST_SEPSYM 271
197 #define LST_OPENSYM 272
198 #define LST_CLOSESYM 273
199 #define LST_COLON 274
200 #define LST_COMMA 275
202 #define LST_COMMENTSYM 277
203 #define LST_WHITESPACE 278
204 #define LST_QUANTIFIERSYM 279
205 #define LST_EQUATIONSYM 280
206 #define LST_EQSEPSYM 281
207 #define LST_COMPOSESYM 282
210 #define LST_assertsTOKEN 285
211 #define LST_assumesTOKEN 286
212 #define LST_byTOKEN 287
213 #define LST_convertsTOKEN 288
214 #define LST_enumerationTOKEN 289
215 #define LST_equationsTOKEN 290
216 #define LST_exemptingTOKEN 291
217 #define LST_forTOKEN 292
218 #define LST_generatedTOKEN 293
219 #define LST_impliesTOKEN 294
220 #define LST_includesTOKEN 295
221 #define LST_introducesTOKEN 296
222 #define LST_ofTOKEN 297
223 #define LST_partitionedTOKEN 298
224 #define LST_traitTOKEN 299
225 #define LST_tupleTOKEN 300
226 #define LST_unionTOKEN 301
227 #define LST_BADTOKEN 302
232 /* Copy the first part of user declarations. */
237 # include "splintMacros.nf"
239 # include "lslparse.h"
240 # include "signature.h"
242 static void lslerror (char *);
243 extern int lsllex ();
245 /*@dependent@*/ /*@null@*/ lslOp importedlslOp;
247 /*@-noparams@*/ /* Can't list params since YYSTYPE isn't defined yet. */
248 static void yyprint (/*FILE *p_file, int p_type, YYSTYPE p_value */);
251 # define YYPRINT(file, type, value) yyprint (file, type, value)
261 /* Enabling traces. */
266 /* Enabling verbose error messages. */
267 #ifdef YYERROR_VERBOSE
268 # undef YYERROR_VERBOSE
269 # define YYERROR_VERBOSE 1
271 # define YYERROR_VERBOSE 0
274 /* Enabling the token table. */
275 #ifndef YYTOKEN_TABLE
276 # define YYTOKEN_TABLE 0
279 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
280 typedef union YYSTYPE
283 ltoken ltok; /* a leaf is also an ltoken */
285 /*@only@*/ ltokenList ltokenList;
286 /*@only@*/ opFormNode opform;
287 /*@owned@*/ sigNode signature;
288 /*@only@*/ nameNode name;
289 /*@owned@*/ lslOp operator;
290 /*@only@*/ lslOpList operators;
291 /*@-redef@*/ /*@-matchfields@*/
293 /* Line 193 of yacc.c. */
296 # define yystype YYSTYPE /* obsolescent; will be withdrawn */
297 # define YYSTYPE_IS_DECLARED 1
298 # define YYSTYPE_IS_TRIVIAL 1
303 /* Copy the second part of user declarations. */
306 /* Line 216 of yacc.c. */
314 typedef YYTYPE_UINT8 yytype_uint8;
316 typedef unsigned char yytype_uint8;
320 typedef YYTYPE_INT8 yytype_int8;
321 #elif (defined __STDC__ || defined __C99__FUNC__ \
322 || defined __cplusplus || defined _MSC_VER)
323 typedef signed char yytype_int8;
325 typedef short int yytype_int8;
329 typedef YYTYPE_UINT16 yytype_uint16;
331 typedef unsigned short int yytype_uint16;
335 typedef YYTYPE_INT16 yytype_int16;
337 typedef short int yytype_int16;
341 # ifdef __SIZE_TYPE__
342 # define YYSIZE_T __SIZE_TYPE__
343 # elif defined size_t
344 # define YYSIZE_T size_t
345 # elif ! defined YYSIZE_T && (defined __STDC__ || defined __C99__FUNC__ \
346 || defined __cplusplus || defined _MSC_VER)
347 # include <stddef.h> /* INFRINGES ON USER NAME SPACE */
348 # define YYSIZE_T size_t
350 # define YYSIZE_T unsigned int
354 #define YYSIZE_MAXIMUM ((YYSIZE_T) -1)
359 # include <libintl.h> /* INFRINGES ON USER NAME SPACE */
360 # define YY_(msgid) dgettext ("bison-runtime", msgid)
364 # define YY_(msgid) msgid
368 /* Suppress unused-variable warnings by "using" E. */
369 #if ! defined lint || defined __GNUC__
370 # define YYUSE(e) ((void) (e))
372 # define YYUSE(e) /* empty */
375 /* Identity function, used to suppress warnings about constant conditions. */
379 #if (defined __STDC__ || defined __C99__FUNC__ \
380 || defined __cplusplus || defined _MSC_VER)
393 #if ! defined yyoverflow || YYERROR_VERBOSE
395 /* The parser invokes alloca or malloc; define the necessary symbols. */
397 # ifdef YYSTACK_USE_ALLOCA
398 # if YYSTACK_USE_ALLOCA
400 # define YYSTACK_ALLOC __builtin_alloca
401 # elif defined __BUILTIN_VA_ARG_INCR
402 # include <alloca.h> /* INFRINGES ON USER NAME SPACE */
404 # define YYSTACK_ALLOC __alloca
405 # elif defined _MSC_VER
406 # include <malloc.h> /* INFRINGES ON USER NAME SPACE */
407 # define alloca _alloca
409 # define YYSTACK_ALLOC alloca
410 # if ! defined _ALLOCA_H && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \
411 || defined __cplusplus || defined _MSC_VER)
412 # include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
421 # ifdef YYSTACK_ALLOC
422 /* Pacify GCC's `empty if-body' warning. */
423 # define YYSTACK_FREE(Ptr) do { /* empty */; } while (YYID (0))
424 # ifndef YYSTACK_ALLOC_MAXIMUM
425 /* The OS might guarantee only one guard page at the bottom of the stack,
426 and a page size can be as small as 4096 bytes. So we cannot safely
427 invoke alloca (N) if N exceeds 4096. Use a slightly smaller number
428 to allow for a few compiler-allocated temporary stack slots. */
429 # define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2006 */
432 # define YYSTACK_ALLOC YYMALLOC
433 # define YYSTACK_FREE YYFREE
434 # ifndef YYSTACK_ALLOC_MAXIMUM
435 # define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM
437 # if (defined __cplusplus && ! defined _STDLIB_H \
438 && ! ((defined YYMALLOC || defined malloc) \
439 && (defined YYFREE || defined free)))
440 # include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
446 # define YYMALLOC malloc
447 # if ! defined malloc && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \
448 || defined __cplusplus || defined _MSC_VER)
449 void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */
454 # if ! defined free && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \
455 || defined __cplusplus || defined _MSC_VER)
456 void free (void *); /* INFRINGES ON USER NAME SPACE */
460 #endif /* ! defined yyoverflow || YYERROR_VERBOSE */
463 #if (! defined yyoverflow \
464 && (! defined __cplusplus \
465 || (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL)))
467 /* A type that is properly aligned for any stack member. */
474 /* The size of the maximum gap between one aligned stack and the next. */
475 # define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1)
477 /* The size of an array large to enough to hold all stacks, each with
479 # define YYSTACK_BYTES(N) \
480 ((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \
481 + YYSTACK_GAP_MAXIMUM)
483 /* Copy COUNT objects from FROM to TO. The source and destination do
486 # if defined __GNUC__ && 1 < __GNUC__
487 # define YYCOPY(To, From, Count) \
488 __builtin_memcpy (To, From, (Count) * sizeof (*(From)))
490 # define YYCOPY(To, From, Count) \
494 for (yyi = 0; yyi < (Count); yyi++) \
495 (To)[yyi] = (From)[yyi]; \
501 /* Relocate STACK from its old location to the new one. The
502 local variables YYSIZE and YYSTACKSIZE give the old and new number of
503 elements in the stack, and YYPTR gives the new location of the
504 stack. Advance YYPTR to a properly aligned location for the next
506 # define YYSTACK_RELOCATE(Stack) \
509 YYSIZE_T yynewbytes; \
510 YYCOPY (&yyptr->Stack, Stack, yysize); \
511 Stack = &yyptr->Stack; \
512 yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
513 yyptr += yynewbytes / sizeof (*yyptr); \
519 /* YYFINAL -- State number of the termination state. */
521 /* YYLAST -- Last index in YYTABLE. */
524 /* YYNTOKENS -- Number of terminals. */
526 /* YYNNTS -- Number of nonterminals. */
528 /* YYNRULES -- Number of rules. */
530 /* YYNRULES -- Number of states. */
533 /* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */
535 #define YYMAXUTOK 302
537 #define YYTRANSLATE(YYX) \
538 ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
540 /* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX. */
541 static const yytype_uint8 yytranslate[] =
543 0, 2, 2, 2, 2, 2, 2, 2, 2, 2,
544 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
545 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
546 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
547 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
548 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
549 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
550 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
551 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
552 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
553 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
554 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
555 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
556 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
557 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
558 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
559 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
560 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
561 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
562 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
563 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
564 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
565 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
566 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
567 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
568 2, 2, 2, 2, 2, 2, 1, 2, 3, 4,
569 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
570 15, 16, 17, 18, 19, 20, 21, 22, 23, 24,
571 25, 26, 27, 28, 29, 30, 31, 32, 33, 34,
572 35, 36, 37, 38, 39, 40, 41, 42, 43, 44,
577 /* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in
579 static const yytype_uint8 yyprhs[] =
581 0, 0, 3, 5, 7, 10, 14, 16, 18, 25,
582 27, 30, 33, 37, 41, 46, 51, 57, 61, 66,
583 71, 77, 80, 84, 88, 90, 92, 94, 95, 97,
584 99, 103, 105, 107, 111, 112, 114, 116, 120, 122
587 /* YYRHS -- A `-1'-separated list of the rules' RHS. */
588 static const yytype_int8 yyrhs[] =
590 49, 0, -1, 50, -1, 51, -1, 50, 51, -1,
591 52, 19, 58, -1, 62, -1, 53, -1, 10, 9,
592 11, 9, 12, 9, -1, 54, -1, 9, 54, -1,
593 54, 9, -1, 9, 54, 9, -1, 17, 55, 18,
594 -1, 9, 17, 55, 18, -1, 17, 55, 18, 9,
595 -1, 9, 17, 55, 18, 9, -1, 13, 55, 14,
596 -1, 9, 13, 55, 14, -1, 13, 55, 14, 9,
597 -1, 9, 13, 55, 14, 9, -1, 15, 3, -1,
598 9, 15, 3, -1, 9, 8, 3, -1, 6, -1,
599 4, -1, 5, -1, -1, 56, -1, 9, -1, 56,
600 57, 9, -1, 20, -1, 16, -1, 59, 7, 61,
601 -1, -1, 60, -1, 61, -1, 60, 20, 61, -1,
605 /* YYRLINE[YYN] -- source line where rule number YYN was defined. */
606 static const yytype_uint16 yyrline[] =
608 0, 139, 139, 142, 147, 152, 159, 161, 166, 168,
609 170, 172, 174, 176, 178, 180, 182, 185, 188, 191,
610 194, 197, 200, 205, 210, 212, 214, 219, 220, 224,
611 226, 230, 232, 236, 241, 242, 246, 248, 252, 259
615 #if YYDEBUG || YYERROR_VERBOSE || YYTOKEN_TABLE
616 /* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
617 First, the terminals, then, starting at YYNTOKENS, nonterminals. */
618 static const char *const yytname[] =
620 "$end", "error", "$undefined", "LST_SIMPLEID", "LST_LOGICALOP",
621 "LST_EQOP", "LST_SIMPLEOP", "LST_MAPSYM", "LST_FIELDMAPSYM",
622 "LST_MARKERSYM", "LST_ifTOKEN", "LST_thenTOKEN", "LST_elseTOKEN",
623 "LST_LBRACKET", "LST_RBRACKET", "LST_SELECTSYM", "LST_SEPSYM",
624 "LST_OPENSYM", "LST_CLOSESYM", "LST_COLON", "LST_COMMA", "LST_EOL",
625 "LST_COMMENTSYM", "LST_WHITESPACE", "LST_QUANTIFIERSYM",
626 "LST_EQUATIONSYM", "LST_EQSEPSYM", "LST_COMPOSESYM", "LST_LPAR",
627 "LST_RPAR", "LST_assertsTOKEN", "LST_assumesTOKEN", "LST_byTOKEN",
628 "LST_convertsTOKEN", "LST_enumerationTOKEN", "LST_equationsTOKEN",
629 "LST_exemptingTOKEN", "LST_forTOKEN", "LST_generatedTOKEN",
630 "LST_impliesTOKEN", "LST_includesTOKEN", "LST_introducesTOKEN",
631 "LST_ofTOKEN", "LST_partitionedTOKEN", "LST_traitTOKEN",
632 "LST_tupleTOKEN", "LST_unionTOKEN", "LST_BADTOKEN", "$accept", "top",
633 "operatorList", "operator", "name", "opForm", "anyOp", "middle",
634 "placeList", "separator", "signature", "domain", "sortList", "sortId",
640 /* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to
642 static const yytype_uint16 yytoknum[] =
644 0, 256, 257, 258, 259, 260, 261, 262, 263, 264,
645 265, 266, 267, 268, 269, 270, 271, 272, 273, 274,
646 275, 276, 277, 278, 279, 280, 281, 282, 283, 284,
647 285, 286, 287, 288, 289, 290, 291, 292, 293, 294,
648 295, 296, 297, 298, 299, 300, 301, 302
652 /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */
653 static const yytype_uint8 yyr1[] =
655 0, 48, 49, 50, 50, 51, 52, 52, 53, 53,
656 53, 53, 53, 53, 53, 53, 53, 53, 53, 53,
657 53, 53, 53, 53, 54, 54, 54, 55, 55, 56,
658 56, 57, 57, 58, 59, 59, 60, 60, 61, 62
661 /* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */
662 static const yytype_uint8 yyr2[] =
664 0, 2, 1, 1, 2, 3, 1, 1, 6, 1,
665 2, 2, 3, 3, 4, 4, 5, 3, 4, 4,
666 5, 2, 3, 3, 1, 1, 1, 0, 1, 1,
667 3, 1, 1, 3, 0, 1, 1, 3, 1, 1
670 /* YYDEFACT[STATE-NAME] -- Default rule to reduce with in state
671 STATE-NUM when YYTABLE doesn't specify something else to do. Zero
672 means the default is an error. */
673 static const yytype_uint8 yydefact[] =
675 0, 39, 25, 26, 24, 0, 0, 27, 0, 27,
676 0, 2, 3, 0, 7, 9, 6, 0, 27, 0,
677 27, 10, 0, 29, 0, 28, 21, 0, 1, 4,
678 34, 11, 23, 0, 22, 0, 12, 0, 17, 32,
679 31, 0, 13, 38, 5, 0, 35, 36, 18, 14,
680 0, 19, 30, 15, 0, 0, 20, 16, 0, 33,
684 /* YYDEFGOTO[NTERM-NUM]. */
685 static const yytype_int8 yydefgoto[] =
687 -1, 10, 11, 12, 13, 14, 15, 24, 25, 41,
691 /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
693 #define YYPACT_NINF -34
694 static const yytype_int8 yypact[] =
696 -3, -34, -34, -34, -34, 11, -4, 2, 10, 2,
697 23, -3, -34, 6, -34, 18, -34, 26, 2, 27,
698 2, 22, 21, -34, 19, -12, -34, 16, -34, -34,
699 32, -34, -34, 24, -34, 25, -34, 28, 30, -34,
700 -34, 31, 33, -34, -34, 29, 34, -34, 35, 36,
701 37, -34, -34, -34, 32, 32, -34, -34, 38, -34,
705 /* YYPGOTO[NTERM-NUM]. */
706 static const yytype_int8 yypgoto[] =
708 -34, -34, -34, 39, -34, -34, 41, 0, -34, -34,
709 -34, -34, -34, -33, -34
712 /* YYTABLE[YYPACT[STATE-NUM]]. What to do in state STATE-NUM. If
713 positive, shift that token. If negative, reduce the rule which
714 number is the opposite. If zero, do what YYDEFACT says.
715 If YYTABLE_NINF, syntax error. */
716 #define YYTABLE_NINF -1
717 static const yytype_uint8 yytable[] =
719 1, 2, 3, 4, 39, 22, 5, 6, 40, 27,
720 7, 23, 8, 26, 9, 2, 3, 4, 33, 17,
721 35, 59, 60, 28, 18, 30, 19, 31, 20, 32,
722 34, 36, 37, 38, 42, 43, 54, 50, 48, 51,
723 52, 0, 53, 49, 56, 57, 21, 61, 0, 58,
727 static const yytype_int8 yycheck[] =
729 3, 4, 5, 6, 16, 9, 9, 10, 20, 9,
730 13, 9, 15, 3, 17, 4, 5, 6, 18, 8,
731 20, 54, 55, 0, 13, 19, 15, 9, 17, 3,
732 3, 9, 11, 14, 18, 3, 7, 9, 14, 9,
733 9, -1, 9, 18, 9, 9, 5, 9, -1, 12,
737 /* YYSTOS[STATE-NUM] -- The (internal number of the) accessing
738 symbol of state STATE-NUM. */
739 static const yytype_uint8 yystos[] =
741 0, 3, 4, 5, 6, 9, 10, 13, 15, 17,
742 49, 50, 51, 52, 53, 54, 62, 8, 13, 15,
743 17, 54, 9, 9, 55, 56, 3, 55, 0, 51,
744 19, 9, 3, 55, 3, 55, 9, 11, 14, 16,
745 20, 57, 18, 3, 58, 59, 60, 61, 14, 18,
746 9, 9, 9, 9, 7, 20, 9, 9, 12, 61,
750 #define yyerrok (yyerrstatus = 0)
751 #define yyclearin (yychar = YYEMPTY)
755 #define YYACCEPT goto yyacceptlab
756 #define YYABORT goto yyabortlab
757 #define YYERROR goto yyerrorlab
760 /* Like YYERROR except do call yyerror. This remains here temporarily
761 to ease the transition to the new meaning of YYERROR, for GCC.
762 Once GCC version 2 has supplanted version 1, this can go. */
764 #define YYFAIL goto yyerrlab
766 #define YYRECOVERING() (!!yyerrstatus)
768 #define YYBACKUP(Token, Value) \
770 if (yychar == YYEMPTY && yylen == 1) \
774 yytoken = YYTRANSLATE (yychar); \
780 yyerror (YY_("syntax error: cannot back up")); \
787 #define YYERRCODE 256
790 /* YYLLOC_DEFAULT -- Set CURRENT to span from RHS[1] to RHS[N].
791 If N is 0, then set CURRENT to the empty location which ends
792 the previous symbol: RHS[0] (always defined). */
794 #define YYRHSLOC(Rhs, K) ((Rhs)[K])
795 #ifndef YYLLOC_DEFAULT
796 # define YYLLOC_DEFAULT(Current, Rhs, N) \
800 (Current).first_line = YYRHSLOC (Rhs, 1).first_line; \
801 (Current).first_column = YYRHSLOC (Rhs, 1).first_column; \
802 (Current).last_line = YYRHSLOC (Rhs, N).last_line; \
803 (Current).last_column = YYRHSLOC (Rhs, N).last_column; \
807 (Current).first_line = (Current).last_line = \
808 YYRHSLOC (Rhs, 0).last_line; \
809 (Current).first_column = (Current).last_column = \
810 YYRHSLOC (Rhs, 0).last_column; \
816 /* YY_LOCATION_PRINT -- Print the location on the stream.
817 This macro was not mandated originally: define only if we know
818 we won't break user code: when these are the locations we know. */
820 #ifndef YY_LOCATION_PRINT
821 # if YYLTYPE_IS_TRIVIAL
822 # define YY_LOCATION_PRINT(File, Loc) \
823 fprintf (File, "%d.%d-%d.%d", \
824 (Loc).first_line, (Loc).first_column, \
825 (Loc).last_line, (Loc).last_column)
827 # define YY_LOCATION_PRINT(File, Loc) ((void) 0)
832 /* YYLEX -- calling `yylex' with the right arguments. */
835 # define YYLEX yylex (&yylval, YYLEX_PARAM)
837 # define YYLEX yylex (&yylval)
840 /* Enable debugging if requested. */
844 # include <stdio.h> /* INFRINGES ON USER NAME SPACE */
845 # define YYFPRINTF fprintf
848 # define YYDPRINTF(Args) \
854 # define YY_SYMBOL_PRINT(Title, Type, Value, Location) \
858 YYFPRINTF (stderr, "%s ", Title); \
859 yy_symbol_print (stderr, \
861 YYFPRINTF (stderr, "\n"); \
866 /*--------------------------------.
867 | Print this symbol on YYOUTPUT. |
868 `--------------------------------*/
871 #if (defined __STDC__ || defined __C99__FUNC__ \
872 || defined __cplusplus || defined _MSC_VER)
874 yy_symbol_value_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep)
877 yy_symbol_value_print (yyoutput, yytype, yyvaluep)
880 YYSTYPE const * const yyvaluep;
886 if (yytype < YYNTOKENS)
887 YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep);
899 /*--------------------------------.
900 | Print this symbol on YYOUTPUT. |
901 `--------------------------------*/
903 #if (defined __STDC__ || defined __C99__FUNC__ \
904 || defined __cplusplus || defined _MSC_VER)
906 yy_symbol_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep)
909 yy_symbol_print (yyoutput, yytype, yyvaluep)
912 YYSTYPE const * const yyvaluep;
915 if (yytype < YYNTOKENS)
916 YYFPRINTF (yyoutput, "token %s (", yytname[yytype]);
918 YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]);
920 yy_symbol_value_print (yyoutput, yytype, yyvaluep);
921 YYFPRINTF (yyoutput, ")");
924 /*------------------------------------------------------------------.
925 | yy_stack_print -- Print the state stack from its BOTTOM up to its |
927 `------------------------------------------------------------------*/
929 #if (defined __STDC__ || defined __C99__FUNC__ \
930 || defined __cplusplus || defined _MSC_VER)
932 yy_stack_print (yytype_int16 *bottom, yytype_int16 *top)
935 yy_stack_print (bottom, top)
936 yytype_int16 *bottom;
940 YYFPRINTF (stderr, "Stack now");
941 for (; bottom <= top; ++bottom)
942 YYFPRINTF (stderr, " %d", *bottom);
943 YYFPRINTF (stderr, "\n");
946 # define YY_STACK_PRINT(Bottom, Top) \
949 yy_stack_print ((Bottom), (Top)); \
953 /*------------------------------------------------.
954 | Report that the YYRULE is going to be reduced. |
955 `------------------------------------------------*/
957 #if (defined __STDC__ || defined __C99__FUNC__ \
958 || defined __cplusplus || defined _MSC_VER)
960 yy_reduce_print (YYSTYPE *yyvsp, int yyrule)
963 yy_reduce_print (yyvsp, yyrule)
968 int yynrhs = yyr2[yyrule];
970 unsigned long int yylno = yyrline[yyrule];
971 YYFPRINTF (stderr, "Reducing stack by rule %d (line %lu):\n",
973 /* The symbols being reduced. */
974 for (yyi = 0; yyi < yynrhs; yyi++)
976 fprintf (stderr, " $%d = ", yyi + 1);
977 yy_symbol_print (stderr, yyrhs[yyprhs[yyrule] + yyi],
978 &(yyvsp[(yyi + 1) - (yynrhs)])
980 fprintf (stderr, "\n");
984 # define YY_REDUCE_PRINT(Rule) \
987 yy_reduce_print (yyvsp, Rule); \
990 /* Nonzero means print parse trace. It is left uninitialized so that
991 multiple parsers can coexist. */
994 # define YYDPRINTF(Args)
995 # define YY_SYMBOL_PRINT(Title, Type, Value, Location)
996 # define YY_STACK_PRINT(Bottom, Top)
997 # define YY_REDUCE_PRINT(Rule)
998 #endif /* !YYDEBUG */
1001 /* YYINITDEPTH -- initial size of the parser's stacks. */
1003 # define YYINITDEPTH 200
1006 /* YYMAXDEPTH -- maximum size the stacks can grow to (effective only
1007 if the built-in stack extension method is used).
1009 Do not make this value too large; the results are undefined if
1010 YYSTACK_ALLOC_MAXIMUM < YYSTACK_BYTES (YYMAXDEPTH)
1011 evaluated with infinite-precision integer arithmetic. */
1014 # define YYMAXDEPTH 10000
1022 # if defined __GLIBC__ && defined _STRING_H
1023 # define yystrlen strlen
1025 /* Return the length of YYSTR. */
1026 #if (defined __STDC__ || defined __C99__FUNC__ \
1027 || defined __cplusplus || defined _MSC_VER)
1029 yystrlen (const char *yystr)
1037 for (yylen = 0; yystr[yylen]; yylen++)
1045 # if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE
1046 # define yystpcpy stpcpy
1048 /* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in
1050 #if (defined __STDC__ || defined __C99__FUNC__ \
1051 || defined __cplusplus || defined _MSC_VER)
1053 yystpcpy (char *yydest, const char *yysrc)
1056 yystpcpy (yydest, yysrc)
1062 const char *yys = yysrc;
1064 while ((*yyd++ = *yys++) != '\0')
1073 /* Copy to YYRES the contents of YYSTR after stripping away unnecessary
1074 quotes and backslashes, so that it's suitable for yyerror. The
1075 heuristic is that double-quoting is unnecessary unless the string
1076 contains an apostrophe, a comma, or backslash (other than
1077 backslash-backslash). YYSTR is taken from yytname. If YYRES is
1078 null, do not copy; instead, return the length of what the result
1081 yytnamerr (char *yyres, const char *yystr)
1086 char const *yyp = yystr;
1093 goto do_not_strip_quotes;
1097 goto do_not_strip_quotes;
1110 do_not_strip_quotes: ;
1114 return yystrlen (yystr);
1116 return yystpcpy (yyres, yystr) - yyres;
1120 /* Copy into YYRESULT an error message about the unexpected token
1121 YYCHAR while in state YYSTATE. Return the number of bytes copied,
1122 including the terminating null byte. If YYRESULT is null, do not
1123 copy anything; just return the number of bytes that would be
1124 copied. As a special case, return 0 if an ordinary "syntax error"
1125 message will do. Return YYSIZE_MAXIMUM if overflow occurs during
1126 size calculation. */
1128 yysyntax_error (char *yyresult, int yystate, int yychar)
1130 int yyn = yypact[yystate];
1132 if (! (YYPACT_NINF < yyn && yyn <= YYLAST))
1136 int yytype = YYTRANSLATE (yychar);
1137 YYSIZE_T yysize0 = yytnamerr (0, yytname[yytype]);
1138 YYSIZE_T yysize = yysize0;
1140 int yysize_overflow = 0;
1141 enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 };
1142 char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
1146 /* This is so xgettext sees the translatable formats that are
1147 constructed on the fly. */
1148 YY_("syntax error, unexpected %s");
1149 YY_("syntax error, unexpected %s, expecting %s");
1150 YY_("syntax error, unexpected %s, expecting %s or %s");
1151 YY_("syntax error, unexpected %s, expecting %s or %s or %s");
1152 YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s");
1156 static char const yyunexpected[] = "syntax error, unexpected %s";
1157 static char const yyexpecting[] = ", expecting %s";
1158 static char const yyor[] = " or %s";
1159 char yyformat[sizeof yyunexpected
1160 + sizeof yyexpecting - 1
1161 + ((YYERROR_VERBOSE_ARGS_MAXIMUM - 2)
1162 * (sizeof yyor - 1))];
1163 char const *yyprefix = yyexpecting;
1165 /* Start YYX at -YYN if negative to avoid negative indexes in
1167 int yyxbegin = yyn < 0 ? -yyn : 0;
1169 /* Stay within bounds of both yycheck and yytname. */
1170 int yychecklim = YYLAST - yyn + 1;
1171 int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS;
1174 yyarg[0] = yytname[yytype];
1175 yyfmt = yystpcpy (yyformat, yyunexpected);
1177 for (yyx = yyxbegin; yyx < yyxend; ++yyx)
1178 if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR)
1180 if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM)
1184 yyformat[sizeof yyunexpected - 1] = '\0';
1187 yyarg[yycount++] = yytname[yyx];
1188 yysize1 = yysize + yytnamerr (0, yytname[yyx]);
1189 yysize_overflow |= (yysize1 < yysize);
1191 yyfmt = yystpcpy (yyfmt, yyprefix);
1195 yyf = YY_(yyformat);
1196 yysize1 = yysize + yystrlen (yyf);
1197 yysize_overflow |= (yysize1 < yysize);
1200 if (yysize_overflow)
1201 return YYSIZE_MAXIMUM;
1205 /* Avoid sprintf, as that infringes on the user's name space.
1206 Don't have undefined behavior even if the translation
1207 produced a string with the wrong number of "%s"s. */
1208 char *yyp = yyresult;
1210 while ((*yyp = *yyf) != '\0')
1212 if (*yyp == '%' && yyf[1] == 's' && yyi < yycount)
1214 yyp += yytnamerr (yyp, yyarg[yyi++]);
1227 #endif /* YYERROR_VERBOSE */
1230 /*-----------------------------------------------.
1231 | Release the memory associated to this symbol. |
1232 `-----------------------------------------------*/
1235 #if (defined __STDC__ || defined __C99__FUNC__ \
1236 || defined __cplusplus || defined _MSC_VER)
1238 yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep)
1241 yydestruct (yymsg, yytype, yyvaluep)
1251 YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp);
1262 /* Prevent warnings from -Wmissing-prototypes. */
1264 #ifdef YYPARSE_PARAM
1265 #if defined __STDC__ || defined __cplusplus
1266 int yyparse (void *YYPARSE_PARAM);
1270 #else /* ! YYPARSE_PARAM */
1271 #if defined __STDC__ || defined __cplusplus
1276 #endif /* ! YYPARSE_PARAM */
1287 #ifdef YYPARSE_PARAM
1288 #if (defined __STDC__ || defined __C99__FUNC__ \
1289 || defined __cplusplus || defined _MSC_VER)
1291 yyparse (void *YYPARSE_PARAM)
1294 yyparse (YYPARSE_PARAM)
1295 void *YYPARSE_PARAM;
1297 #else /* ! YYPARSE_PARAM */
1298 #if (defined __STDC__ || defined __C99__FUNC__ \
1299 || defined __cplusplus || defined _MSC_VER)
1309 /* The look-ahead symbol. */
1312 /* The semantic value of the look-ahead symbol. */
1315 /* Number of syntax errors so far. */
1321 /* Number of tokens to shift before error messages enabled. */
1323 /* Look-ahead token as an internal (translated) token number. */
1326 /* Buffer for error messages, and its allocated size. */
1328 char *yymsg = yymsgbuf;
1329 YYSIZE_T yymsg_alloc = sizeof yymsgbuf;
1332 /* Three stacks and their tools:
1333 `yyss': related to states,
1334 `yyvs': related to semantic values,
1335 `yyls': related to locations.
1337 Refer to the stacks thru separate pointers, to allow yyoverflow
1338 to reallocate them elsewhere. */
1340 /* The state stack. */
1341 yytype_int16 yyssa[YYINITDEPTH];
1342 yytype_int16 *yyss = yyssa;
1343 yytype_int16 *yyssp;
1345 /* The semantic value stack. */
1346 YYSTYPE yyvsa[YYINITDEPTH];
1347 YYSTYPE *yyvs = yyvsa;
1352 #define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N))
1354 YYSIZE_T yystacksize = YYINITDEPTH;
1356 /* The variables used to return semantic value and location from the
1361 /* The number of symbols on the RHS of the reduced rule.
1362 Keep to zero when no symbol should be popped. */
1365 YYDPRINTF ((stderr, "Starting parse\n"));
1370 yychar = YYEMPTY; /* Cause a token to be read. */
1372 /* Initialize stack pointers.
1373 Waste one element of value and location stack
1374 so that they stay on the same level as the state stack.
1375 The wasted elements are never initialized. */
1382 /*------------------------------------------------------------.
1383 | yynewstate -- Push a new state, which is found in yystate. |
1384 `------------------------------------------------------------*/
1386 /* In all cases, when you get here, the value and location stacks
1387 have just been pushed. So pushing a state here evens the stacks. */
1393 if (yyss + yystacksize - 1 <= yyssp)
1395 /* Get the current used size of the three stacks, in elements. */
1396 YYSIZE_T yysize = yyssp - yyss + 1;
1400 /* Give user a chance to reallocate the stack. Use copies of
1401 these so that the &'s don't force the real ones into
1403 YYSTYPE *yyvs1 = yyvs;
1404 yytype_int16 *yyss1 = yyss;
1407 /* Each stack pointer address is followed by the size of the
1408 data in use in that stack, in bytes. This used to be a
1409 conditional around just the two extra args, but that might
1410 be undefined if yyoverflow is a macro. */
1411 yyoverflow (YY_("memory exhausted"),
1412 &yyss1, yysize * sizeof (*yyssp),
1413 &yyvs1, yysize * sizeof (*yyvsp),
1420 #else /* no yyoverflow */
1421 # ifndef YYSTACK_RELOCATE
1422 goto yyexhaustedlab;
1424 /* Extend the stack our own way. */
1425 if (YYMAXDEPTH <= yystacksize)
1426 goto yyexhaustedlab;
1428 if (YYMAXDEPTH < yystacksize)
1429 yystacksize = YYMAXDEPTH;
1432 yytype_int16 *yyss1 = yyss;
1433 union yyalloc *yyptr =
1434 (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize));
1436 goto yyexhaustedlab;
1437 YYSTACK_RELOCATE (yyss);
1438 YYSTACK_RELOCATE (yyvs);
1440 # undef YYSTACK_RELOCATE
1442 YYSTACK_FREE (yyss1);
1445 #endif /* no yyoverflow */
1447 yyssp = yyss + yysize - 1;
1448 yyvsp = yyvs + yysize - 1;
1451 YYDPRINTF ((stderr, "Stack size increased to %lu\n",
1452 (unsigned long int) yystacksize));
1454 if (yyss + yystacksize - 1 <= yyssp)
1458 YYDPRINTF ((stderr, "Entering state %d\n", yystate));
1467 /* Do appropriate processing given the current state. Read a
1468 look-ahead token if we need one and don't already have one. */
1470 /* First try to decide what to do without reference to look-ahead token. */
1471 yyn = yypact[yystate];
1472 if (yyn == YYPACT_NINF)
1475 /* Not known => get a look-ahead token if don't already have one. */
1477 /* YYCHAR is either YYEMPTY or YYEOF or a valid look-ahead symbol. */
1478 if (yychar == YYEMPTY)
1480 YYDPRINTF ((stderr, "Reading a token: "));
1484 if (yychar <= YYEOF)
1486 yychar = yytoken = YYEOF;
1487 YYDPRINTF ((stderr, "Now at end of input.\n"));
1491 yytoken = YYTRANSLATE (yychar);
1492 YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc);
1495 /* If the proper action on seeing token YYTOKEN is to reduce or to
1496 detect an error, take that action. */
1498 if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken)
1503 if (yyn == 0 || yyn == YYTABLE_NINF)
1512 /* Count tokens shifted since error; after three, turn off error
1517 /* Shift the look-ahead token. */
1518 YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc);
1520 /* Discard the shifted token unless it is eof. */
1521 if (yychar != YYEOF)
1530 /*-----------------------------------------------------------.
1531 | yydefault -- do the default action for the current state. |
1532 `-----------------------------------------------------------*/
1534 yyn = yydefact[yystate];
1540 /*-----------------------------.
1541 | yyreduce -- Do a reduction. |
1542 `-----------------------------*/
1544 /* yyn is the number of a rule to reduce with. */
1547 /* If YYLEN is nonzero, implement the default value of the action:
1550 Otherwise, the following line sets YYVAL to garbage.
1551 This behavior is undocumented and Bison
1552 users should not rely upon it. Assigning to YYVAL
1553 unconditionally makes the parser a bit smaller, and it avoids a
1554 GCC warning that YYVAL may be used uninitialized. */
1555 yyval = yyvsp[1-yylen];
1558 YY_REDUCE_PRINT (yyn);
1563 { lslOpList_free ((yyvsp[(1) - (1)].operators)); ;}
1568 { lslOpList x = lslOpList_new ();
1569 g_importedlslOp = (yyvsp[(1) - (1)].operator);
1570 lslOpList_add (x, (yyvsp[(1) - (1)].operator));
1571 (yyval.operators) = x; ;}
1576 { lslOpList_add ((yyvsp[(1) - (2)].operators), (yyvsp[(2) - (2)].operator));
1577 (yyval.operators) = (yyvsp[(1) - (2)].operators); ;}
1582 { (yyval.operator) = makelslOpNode ((yyvsp[(1) - (3)].name), (yyvsp[(3) - (3)].signature)); ;}
1587 { (yyval.name) = makeNameNodeId ((yyvsp[(1) - (1)].ltok)); ;}
1592 { (yyval.name) = makeNameNodeForm ((yyvsp[(1) - (1)].opform)); ;}
1597 { (yyval.opform) = makeOpFormNode ((yyvsp[(1) - (6)].ltok), OPF_IF, opFormUnion_createMiddle (0), ltoken_undefined); ;}
1602 { (yyval.opform) = makeOpFormNode ((yyvsp[(1) - (1)].ltok), OPF_ANYOP, opFormUnion_createAnyOp ((yyvsp[(1) - (1)].ltok)), ltoken_undefined); ;}
1607 { (yyval.opform) = makeOpFormNode ((yyvsp[(1) - (2)].ltok), OPF_MANYOP, opFormUnion_createAnyOp ((yyvsp[(2) - (2)].ltok)), ltoken_undefined); ;}
1612 { (yyval.opform) = makeOpFormNode ((yyvsp[(1) - (2)].ltok), OPF_ANYOPM, opFormUnion_createAnyOp ((yyvsp[(1) - (2)].ltok)), ltoken_undefined); ;}
1617 { (yyval.opform) = makeOpFormNode ((yyvsp[(1) - (3)].ltok), OPF_MANYOPM, opFormUnion_createAnyOp ((yyvsp[(2) - (3)].ltok)), ltoken_undefined); ;}
1622 { (yyval.opform) = makeOpFormNode ((yyvsp[(1) - (3)].ltok), OPF_MIDDLE, opFormUnion_createMiddle ((yyvsp[(2) - (3)].count)), (yyvsp[(3) - (3)].ltok)); ;}
1627 { (yyval.opform) = makeOpFormNode ((yyvsp[(2) - (4)].ltok), OPF_MMIDDLE, opFormUnion_createMiddle ((yyvsp[(3) - (4)].count)), (yyvsp[(4) - (4)].ltok)); ;}
1632 { (yyval.opform) = makeOpFormNode ((yyvsp[(1) - (4)].ltok), OPF_MIDDLEM, opFormUnion_createMiddle ((yyvsp[(2) - (4)].count)), (yyvsp[(3) - (4)].ltok)); ;}
1637 { (yyval.opform) = makeOpFormNode ((yyvsp[(2) - (5)].ltok), OPF_MMIDDLEM,
1638 opFormUnion_createMiddle ((yyvsp[(3) - (5)].count)), (yyvsp[(4) - (5)].ltok)); ;}
1643 { (yyval.opform) = makeOpFormNode ((yyvsp[(1) - (3)].ltok), OPF_BMIDDLE,
1644 opFormUnion_createMiddle ((yyvsp[(2) - (3)].count)), (yyvsp[(3) - (3)].ltok)); ;}
1649 { (yyval.opform) = makeOpFormNode ((yyvsp[(2) - (4)].ltok), OPF_BMMIDDLE,
1650 opFormUnion_createMiddle ((yyvsp[(3) - (4)].count)), (yyvsp[(4) - (4)].ltok)); ;}
1655 { (yyval.opform) = makeOpFormNode ((yyvsp[(1) - (4)].ltok), OPF_BMIDDLEM,
1656 opFormUnion_createMiddle ((yyvsp[(2) - (4)].count)), (yyvsp[(3) - (4)].ltok)); ;}
1661 { (yyval.opform) = makeOpFormNode ((yyvsp[(2) - (5)].ltok), OPF_BMMIDDLEM,
1662 opFormUnion_createMiddle ((yyvsp[(3) - (5)].count)), (yyvsp[(4) - (5)].ltok)); ;}
1667 { (yyval.opform) = makeOpFormNode ((yyvsp[(1) - (2)].ltok), OPF_SELECT,
1668 opFormUnion_createAnyOp ((yyvsp[(2) - (2)].ltok)), ltoken_undefined); ;}
1673 { (yyval.opform) = makeOpFormNode ((yyvsp[(1) - (3)].ltok), OPF_MSELECT,
1674 opFormUnion_createAnyOp ((yyvsp[(3) - (3)].ltok)), ltoken_undefined); ;}
1679 { (yyval.opform) = makeOpFormNode ((yyvsp[(1) - (3)].ltok), OPF_MMAP,
1680 opFormUnion_createAnyOp ((yyvsp[(3) - (3)].ltok)), ltoken_undefined); ;}
1685 { (yyval.ltok) = (yyvsp[(1) - (1)].ltok); ;}
1690 { (yyval.ltok) = (yyvsp[(1) - (1)].ltok); ;}
1695 { (yyval.ltok) = (yyvsp[(1) - (1)].ltok); ;}
1700 { (yyval.count) = 0; ;}
1705 { (yyval.count) = (yyvsp[(1) - (1)].count); ;}
1710 { (yyval.count) = 1; ;}
1715 { (yyval.count) = (yyvsp[(1) - (3)].count) + 1; ;}
1720 { (yyval.ltok) = (yyvsp[(1) - (1)].ltok); ;}
1725 { (yyval.ltok) = (yyvsp[(1) - (1)].ltok); ;}
1730 { (yyval.signature) = makesigNode ((yyvsp[(2) - (3)].ltok), (yyvsp[(1) - (3)].ltokenList), (yyvsp[(3) - (3)].ltok)); ;}
1735 { (yyval.ltokenList) = ltokenList_new (); ;}
1740 { (yyval.ltokenList) = (yyvsp[(1) - (1)].ltokenList); ;}
1745 { (yyval.ltokenList) = ltokenList_singleton ((yyvsp[(1) - (1)].ltok)); ;}
1750 { (yyval.ltokenList) = ltokenList_push ((yyvsp[(1) - (3)].ltokenList), (yyvsp[(3) - (3)].ltok)); ;}
1756 (yyval.ltok) = (yyvsp[(1) - (1)].ltok);
1757 ltoken_setText ((yyval.ltok), processTraitSortId (ltoken_getText ((yyvsp[(1) - (1)].ltok))));
1763 { (yyval.ltok) = (yyvsp[(1) - (1)].ltok); ;}
1767 /* Line 1267 of yacc.c. */
1771 YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc);
1775 YY_STACK_PRINT (yyss, yyssp);
1780 /* Now `shift' the result of the reduction. Determine what state
1781 that goes to, based on the state we popped back to and the rule
1782 number reduced by. */
1786 yystate = yypgoto[yyn - YYNTOKENS] + *yyssp;
1787 if (0 <= yystate && yystate <= YYLAST && yycheck[yystate] == *yyssp)
1788 yystate = yytable[yystate];
1790 yystate = yydefgoto[yyn - YYNTOKENS];
1795 /*------------------------------------.
1796 | yyerrlab -- here on detecting error |
1797 `------------------------------------*/
1799 /* If not already recovering from an error, report this error. */
1803 #if ! YYERROR_VERBOSE
1804 yyerror (YY_("syntax error"));
1807 YYSIZE_T yysize = yysyntax_error (0, yystate, yychar);
1808 if (yymsg_alloc < yysize && yymsg_alloc < YYSTACK_ALLOC_MAXIMUM)
1810 YYSIZE_T yyalloc = 2 * yysize;
1811 if (! (yysize <= yyalloc && yyalloc <= YYSTACK_ALLOC_MAXIMUM))
1812 yyalloc = YYSTACK_ALLOC_MAXIMUM;
1813 if (yymsg != yymsgbuf)
1814 YYSTACK_FREE (yymsg);
1815 yymsg = (char *) YYSTACK_ALLOC (yyalloc);
1817 yymsg_alloc = yyalloc;
1821 yymsg_alloc = sizeof yymsgbuf;
1825 if (0 < yysize && yysize <= yymsg_alloc)
1827 (void) yysyntax_error (yymsg, yystate, yychar);
1832 yyerror (YY_("syntax error"));
1834 goto yyexhaustedlab;
1842 if (yyerrstatus == 3)
1844 /* If just tried and failed to reuse look-ahead token after an
1845 error, discard it. */
1847 if (yychar <= YYEOF)
1849 /* Return failure if at end of input. */
1850 if (yychar == YYEOF)
1855 yydestruct ("Error: discarding",
1861 /* Else will try to reuse look-ahead token after shifting the error
1866 /*---------------------------------------------------.
1867 | yyerrorlab -- error raised explicitly by YYERROR. |
1868 `---------------------------------------------------*/
1871 /* Pacify compilers like GCC when the user code never invokes
1872 YYERROR and the label yyerrorlab therefore never appears in user
1874 if (/*CONSTCOND*/ 0)
1877 /* Do not reclaim the symbols of the rule which action triggered
1881 YY_STACK_PRINT (yyss, yyssp);
1886 /*-------------------------------------------------------------.
1887 | yyerrlab1 -- common code for both syntax error and YYERROR. |
1888 `-------------------------------------------------------------*/
1890 yyerrstatus = 3; /* Each real token shifted decrements this. */
1894 yyn = yypact[yystate];
1895 if (yyn != YYPACT_NINF)
1898 if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR)
1906 /* Pop the current state because it cannot handle the error token. */
1911 yydestruct ("Error: popping",
1912 yystos[yystate], yyvsp);
1915 YY_STACK_PRINT (yyss, yyssp);
1924 /* Shift the error token. */
1925 YY_SYMBOL_PRINT ("Shifting", yystos[yyn], yyvsp, yylsp);
1931 /*-------------------------------------.
1932 | yyacceptlab -- YYACCEPT comes here. |
1933 `-------------------------------------*/
1938 /*-----------------------------------.
1939 | yyabortlab -- YYABORT comes here. |
1940 `-----------------------------------*/
1946 /*-------------------------------------------------.
1947 | yyexhaustedlab -- memory exhaustion comes here. |
1948 `-------------------------------------------------*/
1950 yyerror (YY_("memory exhausted"));
1956 if (yychar != YYEOF && yychar != YYEMPTY)
1957 yydestruct ("Cleanup: discarding lookahead",
1959 /* Do not reclaim the symbols of the rule which action triggered
1960 this YYABORT or YYACCEPT. */
1962 YY_STACK_PRINT (yyss, yyssp);
1963 while (yyssp != yyss)
1965 yydestruct ("Cleanup: popping",
1966 yystos[*yyssp], yyvsp);
1971 YYSTACK_FREE (yyss);
1974 if (yymsg != yymsgbuf)
1975 YYSTACK_FREE (yymsg);
1977 /* Make sure YYID is used. */
1978 return YYID (yyresult);
1985 # include "bison.reset"
1987 extern char *yytext;
1989 void lslerror (char *s)
1992 (cstring_makeLiteral
1993 ("There has been a problem in the parser with LSL signatures. This is believed to result "
1994 "from a problem with bison v. 1.25. Please try rebuidling Splint "
1995 "using the pre-compiled grammar files by commenting out the "
1996 "BISON= line in the top-level Makefile."));
1999 static void yyprint (FILE *file, int type, YYSTYPE value)
2001 fprintf (file, " (%u:%u type: %d; text: %s) ",
2002 ltoken_getLine (value.ltok),
2003 ltoken_getCol (value.ltok),
2005 ltoken_getRawTextChars (value.ltok));
2008 extern void PrintToken (ltoken tok) {
2011 switch (ltoken_getCode (tok))
2013 case NOTTOKEN: codStr = "*** NOTTOKEN ***"; break;
2014 case LST_QUANTIFIERSYM: codStr = "QUANTIFIERSYM"; break;
2015 case LST_LOGICALOP: codStr = "LOGICALOP: "; break;
2016 case LST_SELECTSYM: codStr = "LST_SELECTSYM"; break;
2017 case LST_OPENSYM: codStr = "LST_OPENSYM"; break;
2018 case LST_SEPSYM: codStr = "SEPSYM"; break;
2019 case LST_CLOSESYM: codStr = "LST_CLOSESYM"; break;
2020 case LST_SIMPLEID: codStr = "LST_SIMPLEID"; break;
2021 case LST_MAPSYM: codStr = "MAPSYM"; break;
2022 case LST_MARKERSYM: codStr = "LST_MARKERSYM"; break;
2023 case LST_COMMENTSYM: codStr = "COMMENTSYM"; break;
2024 case LST_SIMPLEOP: codStr = "SIMPLEOP"; break;
2025 case LST_COLON: codStr = "LST_COLON"; break;
2026 case LST_COMMA: codStr = "COMMA"; break;
2027 case LST_LBRACKET: codStr = "LST_LBRACKET"; break;
2028 case LST_LPAR: codStr = "LST_LPAR"; break;
2029 case LST_RBRACKET: codStr = "LST_RBRACKET"; break;
2030 case LST_RPAR: codStr = "LST_RPAR"; break;
2031 case LST_EQOP: codStr = "LST_EQOP"; break;
2032 case LST_WHITESPACE: codStr = "WHITESPACE,"; break;
2033 case LST_EOL: codStr = "LST_EOL"; break;
2034 case LST_elseTOKEN: codStr = "elseTOKEN"; break;
2035 case LST_ifTOKEN: codStr = "ifTOKEN"; break;
2036 case LST_thenTOKEN: codStr = "thenTOKEN"; break;
2037 case LST_BADTOKEN: codStr = "*** BADTOKEN ***"; break;
2038 case LEOFTOKEN: /* can't reach LEOFTOKEN easily */
2039 codStr = "LEOFTOKEN"; break;
2041 codStr = "*** invalid token code ***";
2045 /* only used for debugging */
2046 printf ("%u:%u: Token Code (%u): %s",
2047 ltoken_getLine (tok), ltoken_getCol (tok),
2048 ltoken_getCode (tok), codStr);
2049 if (ltoken_getRawText (tok) != 0)
2051 printf (", Token String (%lu): %s\n",
2052 ltoken_getRawText (tok), ltoken_getRawTextChars (tok));
2062 ** Resets all flags in bison.head
2084 /*@=evalorderuncon@*/
2093 /*@=elseifcomplete@*/
2097 /*@=readonlytrans@*/
2100 /*@=systemunrecog@*/
2101 /*@=dependenttrans@*/
2102 /*@=unqualifiedtrans@*/
2106 /*drl added 11/27/2001*/
2109 /*drl added 12/11/2002*/