mirror of https://gitee.com/bigwinds/arangodb
new bison 3
This commit is contained in:
parent
1d9c133bf9
commit
6ea76eeb9c
File diff suppressed because it is too large
Load Diff
|
@ -1,8 +1,8 @@
|
||||||
/* A Bison parser, made by GNU Bison 2.5. */
|
/* A Bison parser, made by GNU Bison 3.0.2. */
|
||||||
|
|
||||||
/* Bison interface for Yacc-like parsers in C
|
/* Bison interface for Yacc-like parsers in C
|
||||||
|
|
||||||
Copyright (C) 1984, 1989-1990, 2000-2011 Free Software Foundation, Inc.
|
Copyright (C) 1984, 1989-1990, 2000-2013 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
|
||||||
|
@ -30,106 +30,110 @@
|
||||||
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_AHUACATL_ARANGOD_AHUACATL_AHUACATL_GRAMMAR_H_INCLUDED
|
||||||
/* Tokens. */
|
# define YY_AHUACATL_ARANGOD_AHUACATL_AHUACATL_GRAMMAR_H_INCLUDED
|
||||||
#ifndef YYTOKENTYPE
|
/* Debug traces. */
|
||||||
# define YYTOKENTYPE
|
#ifndef YYDEBUG
|
||||||
/* Put the tokens into the symbol table, so that GDB and other debuggers
|
# define YYDEBUG 0
|
||||||
know about them. */
|
#endif
|
||||||
enum yytokentype {
|
#if YYDEBUG
|
||||||
T_END = 0,
|
extern int Ahuacatldebug;
|
||||||
T_FOR = 258,
|
|
||||||
T_LET = 259,
|
|
||||||
T_FILTER = 260,
|
|
||||||
T_RETURN = 261,
|
|
||||||
T_COLLECT = 262,
|
|
||||||
T_SORT = 263,
|
|
||||||
T_LIMIT = 264,
|
|
||||||
T_ASC = 265,
|
|
||||||
T_DESC = 266,
|
|
||||||
T_IN = 267,
|
|
||||||
T_INTO = 268,
|
|
||||||
T_NULL = 269,
|
|
||||||
T_TRUE = 270,
|
|
||||||
T_FALSE = 271,
|
|
||||||
T_STRING = 272,
|
|
||||||
T_QUOTED_STRING = 273,
|
|
||||||
T_INTEGER = 274,
|
|
||||||
T_DOUBLE = 275,
|
|
||||||
T_PARAMETER = 276,
|
|
||||||
T_ASSIGN = 277,
|
|
||||||
T_NOT = 278,
|
|
||||||
T_AND = 279,
|
|
||||||
T_OR = 280,
|
|
||||||
T_EQ = 281,
|
|
||||||
T_NE = 282,
|
|
||||||
T_LT = 283,
|
|
||||||
T_GT = 284,
|
|
||||||
T_LE = 285,
|
|
||||||
T_GE = 286,
|
|
||||||
T_PLUS = 287,
|
|
||||||
T_MINUS = 288,
|
|
||||||
T_TIMES = 289,
|
|
||||||
T_DIV = 290,
|
|
||||||
T_MOD = 291,
|
|
||||||
T_EXPAND = 292,
|
|
||||||
T_QUESTION = 293,
|
|
||||||
T_COLON = 294,
|
|
||||||
T_SCOPE = 295,
|
|
||||||
T_RANGE = 296,
|
|
||||||
T_COMMA = 297,
|
|
||||||
T_OPEN = 298,
|
|
||||||
T_CLOSE = 299,
|
|
||||||
T_DOC_OPEN = 300,
|
|
||||||
T_DOC_CLOSE = 301,
|
|
||||||
T_LIST_OPEN = 302,
|
|
||||||
T_LIST_CLOSE = 303,
|
|
||||||
UPLUS = 304,
|
|
||||||
UMINUS = 305,
|
|
||||||
FUNCCALL = 306,
|
|
||||||
REFERENCE = 307,
|
|
||||||
INDEXED = 308
|
|
||||||
};
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Token type. */
|
||||||
|
#ifndef YYTOKENTYPE
|
||||||
|
# define YYTOKENTYPE
|
||||||
|
enum yytokentype
|
||||||
|
{
|
||||||
|
T_END = 0,
|
||||||
|
T_FOR = 258,
|
||||||
|
T_LET = 259,
|
||||||
|
T_FILTER = 260,
|
||||||
|
T_RETURN = 261,
|
||||||
|
T_COLLECT = 262,
|
||||||
|
T_SORT = 263,
|
||||||
|
T_LIMIT = 264,
|
||||||
|
T_ASC = 265,
|
||||||
|
T_DESC = 266,
|
||||||
|
T_IN = 267,
|
||||||
|
T_INTO = 268,
|
||||||
|
T_NULL = 269,
|
||||||
|
T_TRUE = 270,
|
||||||
|
T_FALSE = 271,
|
||||||
|
T_STRING = 272,
|
||||||
|
T_QUOTED_STRING = 273,
|
||||||
|
T_INTEGER = 274,
|
||||||
|
T_DOUBLE = 275,
|
||||||
|
T_PARAMETER = 276,
|
||||||
|
T_ASSIGN = 277,
|
||||||
|
T_NOT = 278,
|
||||||
|
T_AND = 279,
|
||||||
|
T_OR = 280,
|
||||||
|
T_EQ = 281,
|
||||||
|
T_NE = 282,
|
||||||
|
T_LT = 283,
|
||||||
|
T_GT = 284,
|
||||||
|
T_LE = 285,
|
||||||
|
T_GE = 286,
|
||||||
|
T_PLUS = 287,
|
||||||
|
T_MINUS = 288,
|
||||||
|
T_TIMES = 289,
|
||||||
|
T_DIV = 290,
|
||||||
|
T_MOD = 291,
|
||||||
|
T_EXPAND = 292,
|
||||||
|
T_QUESTION = 293,
|
||||||
|
T_COLON = 294,
|
||||||
|
T_SCOPE = 295,
|
||||||
|
T_RANGE = 296,
|
||||||
|
T_COMMA = 297,
|
||||||
|
T_OPEN = 298,
|
||||||
|
T_CLOSE = 299,
|
||||||
|
T_DOC_OPEN = 300,
|
||||||
|
T_DOC_CLOSE = 301,
|
||||||
|
T_LIST_OPEN = 302,
|
||||||
|
T_LIST_CLOSE = 303,
|
||||||
|
UMINUS = 304,
|
||||||
|
UPLUS = 305,
|
||||||
|
FUNCCALL = 306,
|
||||||
|
REFERENCE = 307,
|
||||||
|
INDEXED = 308
|
||||||
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* Value type. */
|
||||||
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
|
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
|
||||||
typedef union YYSTYPE
|
typedef union YYSTYPE YYSTYPE;
|
||||||
|
union YYSTYPE
|
||||||
{
|
{
|
||||||
|
#line 26 "arangod/Ahuacatl/ahuacatl-grammar.y" /* yacc.c:1915 */
|
||||||
/* Line 2132 of yacc.c */
|
|
||||||
#line 26 "arangod/Ahuacatl/ahuacatl-grammar.y"
|
|
||||||
|
|
||||||
TRI_aql_node_t* node;
|
TRI_aql_node_t* node;
|
||||||
char* strval;
|
char* strval;
|
||||||
bool boolval;
|
bool boolval;
|
||||||
int64_t intval;
|
int64_t intval;
|
||||||
|
|
||||||
|
#line 116 "arangod/Ahuacatl/ahuacatl-grammar.h" /* yacc.c:1915 */
|
||||||
|
};
|
||||||
/* Line 2132 of yacc.c */
|
|
||||||
#line 113 "arangod/Ahuacatl/ahuacatl-grammar.h"
|
|
||||||
} YYSTYPE;
|
|
||||||
# define YYSTYPE_IS_TRIVIAL 1
|
# define YYSTYPE_IS_TRIVIAL 1
|
||||||
# define yystype YYSTYPE /* obsolescent; will be withdrawn */
|
|
||||||
# define YYSTYPE_IS_DECLARED 1
|
# define YYSTYPE_IS_DECLARED 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Location type. */
|
||||||
|
|
||||||
#if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED
|
#if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED
|
||||||
typedef struct YYLTYPE
|
typedef struct YYLTYPE 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;
|
||||||
} YYLTYPE;
|
};
|
||||||
# define yyltype YYLTYPE /* obsolescent; will be withdrawn */
|
|
||||||
# define YYLTYPE_IS_DECLARED 1
|
# define YYLTYPE_IS_DECLARED 1
|
||||||
# define YYLTYPE_IS_TRIVIAL 1
|
# define YYLTYPE_IS_TRIVIAL 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
int Ahuacatlparse (TRI_aql_context_t* const context);
|
||||||
|
|
||||||
|
#endif /* !YY_AHUACATL_ARANGOD_AHUACATL_AHUACATL_GRAMMAR_H_INCLUDED */
|
||||||
|
|
Loading…
Reference in New Issue