summaryrefslogtreecommitdiffstats
path: root/parser.gen.c
diff options
context:
space:
mode:
Diffstat (limited to 'parser.gen.c')
-rw-r--r--parser.gen.c2878
1 files changed, 0 insertions, 2878 deletions
diff --git a/parser.gen.c b/parser.gen.c
deleted file mode 100644
index 896eb2a3..00000000
--- a/parser.gen.c
+++ /dev/null
@@ -1,2878 +0,0 @@
-/* A Bison parser, made by GNU Bison 2.5. */
-
-/* Bison implementation for Yacc-like parsers in C
-
- Copyright (C) 1984, 1989-1990, 2000-2011 Free Software Foundation, Inc.
-
- This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation, either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>. */
-
-/* As a special exception, you may create a larger work that contains
- part or all of the Bison parser skeleton and distribute that work
- under terms of your choice, so long as that work isn't itself a
- parser generator using the skeleton or a modified version thereof
- as a parser skeleton. Alternatively, if you modify or redistribute
- the parser skeleton itself, you may (at your option) remove this
- special exception, which will cause the skeleton and the resulting
- Bison output files to be licensed under the GNU General Public
- License without this special exception.
-
- This special exception was added by the Free Software Foundation in
- version 2.2 of Bison. */
-
-/* C LALR(1) parser skeleton written by Richard Stallman, by
- simplifying the original so-called "semantic" parser. */
-
-/* All symbols defined below should begin with yy or YY, to avoid
- infringing on user name space. This should be done even for local
- variables, as they might otherwise be expanded by user macros.
- There are some unavoidable exceptions within include files to
- define necessary library symbols; they are noted "INFRINGES ON
- USER NAME SPACE" below. */
-
-/* Identify Bison output. */
-#define YYBISON 1
-
-/* Bison version. */
-#define YYBISON_VERSION "2.5"
-
-/* Skeleton name. */
-#define YYSKELETON_NAME "yacc.c"
-
-/* Pure parsers. */
-#define YYPURE 1
-
-/* Push parsers. */
-#define YYPUSH 0
-
-/* Pull parsers. */
-#define YYPULL 1
-
-/* Using locations. */
-#define YYLSP_NEEDED 1
-
-
-
-/* Copy the first part of user declarations. */
-
-/* Line 268 of yacc.c */
-#line 1 "parser.y"
-
-#include <stdio.h>
-#include <string.h>
-#include "compile.h"
-
-struct lexer_param;
-
-
-
-/* Line 268 of yacc.c */
-#line 81 "parser.gen.c"
-
-/* Enabling traces. */
-#ifndef YYDEBUG
-# define YYDEBUG 0
-#endif
-
-/* Enabling verbose error messages. */
-#ifdef YYERROR_VERBOSE
-# undef YYERROR_VERBOSE
-# define YYERROR_VERBOSE 1
-#else
-# define YYERROR_VERBOSE 1
-#endif
-
-/* Enabling the token table. */
-#ifndef YYTOKEN_TABLE
-# define YYTOKEN_TABLE 0
-#endif
-
-/* "%code requires" blocks. */
-
-/* Line 288 of yacc.c */
-#line 9 "parser.y"
-
-#include "locfile.h"
-#define YYLTYPE location
-#define YYLLOC_DEFAULT(Loc, Rhs, N) \
- do { \
- if (N) { \
- (Loc).start = YYRHSLOC(Rhs, 1).start; \
- (Loc).end = YYRHSLOC(Rhs, N).end; \
- } else { \
- (Loc).start = YYRHSLOC(Rhs, 0).end; \
- (Loc).end = YYRHSLOC(Rhs, 0).end; \
- } \
- } while (0)
-
-
-
-/* Line 288 of yacc.c */
-#line 122 "parser.gen.c"
-
-/* Tokens. */
-#ifndef YYTOKENTYPE
-# define YYTOKENTYPE
- /* Put the tokens into the symbol table, so that GDB and other debuggers
- know about them. */
- enum yytokentype {
- INVALID_CHARACTER = 258,
- IDENT = 259,
- LITERAL = 260,
- EQ = 261,
- NEQ = 262,
- DEFINEDOR = 263,
- AS = 264,
- DEF = 265,
- IF = 266,
- THEN = 267,
- ELSE = 268,
- ELSE_IF = 269,
- END = 270,
- AND = 271,
- OR = 272,
- SETPIPE = 273,
- SETPLUS = 274,
- SETMINUS = 275,
- SETMULT = 276,
- SETDIV = 277,
- SETDEFINEDOR = 278,
- LESSEQ = 279,
- GREATEREQ = 280,
- CONTAINS = 281,
- QQSTRING_START = 282,
- QQSTRING_TEXT = 283,
- QQSTRING_INTERP_START = 284,
- QQSTRING_INTERP_END = 285,
- QQSTRING_END = 286
- };
-#endif
-
-
-
-#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
-typedef union YYSTYPE
-{
-
-/* Line 293 of yacc.c */
-#line 27 "parser.y"
-
- jv literal;
- block blk;
-
-
-
-/* Line 293 of yacc.c */
-#line 177 "parser.gen.c"
-} YYSTYPE;
-# define YYSTYPE_IS_TRIVIAL 1
-# define yystype YYSTYPE /* obsolescent; will be withdrawn */
-# define YYSTYPE_IS_DECLARED 1
-#endif
-
-#if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED
-typedef struct YYLTYPE
-{
- int first_line;
- int first_column;
- int last_line;
- int last_column;
-} YYLTYPE;
-# define yyltype YYLTYPE /* obsolescent; will be withdrawn */
-# define YYLTYPE_IS_DECLARED 1
-# define YYLTYPE_IS_TRIVIAL 1
-#endif
-
-
-/* Copy the second part of user declarations. */
-
-/* Line 343 of yacc.c */
-#line 90 "parser.y"
-
-#include "lexer.gen.h"
-struct lexer_param {
- yyscan_t lexer;
-};
-#define FAIL(loc, msg) \
- do { \
- location l = loc; \
- yyerror(&l, answer, errors, locations, lexer_param_ptr, msg); \
- /*YYERROR*/; \
- } while (0)
-
-void yyerror(YYLTYPE* loc, block* answer, int* errors,
- struct locfile* locations, struct lexer_param* lexer_param_ptr, const char *s){
- (*errors)++;
- locfile_locate(locations, *loc, "error: %s", s);
-}
-
-int yylex(YYSTYPE* yylval, YYLTYPE* yylloc, block* answer, int* errors,
- struct locfile* locations, struct lexer_param* lexer_param_ptr) {
- yyscan_t lexer = lexer_param_ptr->lexer;
- while (1) {
- int tok = jq_yylex(yylval, yylloc, lexer);
- if (tok == INVALID_CHARACTER) {
- FAIL(*yylloc, "Invalid character");
- } else {
- if ((tok == LITERAL || tok == QQSTRING_TEXT) && !jv_is_valid(yylval->literal)) {
- jv msg = jv_invalid_get_msg(jv_copy(yylval->literal));
- if (jv_get_kind(msg) == JV_KIND_STRING) {
- FAIL(*yylloc, jv_string_value(msg));
- } else {
- FAIL(*yylloc, "Invalid literal");
- }
- jv_free(msg);
- jv_free(yylval->literal);
- yylval->literal = jv_null();
- }
- return tok;
- }
- }
-}
-
-static block gen_dictpair(block k, block v) {
- block b = gen_subexp(k);
- block_append(&b, gen_subexp(v));
- block_append(&b, gen_op_simple(INSERT));
- return b;
-}
-
-static block gen_index(block obj, block key) {
- return block_join(obj, block_join(gen_subexp(key), gen_op_simple(INDEX)));
-}
-
-static block gen_binop(block a, block b, int op) {
- const char* funcname = 0;
- switch (op) {
- case '+': funcname = "_plus"; break;
- case '-': funcname = "_minus"; break;
- case '*': funcname = "_multiply"; break;
- case '/': funcname = "_divide"; break;
- case EQ: funcname = "_equal"; break;
- case NEQ: funcname = "_notequal"; break;
- case '<': funcname = "_less"; break;
- case '>': funcname = "_greater"; break;
- case LESSEQ: funcname = "_lesseq"; break;
- case GREATEREQ: funcname = "_greatereq"; break;
- case CONTAINS: funcname = "_contains"; break;
- }
- assert(funcname);
-
- block c = gen_noop();
- block_append(&c, gen_subexp(a));
- block_append(&c, gen_subexp(b));
- block_append(&c, gen_op_call(CALL_1_1, gen_op_block_unbound(CLOSURE_REF, funcname)));
- return c;
-}
-
-static block gen_format(block a) {
- return block_join(a, gen_op_call(CALL_1_1, gen_op_block_unbound(CLOSURE_REF, "tostring")));
-}
-
-static block gen_update(block a, block op, int optype) {
- block assign = a;
- block_append(&assign, gen_op_simple(DUP));
- if (optype) {
- op = gen_binop(gen_noop(), op, optype);
- }
- block_append(&assign, op);
- return gen_assign(assign);
-}
-
-
-
-/* Line 343 of yacc.c */
-#line 296 "parser.gen.c"
-
-#ifdef short
-# undef short
-#endif
-
-#ifdef YYTYPE_UINT8
-typedef YYTYPE_UINT8 yytype_uint8;
-#else
-typedef unsigned char yytype_uint8;
-#endif
-
-#ifdef YYTYPE_INT8
-typedef YYTYPE_INT8 yytype_int8;
-#elif (defined __STDC__ || defined __C99__FUNC__ \
- || defined __cplusplus || defined _MSC_VER)
-typedef signed char yytype_int8;
-#else
-typedef short int yytype_int8;
-#endif
-
-#ifdef YYTYPE_UINT16
-typedef YYTYPE_UINT16 yytype_uint16;
-#else
-typedef unsigned short int yytype_uint16;
-#endif
-
-#ifdef YYTYPE_INT16
-typedef YYTYPE_INT16 yytype_int16;
-#else
-typedef short int yytype_int16;
-#endif
-
-#ifndef YYSIZE_T
-# ifdef __SIZE_TYPE__
-# define YYSIZE_T __SIZE_TYPE__
-# elif defined size_t
-# define YYSIZE_T size_t
-# elif ! defined YYSIZE_T && (defined __STDC__ || defined __C99__FUNC__ \
- || defined __cplusplus || defined _MSC_VER)
-# include <stddef.h> /* INFRINGES ON USER NAME SPACE */
-# define YYSIZE_T size_t
-# else
-# define YYSIZE_T unsigned int
-# endif
-#endif
-
-#define YYSIZE_MAXIMUM ((YYSIZE_T) -1)
-
-#ifndef YY_
-# if defined YYENABLE_NLS && YYENABLE_NLS
-# if ENABLE_NLS
-# include <libintl.h> /* INFRINGES ON USER NAME SPACE */
-# define YY_(msgid) dgettext ("bison-runtime", msgid)
-# endif
-# endif
-# ifndef YY_
-# define YY_(msgid) msgid
-# endif
-#endif
-
-/* Suppress unused-variable warnings by "using" E. */
-#if ! defined lint || defined __GNUC__
-# define YYUSE(e) ((void) (e))
-#else
-# define YYUSE(e) /* empty */
-#endif
-
-/* Identity function, used to suppress warnings about constant conditions. */
-#ifndef lint
-# define YYID(n) (n)
-#else
-#if (defined __STDC__ || defined __C99__FUNC__ \
- || defined __cplusplus || defined _MSC_VER)
-static int
-YYID (int yyi)
-#else
-static int
-YYID (yyi)
- int yyi;
-#endif
-{
- return yyi;
-}
-#endif
-
-#if ! defined yyoverflow || YYERROR_VERBOSE
-
-/* The parser invokes alloca or malloc; define the necessary symbols. */
-
-# ifdef YYSTACK_USE_ALLOCA
-# if YYSTACK_USE_ALLOCA
-# ifdef __GNUC__
-# define YYSTACK_ALLOC __builtin_alloca
-# elif defined __BUILTIN_VA_ARG_INCR
-# include <alloca.h> /* INFRINGES ON USER NAME SPACE */
-# elif defined _AIX
-# define YYSTACK_ALLOC __alloca
-# elif defined _MSC_VER
-# include <malloc.h> /* INFRINGES ON USER NAME SPACE */
-# define alloca _alloca
-# else
-# define YYSTACK_ALLOC alloca
-# if ! defined _ALLOCA_H && ! defined EXIT_SUCCESS && (defined __STDC__ || defined __C99__FUNC__ \
- || defined __cplusplus || defined _MSC_VER)
-# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
-# ifndef EXIT_SUCCESS
-# define EXIT_SUCCESS 0
-# endif
-# endif
-# endif
-# endif
-# endif
-
-# ifdef YYSTACK_ALLOC
- /* Pacify GCC's `empty if-body' warning. */
-# define YYSTACK_FREE(Ptr) do { /* empty */; } while (YYID (0))
-# ifndef YYSTACK_ALLOC_MAXIMUM
- /* The OS might guarantee only one guard page at the bottom of the stack,
- and a page size can be as small as 4096 bytes. So we cannot safely
- invoke alloca (N) if N exceeds 4096. Use a slightly smaller number
- to allow for a few compiler-allocated temporary stack slots. */
-# define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2006 */
-# endif
-# else
-# define YYSTACK_ALLOC YYMALLOC
-# define YYSTACK_FREE YYFREE
-# ifndef YYSTACK_ALLOC_MAXIMUM
-# define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM
-# endif
-# if (defined __cplusplus && ! defined EXIT_SUCCESS \
- && ! ((defined YYMALLOC || defined malloc) \
- && (defined YYFREE || defined free)))
-# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
-# ifndef EXIT_SUCCESS
-# define EXIT_SUCCESS 0
-# endif
-# endif
-# ifndef YYMALLOC
-# define YYMALLOC malloc
-# if ! defined malloc && ! defined EXIT_SUCCESS && (defined __STDC__ || defined __C99__FUNC__ \
- || defined __cplusplus || defined _MSC_VER)
-void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */
-# endif
-# endif
-# ifndef YYFREE
-# define YYFREE free
-# if ! defined free && ! defined EXIT_SUCCESS && (defined __STDC__ || defined __C99__FUNC__ \
- || defined __cplusplus || defined _MSC_VER)
-void free (void *); /* INFRINGES ON USER NAME SPACE */
-# endif
-# endif
-# endif
-#endif /* ! defined yyoverflow || YYERROR_VERBOSE */
-
-
-#if (! defined yyoverflow \
- && (! defined __cplusplus \
- || (defined YYLTYPE_IS_TRIVIAL && YYLTYPE_IS_TRIVIAL \
- && defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL)))
-
-/* A type that is properly aligned for any stack member. */
-union yyalloc
-{
- yytype_int16 yyss_alloc;
- YYSTYPE yyvs_alloc;
- YYLTYPE yyls_alloc;
-};
-
-/* The size of the maximum gap between one aligned stack and the next. */
-# define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1)
-
-/* The size of an array large to enough to hold all stacks, each with
- N elements. */
-# define YYSTACK_BYTES(N) \
- ((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE) + sizeof (YYLTYPE)) \
- + 2 * YYSTACK_GAP_MAXIMUM)
-
-# define YYCOPY_NEEDED 1
-
-/* Relocate STACK from its old location to the new one. The
- local variables YYSIZE and YYSTACKSIZE give the old and new number of
- elements in the stack, and YYPTR gives the new location of the
- stack. Advance YYPTR to a properly aligned location for the next
- stack. */
-# define YYSTACK_RELOCATE(Stack_alloc, Stack) \
- do \
- { \
- YYSIZE_T yynewbytes; \
- YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \
- Stack = &yyptr->Stack_alloc; \
- yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
- yyptr += yynewbytes / sizeof (*yyptr); \
- } \
- while (YYID (0))
-
-#endif
-
-#if defined YYCOPY_NEEDED && YYCOPY_NEEDED
-/* Copy COUNT objects from FROM to TO. The source and destination do
- not overlap. */
-# ifndef YYCOPY
-# if defined __GNUC__ && 1 < __GNUC__
-# define YYCOPY(To, From, Count) \
- __builtin_memcpy (To, From, (Count) * sizeof (*(From)))
-# else
-# define YYCOPY(To, From, Count) \
- do \
- { \
- YYSIZE_T yyi; \
- for (yyi = 0; yyi < (Count); yyi++) \
- (To)[yyi] = (From)[yyi]; \
- } \
- while (YYID (0))
-# endif
-# endif
-#endif /* !YYCOPY_NEEDED */
-
-/* YYFINAL -- State number of the termination state. */
-#define YYFINAL 35
-/* YYLAST -- Last index in YYTABLE. */
-#define YYLAST 854
-
-/* YYNTOKENS -- Number of terminals. */
-#define YYNTOKENS 51
-/* YYNNTS -- Number of nonterminals. */
-#define YYNNTS 12
-/* YYNRULES -- Number of rules. */
-#define YYNRULES 70
-/* YYNRULES -- Number of states. */
-#define YYNSTATES 151
-
-/* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */
-#define YYUNDEFTOK 2
-#define YYMAXUTOK 286
-
-#define YYTRANSLATE(YYX) \
- ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
-
-/* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX. */
-static const yytype_uint8 yytranslate[] =
-{
- 0, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 42, 2, 2, 2,
- 44, 45, 40, 38, 34, 39, 46, 41, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 43, 32,
- 36, 35, 37, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 47, 2, 48, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 49, 33, 50, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 1, 2, 3, 4,
- 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
- 15, 16, 17, 18, 19, 20, 21, 22, 23, 24,
- 25, 26, 27, 28, 29, 30, 31
-};
-
-#if YYDEBUG
-/* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in
- YYRHS. */
-static const yytype_uint16 yyprhs[] =
-{
- 0, 0, 3, 5, 7, 8, 11, 14, 21, 27,
- 31, 35, 39, 43, 47, 51, 55, 59, 63, 67,
- 71, 75, 79, 83, 87, 91, 95, 99, 103, 107,
- 111, 115, 119, 123, 125, 129, 135, 144, 145, 148,
- 153, 159, 163, 167, 169, 171, 175, 178, 183, 187,
- 189, 191, 195, 199, 202, 206, 209, 211, 216, 220,
- 224, 229, 233, 234, 236, 240, 244, 248, 252, 254,
- 260
-};
-
-/* YYRHS -- A `-1'-separated list of the rules' RHS. */
-static const yytype_int8 yyrhs[] =
-{
- 52, 0, -1, 54, -1, 53, -1, -1, 56, 53,
- -1, 56, 54, -1, 60, 9, 42, 4, 33, 54,
- -1, 11, 54, 12, 54, 58, -1, 11, 54, 1,
- -1, 54, 35, 54, -1, 54, 17, 54, -1, 54,
- 16, 54, -1, 54, 8, 54, -1, 54, 23, 54,
- -1, 54, 18, 54, -1, 54, 33, 54, -1, 54,
- 34, 54, -1, 54, 38, 54, -1, 54, 19, 54,
- -1, 54, 39, 54, -1, 54, 20, 54, -1, 54,
- 40, 54, -1, 54, 21, 54, -1, 54, 41, 54,
- -1, 54, 22, 54, -1, 54, 6, 54, -1, 54,
- 7, 54, -1, 54, 36, 54, -1, 54, 37, 54,
- -1, 54, 24, 54, -1, 54, 25, 54, -1, 54,
- 26, 54, -1, 60, -1, 27, 57, 31, -1, 10,
- 4, 43, 54, 32, -1, 10, 4, 44, 4, 45,
- 43, 54, 32, -1, -1, 57, 28, -1, 57, 29,
- 54, 30, -1, 14, 54, 12, 54, 58, -1, 13,
- 54, 15, -1, 59, 33, 59, -1, 60, -1, 46,
- -1, 60, 46, 4, -1, 46, 4, -1, 60, 47,
- 54, 48, -1, 60, 47, 48, -1, 5, -1, 55,
- -1, 44, 54, 45, -1, 47, 54, 48, -1, 47,
- 48, -1, 49, 61, 50, -1, 42, 4, -1, 4,
- -1, 4, 44, 54, 45, -1, 44, 1, 45, -1,
- 47, 1, 48, -1, 60, 47, 1, 48, -1, 49,
- 1, 50, -1, -1, 62, -1, 62, 34, 61, -1,
- 1, 34, 61, -1, 4, 43, 59, -1, 55, 43,
- 59, -1, 4, -1, 44, 54, 45, 43, 59, -1,
- 44, 1, 45, 43, 59, -1
-};
-
-/* YYRLINE[YYN] -- source line where rule number YYN was defined. */
-static const yytype_uint16 yyrline[] =
-{
- 0, 185, 185, 188, 193, 196, 201, 205, 212, 215,
- 220, 229, 233, 237, 241, 245, 249, 253, 257, 261,
- 265, 269, 273, 277, 281, 285, 289, 293, 297, 301,
- 305, 309, 313, 317, 322, 327, 333, 341, 344, 347,
- 353, 356, 361, 365, 371, 374, 377, 381, 384, 387,
- 390, 393, 396, 399, 402, 407, 411, 415, 425, 426,
- 427, 428, 431, 434, 435, 436, 439, 442, 445, 449,
- 452
-};
-#endif
-
-#if YYDEBUG || YYERROR_VERBOSE || YYTOKEN_TABLE
-/* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
- First, the terminals, then, starting at YYNTOKENS, nonterminals. */
-static const char *const yytname[] =
-{
- "$end", "error", "$undefined", "INVALID_CHARACTER", "IDENT", "LITERAL",
- "\"==\"", "\"!=\"", "\"//\"", "\"as\"", "\"def\"", "\"if\"", "\"then\"",
- "\"else\"", "\"elif\"", "\"end\"", "\"and\"", "\"or\"", "\"|=\"",
- "\"+=\"", "\"-=\"", "\"*=\"", "\"/=\"", "\"//=\"", "\"<=\"", "\">=\"",
- "\"contains\"", "QQSTRING_START", "QQSTRING_TEXT",
- "QQSTRING_INTERP_START", "QQSTRING_INTERP_END", "QQSTRING_END", "';'",
- "'|'", "','", "'='", "'<'", "'>'", "'+'", "'-'", "'*'", "'/'", "'$'",
- "':'", "'('", "')'", "'.'", "'['", "']'", "'{'", "'}'", "$accept",
- "TopLevel", "FuncDefs", "Exp", "String", "FuncDef", "QQString",
- "ElseBody", "ExpD", "Term", "MkDict", "MkDictPair", 0
-};
-#endif
-
-# ifdef YYPRINT
-/* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to
- token YYLEX-NUM. */
-static const yytype_uint16 yytoknum[] =
-{
- 0, 256, 257, 258, 259, 260, 261, 262, 263, 264,
- 265, 266, 267, 268, 269, 270, 271, 272, 273, 274,
- 275, 276, 277, 278, 279, 280, 281, 282, 283, 284,
- 285, 286, 59, 124, 44, 61, 60, 62, 43, 45,
- 42, 47, 36, 58, 40, 41, 46, 91, 93, 123,
- 125
-};
-# endif
-
-/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */
-static const yytype_uint8 yyr1[] =
-{
- 0, 51, 52, 52, 53, 53, 54, 54, 54, 54,
- 54, 54, 54, 54, 54, 54, 54, 54, 54, 54,
- 54, 54, 54, 54, 54, 54, 54, 54, 54, 54,
- 54, 54, 54, 54, 55, 56, 56, 57, 57, 57,
- 58, 58, 59, 59, 60, 60, 60, 60, 60, 60,
- 60, 60, 60, 60, 60, 60, 60, 60, 60, 60,
- 60, 60, 61, 61, 61, 61, 62, 62, 62, 62,
- 62
-};
-
-/* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */
-static const yytype_uint8 yyr2[] =
-{
- 0, 2, 1, 1, 0, 2, 2, 6, 5, 3,
- 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
- 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
- 3, 3, 3, 1, 3, 5, 8, 0, 2, 4,
- 5, 3, 3, 1, 1, 3, 2, 4, 3, 1,
- 1, 3, 3, 2, 3, 2, 1, 4, 3, 3,
- 4, 3, 0, 1, 3, 3, 3, 3, 1, 5,
- 5
-};
-
-/* YYDEFACT[STATE-NAME] -- Default reduction number in state STATE-NUM.
- Performed when YYTABLE doesn't specify something else to do. Zero
- means the default is an error. */
-static const yytype_uint8 yydefact[] =
-{
- 4, 56, 49, 0, 0, 37, 0, 0, 44, 0,
- 0, 0, 3, 2, 50, 4, 33, 0, 0, 0,
- 0, 0, 55, 0, 0, 46, 0, 53, 0, 0,
- 68, 0, 0, 0, 63, 1, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 5,
- 6, 0, 0, 0, 0, 0, 0, 9, 0, 38,
- 0, 34, 58, 51, 59, 52, 0, 61, 0, 0,
- 0, 0, 54, 0, 26, 27, 13, 12, 11, 15,
- 19, 21, 23, 25, 14, 30, 31, 32, 16, 17,
- 10, 28, 29, 18, 20, 22, 24, 0, 45, 0,
- 48, 0, 57, 0, 0, 0, 0, 0, 65, 66,
- 43, 0, 0, 67, 64, 0, 60, 47, 35, 0,
- 0, 0, 8, 39, 0, 0, 0, 0, 0, 0,
- 0, 42, 70, 69, 7, 0, 41, 0, 36, 0,
- 40
-};
-
-/* YYDEFGOTO[NTERM-NUM]. */
-static const yytype_int16 yydefgoto[] =
-{
- -1, 11, 12, 60, 14, 20, 21, 132, 119, 16,
- 33, 34
-};
-
-/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
- STATE-NUM. */
-#define YYPACT_NINF -76
-static const yytype_int16 yypact[] =
-{
- 179, -42, -76, 10, 179, -76, 16, 131, 18, 79,
- 65, 28, -76, 662, -76, 179, 53, 179, -28, 302,
- 179, -18, -76, -15, 338, -76, -19, -76, 223, -29,
- -11, 155, -10, 14, 1, -76, 179, 179, 179, 179,
- 179, 179, 179, 179, 179, 179, 179, 179, 179, 179,
- 179, 179, 179, 179, 179, 179, 179, 179, 179, -76,
- 662, -8, 72, 106, 374, 179, 73, -76, 179, -76,
- 179, -76, -76, -76, -76, -76, 74, -76, 165, 34,
- 410, 165, -76, 74, 807, 807, 734, 813, 786, 760,
- 760, 760, 760, 760, 760, 807, 807, 807, 698, 734,
- 760, 807, 807, -16, -16, -76, -76, 77, -76, 37,
- -76, 259, -76, 482, 41, 446, 518, 48, -76, 54,
- -20, 45, 50, 54, -76, 58, -76, -76, -76, 51,
- 179, 179, -76, -76, 165, 165, 165, 179, 179, 554,
- 590, -76, 54, 54, 698, 626, -76, 179, -76, 446,
- -76
-};
-
-/* YYPGOTO[NTERM-NUM]. */
-static const yytype_int8 yypgoto[] =
-{
- -76, -76, 80, 0, -9, 8, -76, -53, -63, -75,
- -64, -76
-};
-
-/* YYTABLE[YYPACT[STATE-NUM]]. What to do in state STATE-NUM. If
- positive, shift that token. If negative, reduce the rule which
- number is the opposite. If YYTABLE_NINF, syntax error. */
-#define YYTABLE_NINF -63
-static const yytype_int16 yytable[] =
-{
- 13, 32, 17, 120, 19, 76, 120, 24, 15, 28,
- 69, 70, 118, 71, 18, 65, 66, 64, 123, 124,
- 22, 77, 25, 15, 57, 58, 62, 63, 35, 74,
- 72, 80, 78, 81, 107, 83, 84, 85, 86, 87,
- 88, 89, 90, 91, 92, 93, 94, 95, 96, 97,
- 98, 99, 100, 101, 102, 103, 104, 105, 106, 120,
- 120, 120, 61, 111, 82, 113, 29, 32, 115, 30,
- 116, 141, 142, 143, 32, 117, 108, 114, 30, 121,
- 26, 125, 76, 1, 2, 126, 129, 134, 135, 3,
- 4, 137, 5, 136, 138, 59, 150, 0, 0, 62,
- 63, 5, 0, 0, 0, 0, 5, 109, 0, 31,
- 1, 2, 0, 0, 0, -62, 3, 4, 31, 0,
- 0, 6, 0, 7, -62, 8, 9, 27, 10, 0,
- 139, 140, 23, 5, 0, 1, 2, 144, 145, 0,
- 0, 3, 4, 0, 0, 0, 0, 149, 6, 0,
- 7, 0, 8, 9, 110, 10, 79, 0, 5, 1,
- 2, 0, 0, 0, 0, 3, 4, 0, 0, 1,
- 2, 0, 0, 6, 0, 7, 0, 8, 9, 0,
- 10, 0, 5, 1, 2, 0, 0, 0, 0, 3,
- 4, 0, 5, 0, 0, 0, 0, 6, 0, 7,
- 0, 8, 9, 0, 10, 0, 5, 6, 0, 7,
- 0, 8, 9, 0, 10, 0, 0, 0, 0, 0,
- 0, 6, 0, 7, 0, 8, 9, 0, 10, 36,
- 37, 38, 0, 0, 0, 0, 0, 0, 0, 39,
- 40, 41, 42, 43, 44, 45, 46, 47, 48, 49,
- 0, 0, 0, 0, 0, 0, 50, 51, 52, 53,
- 54, 55, 56, 57, 58, 36, 37, 38, 0, 0,
- 0, 75, 0, 0, 0, 39, 40, 41, 42, 43,
- 44, 45, 46, 47, 48, 49, 0, 0, 0, 0,
- 0, 0, 50, 51, 52, 53, 54, 55, 56, 57,
- 58, 0, 0, 67, 0, 0, 0, 127, 36, 37,
- 38, 0, 0, 0, 68, 0, 0, 0, 39, 40,
- 41, 42, 43, 44, 45, 46, 47, 48, 49, 0,
- 0, 0, 0, 0, 0, 50, 51, 52, 53, 54,
- 55, 56, 57, 58, 36, 37, 38, 0, 0, 0,
- 0, 0, 0, 0, 39, 40, 41, 42, 43, 44,
- 45, 46, 47, 48, 49, 0, 0, 0, 0, 0,
- 0, 50, 51, 52, 53, 54, 55, 56, 57, 58,
- 36, 37, 38, 73, 0, 0, 0, 0, 0, 0,
- 39, 40, 41, 42, 43, 44, 45, 46, 47, 48,
- 49, 0, 0, 0, 0, 0, 0, 50, 51, 52,
- 53, 54, 55, 56, 57, 58, 36, 37, 38, 112,
- 0, 0, 0, 0, 0, 0, 39, 40, 41, 42,
- 43, 44, 45, 46, 47, 48, 49, 0, 0, 0,
- 0, 0, 0, 50, 51, 52, 53, 54, 55, 56,
- 57, 58, 36, 37, 38, 122, 0, 0, 0, 130,
- 131, 0, 39, 40, 41, 42, 43, 44, 45, 46,
- 47, 48, 49, 0, 0, 0, 0, 0, 0, 50,
- 51, 52, 53, 54, 55, 56, 57, 58, 36, 37,
- 38, 0, 0, 0, 0, 0, 0, 0, 39, 40,
- 41, 42, 43, 44, 45, 46, 47, 48, 49, 0,
- 0, 0, 0, 0, 128, 50, 51, 52, 53, 54,
- 55, 56, 57, 58, 36, 37, 38, 0, 0, 0,
- 0, 0, 0, 0, 39, 40, 41, 42, 43, 44,
- 45, 46, 47, 48, 49, 0, 0, 0, 133, 0,
- 0, 50, 51, 52, 53, 54, 55, 56, 57, 58,
- 36, 37, 38, 0, 0, 0, 0, 0, 0, 146,
- 39, 40, 41, 42, 43, 44, 45, 46, 47, 48,
- 49, 0, 0, 0, 0, 0, 0, 50, 51, 52,
- 53, 54, 55, 56, 57, 58, 36, 37, 38, 0,
- 0, 0, 147, 0, 0, 0, 39, 40, 41, 42,
- 43, 44, 45, 46, 47, 48, 49, 0, 0, 0,
- 0, 0, 0, 50, 51, 52, 53, 54, 55, 56,
- 57, 58, 36, 37, 38, 0, 0, 0, 0, 0,
- 0, 0, 39, 40, 41, 42, 43, 44, 45, 46,
- 47, 48, 49, 0, 0, 0, 0, 0, 148, 50,
- 51, 52, 53, 54, 55, 56, 57, 58, 36, 37,
- 38, 0, 0, 0, 0, 0, 0, 0, 39, 40,
- 41, 42, 43, 44, 45, 46, 47, 48, 49, 0,
- 0, 0, 0, 0, 0, 50, 51, 52, 53, 54,
- 55, 56, 57, 58, 36, 37, 38, 0, 0, 0,
- 0, 0, 0, 0, 39, 40, 41, 42, 43, 44,
- 45, 46, 47, 48, 49, 0, 0, 0, 0, 0,
- 0, 0, 51, 52, 53, 54, 55, 56, 57, 58,
- 36, 37, 38, 0, 0, 0, 0, 0, 0, 0,
- 39, 40, 41, 42, 43, 44, 45, 46, 47, 48,
- 49, 0, 0, 0, 0, 0, 36, 37, 0, 52,
- 53, 54, 55, 56, 57, 58, 39, 40, -63, -63,
- -63, -63, -63, -63, 47, 48, 49, 0, 0, 0,
- 0, 0, 36, 37, 0, -63, 53, 54, 55, 56,
- 57, 58, 39, 0, 0, 0, 0, 0, 0, 0,
- 47, 48, 49, -63, -63, 0, 0, 0, 0, 36,
- 37, 0, 53, 54, 55, 56, 57, 58, 0, 0,
- 0, -63, -63, -63, 0, 0, 0, 47, 48, 49,
- 0, 0, 0, -63, -63, 55, 56, 57, 58, 53,
- 54, 55, 56, 57, 58
-};
-
-#define yypact_value_is_default(yystate) \
- ((yystate) == (-76))
-
-#define yytable_value_is_error(yytable_value) \
- ((yytable_value) == (-63))
-
-static const yytype_int16 yycheck[] =
-{
- 0, 10, 44, 78, 4, 34, 81, 7, 0, 9,
- 28, 29, 76, 31, 4, 43, 44, 17, 81, 83,
- 4, 50, 4, 15, 40, 41, 46, 47, 0, 48,
- 45, 31, 43, 43, 42, 34, 36, 37, 38, 39,
- 40, 41, 42, 43, 44, 45, 46, 47, 48, 49,
- 50, 51, 52, 53, 54, 55, 56, 57, 58, 134,
- 135, 136, 9, 63, 50, 65, 1, 76, 68, 4,
- 70, 134, 135, 136, 83, 1, 4, 4, 4, 45,
- 1, 4, 34, 4, 5, 48, 45, 33, 43, 10,
- 11, 33, 27, 43, 43, 15, 149, -1, -1, 46,
- 47, 27, -1, -1, -1, -1, 27, 1, -1, 44,
- 4, 5, -1, -1, -1, 50, 10, 11, 44, -1,
- -1, 42, -1, 44, 50, 46, 47, 48, 49, -1,
- 130, 131, 1, 27, -1, 4, 5, 137, 138, -1,
- -1, 10, 11, -1, -1, -1, -1, 147, 42, -1,
- 44, -1, 46, 47, 48, 49, 1, -1, 27, 4,
- 5, -1, -1, -1, -1, 10, 11, -1, -1, 4,
- 5, -1, -1, 42, -1, 44, -1, 46, 47, -1,
- 49, -1, 27, 4, 5, -1, -1, -1, -1, 10,
- 11, -1, 27, -1, -1, -1, -1, 42, -1, 44,
- -1, 46, 47, -1, 49, -1, 27, 42, -1, 44,
- -1, 46, 47, -1, 49, -1, -1, -1, -1, -1,
- -1, 42, -1, 44, -1, 46, 47, -1, 49, 6,
- 7, 8, -1, -1, -1, -1, -1, -1, -1, 16,
- 17, 18, 19, 20, 21, 22, 23, 24, 25, 26,
- -1, -1, -1, -1, -1, -1, 33, 34, 35, 36,
- 37, 38, 39, 40, 41, 6, 7, 8, -1, -1,
- -1, 48, -1, -1, -1, 16, 17, 18, 19, 20,
- 21, 22, 23, 24, 25, 26, -1, -1, -1, -1,
- -1, -1, 33, 34, 35, 36, 37, 38, 39, 40,
- 41, -1, -1, 1, -1, -1, -1, 48, 6, 7,
- 8, -1, -1, -1, 12, -1, -1, -1, 16, 17,
- 18, 19, 20, 21, 22, 23, 24, 25, 26, -1,
- -1, -1, -1, -1, -1, 33, 34, 35, 36, 37,
- 38, 39, 40, 41, 6, 7, 8, -1, -1, -1,
- -1, -1, -1, -1, 16, 17, 18, 19, 20, 21,
- 22, 23, 24, 25, 26, -1, -1, -1, -1, -1,
- -1, 33, 34, 35, 36, 37, 38, 39, 40, 41,
- 6, 7, 8, 45, -1, -1, -1, -1, -1, -1,
- 16, 17, 18, 19, 20, 21, 22, 23, 24, 25,
- 26, -1, -1, -1, -1, -1, -1, 33, 34, 35,
- 36, 37, 38, 39, 40, 41, 6, 7, 8, 45,
- -1, -1, -1, -1, -1, -1, 16, 17, 18, 19,
- 20, 21, 22, 23, 24, 25, 26, -1, -1, -1,
- -1, -1, -1, 33, 34, 35, 36, 37, 38, 39,
- 40, 41, 6, 7, 8, 45, -1, -1, -1, 13,
- 14, -1, 16, 17, 18, 19, 20, 21, 22, 23,
- 24, 25, 26, -1, -1, -1, -1, -1, -1, 33,
- 34, 35, 36, 37, 38, 39, 40, 41, 6, 7,
- 8, -1, -1, -1, -1, -1, -1, -1, 16, 17,
- 18, 19, 20, 21, 22, 23, 24, 25, 26, -1,
- -1, -1, -1, -1, 32, 33, 34, 35, 36, 37,
- 38, 39, 40, 41, 6, 7, 8, -1, -1, -1,
- -1, -1, -1, -1, 16, 17, 18, 19, 20, 21,
- 22, 23, 24, 25, 26, -1, -1, -1, 30, -1,
- -1, 33, 34, 35, 36, 37, 38, 39, 40, 41,
- 6, 7, 8, -1, -1, -1, -1, -1, -1, 15,
- 16, 17, 18, 19, 20, 21, 22, 23, 24, 25,
- 26, -1, -1, -1, -1, -1, -1, 33, 34, 35,
- 36, 37, 38, 39, 40, 41, 6, 7, 8, -1,
- -1, -1, 12, -1, -1, -1, 16, 17, 18, 19,
- 20, 21, 22, 23, 24, 25, 26, -1, -1, -1,
- -1, -1, -1, 33, 34, 35, 36, 37, 38, 39,
- 40, 41, 6, 7, 8, -1, -1, -1, -1, -1,
- -1, -1, 16, 17, 18, 19, 20, 21, 22, 23,
- 24, 25, 26, -1, -1, -1, -1, -1, 32, 33,
- 34, 35, 36, 37, 38, 39, 40, 41, 6, 7,
- 8, -1, -1, -1, -1, -1, -1, -1, 16, 17,
- 18, 19, 20, 21, 22, 23, 24, 25, 26, -1,
- -1, -1, -1, -1, -1, 33, 34, 35, 36, 37,
- 38, 39, 40, 41, 6, 7, 8, -1, -1, -1,
- -1, -1, -1, -1, 16, 17, 18, 19, 20, 21,
- 22, 23, 24, 25, 26, -1, -