"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "parser.h" between
jq-1.5.tar.gz and jq-1.6.tar.gz

About: jq is a lightweight and flexible command-line JSON processor.

parser.h  (jq-1.5):parser.h  (jq-1.6)
/* A Bison parser, made by GNU Bison 3.0.2. */ /* A Bison parser, made by GNU Bison 3.0.4. */
/* Bison interface for Yacc-like parsers in C /* Bison interface for Yacc-like parsers in C
Copyright (C) 1984, 1989-1990, 2000-2013 Free Software Foundation, Inc. Copyright (C) 1984, 1989-1990, 2000-2015 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify 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 it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or the Free Software Foundation, either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
This program is distributed in the hope that it will be useful, This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details. GNU General Public License for more details.
skipping to change at line 33 skipping to change at line 33
parser generator using the skeleton or a modified version thereof parser generator using the skeleton or a modified version thereof
as a parser skeleton. Alternatively, if you modify or redistribute as a parser skeleton. Alternatively, if you modify or redistribute
the parser skeleton itself, you may (at your option) remove this the parser skeleton itself, you may (at your option) remove this
special exception, which will cause the skeleton and the resulting special exception, which will cause the skeleton and the resulting
Bison output files to be licensed under the GNU General Public Bison output files to be licensed under the GNU General Public
License without this special exception. License without this special exception.
This special exception was added by the Free Software Foundation in This special exception was added by the Free Software Foundation in
version 2.2 of Bison. */ version 2.2 of Bison. */
#ifndef YY_YY_PARSER_H_INCLUDED #ifndef YY_YY_SRC_PARSER_H_INCLUDED
# define YY_YY_PARSER_H_INCLUDED # define YY_YY_SRC_PARSER_H_INCLUDED
/* Debug traces. */ /* Debug traces. */
#ifndef YYDEBUG #ifndef YYDEBUG
# define YYDEBUG 0 # define YYDEBUG 0
#endif #endif
#if YYDEBUG #if YYDEBUG
extern int yydebug; extern int yydebug;
#endif #endif
/* "%code requires" blocks. */ /* "%code requires" blocks. */
#line 11 "parser.y" /* yacc.c:1909 */ #line 11 "src/parser.y" /* yacc.c:1909 */
#include "locfile.h" #include "locfile.h"
struct lexer_param; struct lexer_param;
#define YYLTYPE location #define YYLTYPE location
#define YYLLOC_DEFAULT(Loc, Rhs, N) \ #define YYLLOC_DEFAULT(Loc, Rhs, N) \
do { \ do { \
if (N) { \ if (N) { \
(Loc).start = YYRHSLOC(Rhs, 1).start; \ (Loc).start = YYRHSLOC(Rhs, 1).start; \
(Loc).end = YYRHSLOC(Rhs, N).end; \ (Loc).end = YYRHSLOC(Rhs, N).end; \
} else { \ } else { \
(Loc).start = YYRHSLOC(Rhs, 0).end; \ (Loc).start = YYRHSLOC(Rhs, 0).end; \
(Loc).end = YYRHSLOC(Rhs, 0).end; \ (Loc).end = YYRHSLOC(Rhs, 0).end; \
} \ } \
} while (0) } while (0)
#line 61 "parser.h" /* yacc.c:1909 */ #line 61 "src/parser.h" /* yacc.c:1909 */
/* Token type. */ /* Token type. */
#ifndef YYTOKENTYPE #ifndef YYTOKENTYPE
# define YYTOKENTYPE # define YYTOKENTYPE
enum yytokentype enum yytokentype
{ {
INVALID_CHARACTER = 258, INVALID_CHARACTER = 258,
IDENT = 259, IDENT = 259,
FIELD = 260, FIELD = 260,
LITERAL = 261, LITERAL = 261,
skipping to change at line 104 skipping to change at line 104
BREAK = 285, BREAK = 285,
LOC = 286, LOC = 286,
SETPIPE = 287, SETPIPE = 287,
SETPLUS = 288, SETPLUS = 288,
SETMINUS = 289, SETMINUS = 289,
SETMULT = 290, SETMULT = 290,
SETDIV = 291, SETDIV = 291,
SETDEFINEDOR = 292, SETDEFINEDOR = 292,
LESSEQ = 293, LESSEQ = 293,
GREATEREQ = 294, GREATEREQ = 294,
QQSTRING_START = 295, ALTERNATION = 295,
QQSTRING_TEXT = 296, QQSTRING_START = 296,
QQSTRING_INTERP_START = 297, QQSTRING_TEXT = 297,
QQSTRING_INTERP_END = 298, QQSTRING_INTERP_START = 298,
QQSTRING_END = 299, QQSTRING_INTERP_END = 299,
FUNCDEF = 300, QQSTRING_END = 300,
NONOPT = 301 FUNCDEF = 301,
NONOPT = 302
}; };
#endif #endif
/* Tokens. */ /* Tokens. */
#define INVALID_CHARACTER 258 #define INVALID_CHARACTER 258
#define IDENT 259 #define IDENT 259
#define FIELD 260 #define FIELD 260
#define LITERAL 261 #define LITERAL 261
#define FORMAT 262 #define FORMAT 262
#define REC 263 #define REC 263
#define SETMOD 264 #define SETMOD 264
skipping to change at line 151 skipping to change at line 152
#define BREAK 285 #define BREAK 285
#define LOC 286 #define LOC 286
#define SETPIPE 287 #define SETPIPE 287
#define SETPLUS 288 #define SETPLUS 288
#define SETMINUS 289 #define SETMINUS 289
#define SETMULT 290 #define SETMULT 290
#define SETDIV 291 #define SETDIV 291
#define SETDEFINEDOR 292 #define SETDEFINEDOR 292
#define LESSEQ 293 #define LESSEQ 293
#define GREATEREQ 294 #define GREATEREQ 294
#define QQSTRING_START 295 #define ALTERNATION 295
#define QQSTRING_TEXT 296 #define QQSTRING_START 296
#define QQSTRING_INTERP_START 297 #define QQSTRING_TEXT 297
#define QQSTRING_INTERP_END 298 #define QQSTRING_INTERP_START 298
#define QQSTRING_END 299 #define QQSTRING_INTERP_END 299
#define FUNCDEF 300 #define QQSTRING_END 300
#define NONOPT 301 #define FUNCDEF 301
#define NONOPT 302
/* Value type. */ /* Value type. */
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
typedef union YYSTYPE YYSTYPE;
union YYSTYPE union YYSTYPE
{ {
#line 31 "parser.y" /* yacc.c:1909 */ #line 31 "src/parser.y" /* yacc.c:1909 */
jv literal; jv literal;
block blk; block blk;
#line 170 "parser.h" /* yacc.c:1909 */ #line 172 "src/parser.h" /* yacc.c:1909 */
}; };
typedef union YYSTYPE YYSTYPE;
# define YYSTYPE_IS_TRIVIAL 1 # define YYSTYPE_IS_TRIVIAL 1
# define YYSTYPE_IS_DECLARED 1 # define YYSTYPE_IS_DECLARED 1
#endif #endif
/* Location type. */ /* Location type. */
#if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED #if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED
typedef struct YYLTYPE YYLTYPE; typedef struct YYLTYPE YYLTYPE;
struct YYLTYPE struct YYLTYPE
{ {
int first_line; int first_line;
int first_column; int first_column;
int last_line; int last_line;
int last_column; int last_column;
}; };
# define YYLTYPE_IS_DECLARED 1 # define YYLTYPE_IS_DECLARED 1
# define YYLTYPE_IS_TRIVIAL 1 # define YYLTYPE_IS_TRIVIAL 1
#endif #endif
int yyparse (block* answer, int* errors, struct locfile* locations, struct lexer _param* lexer_param_ptr); int yyparse (block* answer, int* errors, struct locfile* locations, struct lexer _param* lexer_param_ptr);
#endif /* !YY_YY_PARSER_H_INCLUDED */ #endif /* !YY_YY_SRC_PARSER_H_INCLUDED */
 End of changes. 12 change blocks. 
23 lines changed or deleted 27 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)