diff options
Diffstat (limited to 'src/gram.c')
-rw-r--r-- | src/gram.c | 3928 |
1 files changed, 0 insertions, 3928 deletions
diff --git a/src/gram.c b/src/gram.c deleted file mode 100644 index 6218170..0000000 --- a/src/gram.c +++ /dev/null @@ -1,3928 +0,0 @@ -/* A Bison parser, made by GNU Bison 3.0.2. */ - -/* Bison implementation for Yacc-like parsers in C - - Copyright (C) 1984, 1989-1990, 2000-2013 Free Software Foundation, Inc. - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see <http://www.gnu.org/licenses/>. */ - -/* 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 "3.0.2" - -/* Skeleton name. */ -#define YYSKELETON_NAME "yacc.c" - -/* Pure parsers. */ -#define YYPURE 0 - -/* Push parsers. */ -#define YYPUSH 0 - -/* Pull parsers. */ -#define YYPULL 1 - - - - -/* Copy the first part of user declarations. */ -#line 1 "gram.y" /* yacc.c:339 */ - -#include <curses.h> -#include <stdlib.h> -#include "sc.h" -#include "cmds.h" -#include "color.h" -#include "interp.h" -#include "macros.h" -#include "sort.h" -#include "filter.h" -#include "maps.h" -#include "marks.h" -#include "xmalloc.h" // for scxfree -#include "hide_show.h" -#include "cmds_normal.h" -#include "conf.h" -#include "pipe.h" -#include "main.h" - -void yyerror(char *err); // error routine for yacc (gram.y) -int yylex(); - - -#ifdef USELOCALE -#include <locale.h> -#endif - -#ifndef MSDOS -#include <unistd.h> -#endif - -#define ENULL (struct enode *) 0 - -#line 100 "y.tab.c" /* yacc.c:339 */ - -# ifndef YY_NULLPTR -# if defined __cplusplus && 201103L <= __cplusplus -# define YY_NULLPTR nullptr -# else -# define YY_NULLPTR 0 -# endif -# endif - -/* Enabling verbose error messages. */ -#ifdef YYERROR_VERBOSE -# undef YYERROR_VERBOSE -# define YYERROR_VERBOSE 1 -#else -# define YYERROR_VERBOSE 0 -#endif - -/* In a future release of Bison, this section will be replaced - by #include "y.tab.h". */ -#ifndef YY_YY_Y_TAB_H_INCLUDED -# define YY_YY_Y_TAB_H_INCLUDED -/* Debug traces. */ -#ifndef YYDEBUG -# define YYDEBUG 0 -#endif -#if YYDEBUG -extern int yydebug; -#endif - -/* Token type. */ -#ifndef YYTOKENTYPE -# define YYTOKENTYPE - enum yytokentype - { - STRING = 258, - COL = 259, - NUMBER = 260, - FNUMBER = 261, - RANGE = 262, - VAR = 263, - WORD = 264, - MAPWORD = 265, - PLUGIN = 266, - S_SHOW = 267, - S_HIDE = 268, - S_SHOWROW = 269, - S_HIDEROW = 270, - S_SHOWCOL = 271, - S_HIDECOL = 272, - S_MARK = 273, - S_AUTOJUS = 274, - S_PAD = 275, - S_DATEFMT = 276, - S_FORMAT = 277, - S_FMT = 278, - S_LET = 279, - S_LABEL = 280, - S_LEFTSTRING = 281, - S_RIGHTSTRING = 282, - S_LEFTJUSTIFY = 283, - S_RIGHTJUSTIFY = 284, - S_CENTER = 285, - S_SORT = 286, - S_FILTERON = 287, - S_GOTO = 288, - S_SET = 289, - S_LOCK = 290, - S_UNLOCK = 291, - S_DEFINE = 292, - S_UNDEFINE = 293, - S_EVAL = 294, - S_SEVAL = 295, - S_GETNUM = 296, - S_GETSTRING = 297, - S_GETEXP = 298, - S_GETFMT = 299, - S_GETFORMAT = 300, - S_RECALC = 301, - S_QUIT = 302, - S_IMAP = 303, - S_NMAP = 304, - S_INOREMAP = 305, - S_NNOREMAP = 306, - S_NUNMAP = 307, - S_IUNMAP = 308, - S_COLOR = 309, - S_CELLCOLOR = 310, - S_REDEFINE_COLOR = 311, - K_ERROR = 312, - K_INVALID = 313, - K_FIXED = 314, - K_SUM = 315, - K_PROD = 316, - K_AVG = 317, - K_STDDEV = 318, - K_COUNT = 319, - K_ROWS = 320, - K_COLS = 321, - K_ABS = 322, - K_ACOS = 323, - K_ASIN = 324, - K_ATAN = 325, - K_ATAN2 = 326, - K_CEIL = 327, - K_COS = 328, - K_EXP = 329, - K_FABS = 330, - K_FLOOR = 331, - K_HYPOT = 332, - K_LN = 333, - K_LOG = 334, - K_PI = 335, - K_POW = 336, - K_SIN = 337, - K_SQRT = 338, - K_TAN = 339, - K_DTR = 340, - K_RTD = 341, - K_MAX = 342, - K_MIN = 343, - K_RND = 344, - K_ROUND = 345, - K_IF = 346, - K_PV = 347, - K_FV = 348, - K_PMT = 349, - K_HOUR = 350, - K_MINUTE = 351, - K_SECOND = 352, - K_MONTH = 353, - K_DAY = 354, - K_YEAR = 355, - K_NOW = 356, - K_DATE = 357, - K_DTS = 358, - K_TTS = 359, - K_FMT = 360, - K_SUBSTR = 361, - K_UPPER = 362, - K_LOWER = 363, - K_CAPITAL = 364, - K_STON = 365, - K_SLEN = 366, - K_EQS = 367, - K_EXT = 368, - K_NVAL = 369, - K_SVAL = 370, - K_LOOKUP = 371, - K_HLOOKUP = 372, - K_VLOOKUP = 373, - K_INDEX = 374, - K_STINDEX = 375, - K_AUTO = 376, - K_AUTOCALC = 377, - K_AUTOINSERT = 378, - K_AUTOWRAP = 379, - K_CSLOP = 380, - K_BYROWS = 381, - K_BYCOLS = 382, - K_OPTIMIZE = 383, - K_ITERATIONS = 384, - K_NUMERIC = 385, - K_PRESCALE = 386, - K_EXTFUN = 387, - K_CELLCUR = 388, - K_TOPROW = 389, - K_COLOR = 390, - K_COLORNEG = 391, - K_COLORERR = 392, - K_BRAILLE = 393, - K_TBLSTYLE = 394, - K_TBL = 395, - K_LATEX = 396, - K_SLATEX = 397, - K_TEX = 398, - K_FRAME = 399, - K_RNDTOEVEN = 400, - K_FILENAME = 401, - K_MYROW = 402, - K_MYCOL = 403, - K_LASTROW = 404, - K_LASTCOL = 405, - K_COLTOA = 406, - K_CRACTION = 407, - K_CRROW = 408, - K_CRCOL = 409, - K_ROWLIMIT = 410, - K_COLLIMIT = 411, - K_PAGESIZE = 412, - K_NUMITER = 413, - K_ERR = 414, - K_LOCALE = 415, - K_SET8BIT = 416, - K_ASCII = 417, - K_CHR = 418 - }; -#endif -/* Tokens. */ -#define STRING 258 -#define COL 259 -#define NUMBER 260 -#define FNUMBER 261 -#define RANGE 262 -#define VAR 263 -#define WORD 264 -#define MAPWORD 265 -#define PLUGIN 266 -#define S_SHOW 267 -#define S_HIDE 268 -#define S_SHOWROW 269 -#define S_HIDEROW 270 -#define S_SHOWCOL 271 -#define S_HIDECOL 272 -#define S_MARK 273 -#define S_AUTOJUS 274 -#define S_PAD 275 -#define S_DATEFMT 276 -#define S_FORMAT 277 -#define S_FMT 278 -#define S_LET 279 -#define S_LABEL 280 -#define S_LEFTSTRING 281 -#define S_RIGHTSTRING 282 -#define S_LEFTJUSTIFY 283 -#define S_RIGHTJUSTIFY 284 -#define S_CENTER 285 -#define S_SORT 286 -#define S_FILTERON 287 -#define S_GOTO 288 -#define S_SET 289 -#define S_LOCK 290 -#define S_UNLOCK 291 -#define S_DEFINE 292 -#define S_UNDEFINE 293 -#define S_EVAL 294 -#define S_SEVAL 295 -#define S_GETNUM 296 -#define S_GETSTRING 297 -#define S_GETEXP 298 -#define S_GETFMT 299 -#define S_GETFORMAT 300 -#define S_RECALC 301 -#define S_QUIT 302 -#define S_IMAP 303 -#define S_NMAP 304 -#define S_INOREMAP 305 -#define S_NNOREMAP 306 -#define S_NUNMAP 307 -#define S_IUNMAP 308 -#define S_COLOR 309 -#define S_CELLCOLOR 310 -#define S_REDEFINE_COLOR 311 -#define K_ERROR 312 -#define K_INVALID 313 -#define K_FIXED 314 -#define K_SUM 315 -#define K_PROD 316 -#define K_AVG 317 -#define K_STDDEV 318 -#define K_COUNT 319 -#define K_ROWS 320 -#define K_COLS 321 -#define K_ABS 322 -#define K_ACOS 323 -#define K_ASIN 324 -#define K_ATAN 325 -#define K_ATAN2 326 -#define K_CEIL 327 -#define K_COS 328 -#define K_EXP 329 -#define K_FABS 330 -#define K_FLOOR 331 -#define K_HYPOT 332 -#define K_LN 333 -#define K_LOG 334 -#define K_PI 335 -#define K_POW 336 -#define K_SIN 337 -#define K_SQRT 338 -#define K_TAN 339 -#define K_DTR 340 -#define K_RTD 341 -#define K_MAX 342 -#define K_MIN 343 -#define K_RND 344 -#define K_ROUND 345 -#define K_IF 346 -#define K_PV 347 -#define K_FV 348 -#define K_PMT 349 -#define K_HOUR 350 -#define K_MINUTE 351 -#define K_SECOND 352 -#define K_MONTH 353 -#define K_DAY 354 -#define K_YEAR 355 -#define K_NOW 356 -#define K_DATE 357 -#define K_DTS 358 -#define K_TTS 359 -#define K_FMT 360 -#define K_SUBSTR 361 -#define K_UPPER 362 -#define K_LOWER 363 -#define K_CAPITAL 364 -#define K_STON 365 -#define K_SLEN 366 -#define K_EQS 367 -#define K_EXT 368 -#define K_NVAL 369 -#define K_SVAL 370 -#define K_LOOKUP 371 -#define K_HLOOKUP 372 -#define K_VLOOKUP 373 -#define K_INDEX 374 -#define K_STINDEX 375 -#define K_AUTO 376 -#define K_AUTOCALC 377 -#define K_AUTOINSERT 378 -#define K_AUTOWRAP 379 -#define K_CSLOP 380 -#define K_BYROWS 381 -#define K_BYCOLS 382 -#define K_OPTIMIZE 383 -#define K_ITERATIONS 384 -#define K_NUMERIC 385 -#define K_PRESCALE 386 -#define K_EXTFUN 387 -#define K_CELLCUR 388 -#define K_TOPROW 389 -#define K_COLOR 390 -#define K_COLORNEG 391 -#define K_COLORERR 392 -#define K_BRAILLE 393 -#define K_TBLSTYLE 394 -#define K_TBL 395 -#define K_LATEX 396 -#define K_SLATEX 397 -#define K_TEX 398 -#define K_FRAME 399 -#define K_RNDTOEVEN 400 -#define K_FILENAME 401 -#define K_MYROW 402 -#define K_MYCOL 403 -#define K_LASTROW 404 -#define K_LASTCOL 405 -#define K_COLTOA 406 -#define K_CRACTION 407 -#define K_CRROW 408 -#define K_CRCOL 409 -#define K_ROWLIMIT 410 -#define K_COLLIMIT 411 -#define K_PAGESIZE 412 -#define K_NUMITER 413 -#define K_ERR 414 -#define K_LOCALE 415 -#define K_SET8BIT 416 -#define K_ASCII 417 -#define K_CHR 418 - -/* Value type. */ -#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED -typedef union YYSTYPE YYSTYPE; -union YYSTYPE -{ -#line 35 "gram.y" /* yacc.c:355 */ - - int ival; - double fval; - struct ent_ptr ent; - struct enode * enode; - char * sval; - struct range_s rval; // no debiera usarse en futuro - -#line 475 "y.tab.c" /* yacc.c:355 */ -}; -# define YYSTYPE_IS_TRIVIAL 1 -# define YYSTYPE_IS_DECLARED 1 -#endif - - -extern YYSTYPE yylval; - -int yyparse (void); - -#endif /* !YY_YY_Y_TAB_H_INCLUDED */ - -/* Copy the second part of user declarations. */ - -#line 490 "y.tab.c" /* yacc.c:358 */ - -#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; -#else -typedef signed char 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 -# 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 - -#ifndef YY_ATTRIBUTE -# if (defined __GNUC__ \ - && (2 < __GNUC__ || (__GNUC__ == 2 && 96 <= __GNUC_MINOR__))) \ - || defined __SUNPRO_C && 0x5110 <= __SUNPRO_C -# define YY_ATTRIBUTE(Spec) __attribute__(Spec) -# else -# define YY_ATTRIBUTE(Spec) /* empty */ -# endif -#endif - -#ifndef YY_ATTRIBUTE_PURE -# define YY_ATTRIBUTE_PURE YY_ATTRIBUTE ((__pure__)) -#endif - -#ifndef YY_ATTRIBUTE_UNUSED -# define YY_ATTRIBUTE_UNUSED YY_ATTRIBUTE ((__unused__)) -#endif - -#if !defined _Noreturn \ - && (!defined __STDC_VERSION__ || __STDC_VERSION__ < 201112) -# if defined _MSC_VER && 1200 <= _MSC_VER -# define _Noreturn __declspec (noreturn) -# else -# define _Noreturn YY_ATTRIBUTE ((__noreturn__)) -# endif -#endif - -/* Suppress unused-variable warnings by "using" E. */ -#if ! defined lint || defined __GNUC__ -# define YYUSE(E) ((void) (E)) -#else -# define YYUSE(E) /* empty */ -#endif - -#if defined __GNUC__ && 407 <= __GNUC__ * 100 + __GNUC_MINOR__ -/* Suppress an incorrect diagnostic about yylval being uninitialized. */ -# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \ - _Pragma ("GCC diagnostic push") \ - _Pragma ("GCC diagnostic ignored \"-Wuninitialized\"")\ - _Pragma ("GCC diagnostic ignored \"-Wmaybe-uninitialized\"") -# define YY_IGNORE_MAYBE_UNINITIALIZED_END \ - _Pragma ("GCC diagnostic pop") -#else -# define YY_INITIAL_VALUE(Value) Value -#endif -#ifndef YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN -# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN -# define YY_IGNORE_MAYBE_UNINITIALIZED_END -#endif -#ifndef YY_INITIAL_VALUE -# define YY_INITIAL_VALUE(Value) /* Nothing. */ -#endif - - -#if ! defined yyoverflow || YYERROR_VERBOSE - -/* The parser invokes alloca or malloc; define the necessary symbols. */ - -# 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 -# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */ - /* Use EXIT_SUCCESS as a witness for stdlib.h. */ -# 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 (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 -void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */ -# endif -# endif -# ifndef YYFREE -# define YYFREE free -# if ! defined free && ! defined EXIT_SUCCESS -void free (void *); /* INFRINGES ON USER NAME SPACE */ -# endif -# endif -# endif -#endif /* ! defined yyoverflow || YYERROR_VERBOSE */ - - -#if (! defined yyoverflow \ - && (! defined __cplusplus \ - || (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; -}; - -/* 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)) \ - + 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 (0) - -#endif - -#if defined YYCOPY_NEEDED && YYCOPY_NEEDED -/* Copy COUNT objects from SRC to DST. The source and destination do - not overlap. */ -# ifndef YYCOPY -# if defined __GNUC__ && 1 < __GNUC__ -# define YYCOPY(Dst, Src, Count) \ - __builtin_memcpy (Dst, Src, (Count) * sizeof (*(Src))) -# else -# define YYCOPY(Dst, Src, Count) \ - do \ - { \ - YYSIZE_T yyi; \ - for (yyi = 0; yyi < (Count); yyi++) \ - (Dst)[yyi] = (Src)[yyi]; \ - } \ - while (0) -# endif -# endif -#endif /* !YYCOPY_NEEDED */ - -/* YYFINAL -- State number of the termination state. */ -#define YYFINAL 120 -/* YYLAST -- Last index in YYTABLE. */ -#define YYLAST 2554 - -/* YYNTOKENS -- Number of terminals. */ -#define YYNTOKENS 187 -/* YYNNTS -- Number of nonterminals. */ -#define YYNNTS 10 -/* YYNRULES -- Number of rules. */ -#define YYNRULES 203 -/* YYNSTATES -- Number of states. */ -#define YYNSTATES 628 - -/* YYTRANSLATE[YYX] -- Symbol number corresponding to YYX as returned - by yylex, with out-of-bounds checking. */ -#define YYUNDEFTOK 2 -#define YYMAXUTOK 418 - -#define YYTRANSLATE(YYX) \ - ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) - -/* YYTRANSLATE[TOKEN-NUM] -- Symbol number corresponding to TOKEN-NUM - as returned by yylex, without out-of-bounds checking. */ -static const yytype_uint8 yytranslate[] = -{ - 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 172, 2, 175, 186, 178, 168, 2, - 181, 182, 176, 173, 183, 174, 184, 177, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 166, 164, - 169, 170, 171, 165, 180, 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, 179, 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, 167, 2, 185, 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, 32, 33, 34, - 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, - 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, - 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, - 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, - 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, - 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, - 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, - 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, - 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, - 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, - 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, - 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, - 155, 156, 157, 158, 159, 160, 161, 162, 163 -}; - -#if YYDEBUG - /* YYRLINE[YYN] -- Source line where rule number YYN was defined. */ -static const yytype_uint16 yyrline[] = -{ - 0, 321, 321, 322, 335, 336, 337, 338, 339, 340, - 341, 342, 346, 348, 351, 352, 353, 354, 357, 359, - 361, 363, 365, 367, 369, 381, 394, 396, 402, 405, - 422, 423, 425, 426, 427, 428, 429, 430, 431, 434, - 435, 436, 442, 448, 454, 461, 466, 471, 478, 486, - 490, 491, 492, 506, 507, 509, 511, 514, 520, 525, - 529, 531, 533, 535, 576, 577, 578, 579, 580, 582, - 585, 588, 591, 594, 597, 600, 603, 606, 609, 612, - 615, 618, 620, 623, 626, 628, 630, 632, 633, 634, - 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, - 645, 646, 647, 648, 649, 650, 651, 652, 653, 655, - 656, 657, 659, 660, 661, 662, 663, 664, 665, 666, - 668, 672, 674, 675, 676, 677, 678, 679, 680, 681, - 682, 683, 685, 687, 690, 692, 694, 697, 700, 703, - 706, 708, 710, 713, 714, 715, 716, 718, 719, 720, - 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, - 731, 732, 733, 734, 735, 736, 737, 738, 752, 753, - 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, - 764, 765, 766, 767, 768, 769, 770, 773, 774, 777, - 778, 781, 784, 787, 790, 794, 799, 800, 803, 804, - 805, 806, 808, 809 -}; -#endif - -#if YYDEBUG || YYERROR_VERBOSE || 0 -/* 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", "STRING", "COL", "NUMBER", "FNUMBER", - "RANGE", "VAR", "WORD", "MAPWORD", "PLUGIN", "S_SHOW", "S_HIDE", - "S_SHOWROW", "S_HIDEROW", "S_SHOWCOL", "S_HIDECOL", "S_MARK", - "S_AUTOJUS", "S_PAD", "S_DATEFMT", "S_FORMAT", "S_FMT", "S_LET", - "S_LABEL", "S_LEFTSTRING", "S_RIGHTSTRING", "S_LEFTJUSTIFY", - "S_RIGHTJUSTIFY", "S_CENTER", "S_SORT", "S_FILTERON", "S_GOTO", "S_SET", - "S_LOCK", "S_UNLOCK", "S_DEFINE", "S_UNDEFINE", "S_EVAL", "S_SEVAL", - "S_GETNUM", "S_GETSTRING", "S_GETEXP", "S_GETFMT", "S_GETFORMAT", - "S_RECALC", "S_QUIT", "S_IMAP", "S_NMAP", "S_INOREMAP", "S_NNOREMAP", - "S_NUNMAP", "S_IUNMAP", "S_COLOR", "S_CELLCOLOR", "S_REDEFINE_COLOR", - "K_ERROR", "K_INVALID", "K_FIXED", "K_SUM", "K_PROD", "K_AVG", - "K_STDDEV", "K_COUNT", "K_ROWS", "K_COLS", "K_ABS", "K_ACOS", "K_ASIN", - "K_ATAN", "K_ATAN2", "K_CEIL", "K_COS", "K_EXP", "K_FABS", "K_FLOOR", - "K_HYPOT", "K_LN", "K_LOG", "K_PI", "K_POW", "K_SIN", "K_SQRT", "K_TAN", - "K_DTR", "K_RTD", "K_MAX", "K_MIN", "K_RND", "K_ROUND", "K_IF", "K_PV", - "K_FV", "K_PMT", "K_HOUR", "K_MINUTE", "K_SECOND", "K_MONTH", "K_DAY", - "K_YEAR", "K_NOW", "K_DATE", "K_DTS", "K_TTS", "K_FMT", "K_SUBSTR", - "K_UPPER", "K_LOWER", "K_CAPITAL", "K_STON", "K_SLEN", "K_EQS", "K_EXT", - "K_NVAL", "K_SVAL", "K_LOOKUP", "K_HLOOKUP", "K_VLOOKUP", "K_INDEX", - "K_STINDEX", "K_AUTO", "K_AUTOCALC", "K_AUTOINSERT", "K_AUTOWRAP", - "K_CSLOP", "K_BYROWS", "K_BYCOLS", "K_OPTIMIZE", "K_ITERATIONS", - "K_NUMERIC", "K_PRESCALE", "K_EXTFUN", "K_CELLCUR", "K_TOPROW", - "K_COLOR", "K_COLORNEG", "K_COLORERR", "K_BRAILLE", "K_TBLSTYLE", - "K_TBL", "K_LATEX", "K_SLATEX", "K_TEX", "K_FRAME", "K_RNDTOEVEN", - "K_FILENAME", "K_MYROW", "K_MYCOL", "K_LASTROW", "K_LASTCOL", "K_COLTOA", - "K_CRACTION", "K_CRROW", "K_CRCOL", "K_ROWLIMIT", "K_COLLIMIT", - "K_PAGESIZE", "K_NUMITER", "K_ERR", "K_LOCALE", "K_SET8BIT", "K_ASCII", - "K_CHR", "';'", "'?'", "':'", "'|'", "'&'", "'<'", "'='", "'>'", "'!'", - "'+'", "'-'", "'#'", "'*'", "'/'", "'%'", "'^'", "'@'", "'('", "')'", - "','", "'.'", "'~'", "'$'", "$accept", "command", "term", "e", - "expr_list", "range", "var", "var_or_range", "num", "strarg", YY_NULLPTR -}; -#endif - -# ifdef YYPRINT -/* YYTOKNUM[NUM] -- (External) token number corresponding to the - (internal) symbol number NUM (which must be that of a token). */ -static const yytype_uint16 yytoknum[] = -{ - 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, 287, 288, 289, 290, 291, 292, 293, 294, - 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, - 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, - 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, - 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, - 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, - 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, - 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, - 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, - 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, - 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, - 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, - 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, - 415, 416, 417, 418, 59, 63, 58, 124, 38, 60, - 61, 62, 33, 43, 45, 35, 42, 47, 37, 94, - 64, 40, 41, 44, 46, 126, 36 -}; -# endif - -#define YYPACT_NINF -171 - -#define yypact_value_is_default(Yystate) \ - (!!((Yystate) == (-171))) - -#define YYTABLE_NINF -198 - -#define yytable_value_is_error(Yytable_value) \ - (!!((Yytable_value) == (-198))) - - /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing - STATE-NUM. */ -static const yytype_int16 yypact[] = -{ - 824, -171, 26, 28, -1, 14, 23, 32, 37, 43, - 50, 10, 59, 21, 21, 21, 21, 21, 21, 21, - 21, 21, 21, 45, 21, 21, 12, 21, 422, 21, - 21, 21, 21, 61, -171, -171, 64, 66, 69, 72, - 88, 95, 96, 21, 97, 68, -171, -171, -171, -171, - -100, -65, -64, -63, 21, -62, 30, -171, 0, -171, - -171, 101, -171, -59, 109, 110, 111, -57, -54, -52, - -50, -171, -171, -171, 126, -59, -171, -171, -171, -171, - -171, 65, 65, 127, 131, 21, -171, -171, -171, -171, - -171, 21, -171, -171, -48, -171, -171, 422, 422, 422, - 567, 439, 422, -171, 2340, -171, -171, -171, -171, -171, - -171, 138, 139, 140, 141, -171, -171, -171, 142, 144, - -171, 145, 147, 143, 149, 21, 151, 6, -171, -171, - 152, 35, 31, -171, 153, -171, 422, 422, 422, 422, - -171, -171, -171, -171, -171, -171, -171, -59, 154, -171, - -171, -171, 422, -35, -25, -21, -20, -16, -14, -13, - -12, -11, -10, -8, -2, 1, 2, 13, 16, 18, - 41, 44, 46, -171, 51, 53, 62, 122, 123, 124, - 125, 130, 133, 135, 136, 137, 156, 157, 158, 160, - 170, 172, 173, 174, -171, 177, 178, 179, 180, 181, - 182, 183, 184, 185, 186, 189, 190, 191, 192, 193, - 201, 202, 208, 209, 210, -171, -171, -171, -171, 211, - -171, -171, 212, 213, 214, 672, 1281, -171, 422, 422, - 422, 422, 4, 422, 56, 11, 422, 422, 422, 422, - 422, 422, 422, -171, -171, -171, -171, -171, 175, -171, - -171, -171, -171, -171, -171, 187, -171, -171, 219, -171, - 235, 2340, 2340, 2340, 2340, 3, -171, 21, 21, 21, - 21, 21, 21, 21, 422, 422, 422, 422, 422, 422, - 422, 422, 422, 422, 422, 422, 422, 422, 422, 422, - 422, 422, 422, 321, 321, 422, 422, 422, 422, 422, - 422, 422, 422, 422, 422, 422, 422, 422, 422, 422, - 422, 422, 422, 422, 422, 422, 422, 422, 422, 422, - 422, 321, 321, 321, 321, 321, 422, 422, 422, 422, - 422, 344, -171, 2340, 2324, 363, 2364, 422, 422, 2375, - 2375, 422, 2375, 422, -155, -155, -155, 128, 128, 128, - -171, 239, -171, -171, -171, 240, 129, 221, 222, 224, - 225, 228, 229, 231, 232, 237, 241, 247, 1297, 1313, - 1329, 1345, 737, 1361, 1377, 1393, 1409, 1425, 754, 1441, - 1457, 771, 1473, 1489, 1505, 1521, 1537, 788, 234, -140, - 249, 805, 238, 251, 1553, 822, 839, 856, 873, 890, - 1569, 1585, 1601, 1617, 1633, 1649, 524, 907, 924, 941, - 958, 1665, 1681, 1697, 1713, 1729, 975, 992, 1009, 1026, - 1043, 252, -59, 1060, 253, 1077, 254, 1094, 256, 1111, - 257, 1745, 1761, 1777, 1793, 1809, 422, 422, 2375, 2375, - 2375, 2375, -171, -171, 422, -171, 422, -171, 422, -171, - 422, -171, 422, -171, -171, -171, -171, -171, -171, -171, - 422, -171, -171, -171, -171, -171, 422, -171, -171, 422, - -171, -171, -171, -171, -171, 422, 422, -171, 422, 422, - -171, -171, 422, 422, 422, 422, 422, -171, -171, -171, - -171, -171, -171, -171, 422, 422, 422, 422, 422, -171, - -171, -171, -171, -171, 422, 422, 422, 422, 21, 422, - 21, 422, 21, 422, 21, 422, 21, 422, -171, -171, - -171, -171, -171, -171, 2353, 1825, 1841, 1857, 1873, 1889, - 1905, 1921, 1937, 2340, -139, 1953, -137, 1969, 1985, 1128, - 1145, 1162, 1179, 2001, 1196, 1213, 2017, 1230, 2033, 2049, - 2065, 2081, 264, 2097, 266, 1247, 267, 1264, 270, 629, - 271, 717, -171, -171, -171, -171, -171, -171, -171, -171, - -171, 422, -171, -171, -171, -171, 422, 422, 422, 422, - -171, 422, 422, -171, 422, -171, -171, -171, -171, -171, - -171, 422, 422, 422, 422, -171, -171, 422, -171, -171, - 422, 2340, 2113, 2129, 2145, 2161, 2177, 2193, 2209, 2225, - 2241, 2257, 2273, 2289, 2305, -171, -171, -171, -171, -171, - -171, -171, -171, -171, -171, -171, -171, -171 -}; - - /* YYDEFACT[STATE-NUM] -- Default reduction number in state STATE-NUM. - Performed when YYTABLE does not specify something else to do. Zero - means the default is an error. */ -static const yytype_uint8 yydefact[] = -{ - 0, 65, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 58, 57, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 16, 17, 14, 15, - 21, 20, 19, 18, 0, 31, 0, 13, 0, 190, - 195, 0, 196, 197, 0, 0, 0, 0, 0, 0, - 0, 7, 8, 9, 0, 0, 29, 35, 198, 199, - 38, 0, 0, 0, 0, 33, 34, 39, 40, 202, - 203, 0, 55, 153, 150, 151, 167, 0, 0, 0, - 0, 0, 0, 174, 56, 66, 59, 60, 61, 63, - 62, 0, 0, 0, 0, 45, 46, 47, 0, 0, - 1, 0, 0, 0, 0, 26, 0, 51, 52, 191, - 0, 0, 0, 12, 0, 11, 3, 0, 0, 0, - 28, 201, 200, 36, 37, 32, 53, 54, 0, 155, - 148, 149, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 152, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 118, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 157, 158, 159, 160, 0, - 165, 166, 0, 0, 0, 0, 0, 154, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 42, 41, 44, 43, 48, 0, 23, - 25, 22, 24, 27, 30, 0, 193, 192, 0, 189, - 0, 2, 4, 5, 6, 0, 67, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 147, 176, 0, 181, 180, 0, 0, 177, - 178, 0, 179, 0, 168, 169, 186, 170, 171, 172, - 173, 0, 50, 194, 10, 0, 196, 0, 196, 0, - 196, 0, 196, 0, 196, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 196, 66, - 0, 0, 196, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 66, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 182, 184, - 185, 183, 49, 120, 0, 69, 0, 71, 0, 73, - 0, 75, 0, 77, 85, 86, 87, 88, 89, 90, - 0, 92, 93, 94, 95, 96, 0, 98, 99, 0, - 101, 102, 103, 104, 105, 0, 0, 79, 0, 0, - 82, 106, 0, 0, 0, 0, 0, 112, 113, 114, - 115, 116, 117, 125, 0, 0, 0, 0, 0, 128, - 129, 130, 122, 123, 0, 0, 0, 0, 0, 0,< |