Apache2
util_expr_parse.h
Go to the documentation of this file.
1 /* A Bison parser, made by GNU Bison 3.0.5. */
2 
3 /* Bison interface for Yacc-like parsers in C
4 
5  Copyright (C) 1984, 1989-1990, 2000-2015, 2018 Free Software Foundation, Inc.
6 
7  This program is free software: you can redistribute it and/or modify
8  it under the terms of the GNU General Public License as published by
9  the Free Software Foundation, either version 3 of the License, or
10  (at your option) any later version.
11 
12  This program is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  GNU General Public License for more details.
16 
17  You should have received a copy of the GNU General Public License
18  along with this program. If not, see <http://www.gnu.org/licenses/>. */
19 
20 /* As a special exception, you may create a larger work that contains
21  part or all of the Bison parser skeleton and distribute that work
22  under terms of your choice, so long as that work isn't itself a
23  parser generator using the skeleton or a modified version thereof
24  as a parser skeleton. Alternatively, if you modify or redistribute
25  the parser skeleton itself, you may (at your option) remove this
26  special exception, which will cause the skeleton and the resulting
27  Bison output files to be licensed under the GNU General Public
28  License without this special exception.
29 
30  This special exception was added by the Free Software Foundation in
31  version 2.2 of Bison. */
32 
33 #ifndef YY_AP_EXPR_YY_UTIL_EXPR_PARSE_H_INCLUDED
34 # define YY_AP_EXPR_YY_UTIL_EXPR_PARSE_H_INCLUDED
35 /* Debug traces. */
36 #ifndef YYDEBUG
37 # define YYDEBUG 0
38 #endif
39 #if YYDEBUG
40 extern int ap_expr_yydebug;
41 #endif
42 
43 /* Token type. */
44 #ifndef YYTOKENTYPE
45 # define YYTOKENTYPE
47  {
48  T_TRUE = 258,
49  T_FALSE = 259,
50  T_EXPR_BOOL = 260,
52  T_ERROR = 262,
53  T_DIGIT = 263,
54  T_ID = 264,
55  T_STRING = 265,
56  T_REGEX = 266,
57  T_REGSUB = 267,
58  T_REG_MATCH = 268,
59  T_REG_SUBST = 269,
60  T_REG_FLAGS = 270,
61  T_BACKREF = 271,
62  T_OP_UNARY = 272,
63  T_OP_BINARY = 273,
64  T_STR_BEGIN = 274,
65  T_STR_END = 275,
66  T_VAR_BEGIN = 276,
67  T_VAR_END = 277,
69  T_VAREXP_END = 279,
70  T_OP_EQ = 280,
71  T_OP_NE = 281,
72  T_OP_LT = 282,
73  T_OP_LE = 283,
74  T_OP_GT = 284,
75  T_OP_GE = 285,
76  T_OP_REG = 286,
77  T_OP_NRE = 287,
78  T_OP_IN = 288,
79  T_OP_STR_EQ = 289,
80  T_OP_STR_NE = 290,
81  T_OP_STR_LT = 291,
82  T_OP_STR_LE = 292,
83  T_OP_STR_GT = 293,
84  T_OP_STR_GE = 294,
85  T_OP_CONCAT = 295,
86  T_OP_JOIN = 296,
87  T_OP_SPLIT = 297,
88  T_OP_SUB = 298,
89  T_OP_OR = 299,
90  T_OP_AND = 300,
91  T_OP_NOT = 301
92  };
93 #endif
94 
95 /* Value type. */
96 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
97 
98 union YYSTYPE
99 {
100 #line 35 "util_expr_parse.y" /* yacc.c:1910 */
101 
102  char *cpVal;
104  int num;
105 
106 #line 107 "util_expr_parse.h" /* yacc.c:1910 */
107 };
108 
109 typedef union YYSTYPE YYSTYPE;
110 # define YYSTYPE_IS_TRIVIAL 1
111 # define YYSTYPE_IS_DECLARED 1
112 #endif
113 
114 
115 
117 
118 #endif /* !YY_AP_EXPR_YY_UTIL_EXPR_PARSE_H_INCLUDED */
Definition: util_expr_private.h:77
Definition: util_expr_private.h:93
Definition: util_expr_parse.h:99
int num
Definition: util_expr_parse.h:104
ap_expr_t * exVal
Definition: util_expr_parse.h:103
char * cpVal
Definition: util_expr_parse.h:102
yytokentype
Definition: util_expr_parse.h:47
@ T_BACKREF
Definition: util_expr_parse.h:61
@ T_OP_STR_NE
Definition: util_expr_parse.h:80
@ T_OP_CONCAT
Definition: util_expr_parse.h:85
@ T_OP_STR_GE
Definition: util_expr_parse.h:84
@ T_OP_STR_LT
Definition: util_expr_parse.h:81
@ T_REGEX
Definition: util_expr_parse.h:56
@ T_STR_END
Definition: util_expr_parse.h:65
@ T_OP_IN
Definition: util_expr_parse.h:78
@ T_OP_STR_LE
Definition: util_expr_parse.h:82
@ T_REG_MATCH
Definition: util_expr_parse.h:58
@ T_STRING
Definition: util_expr_parse.h:55
@ T_OP_SPLIT
Definition: util_expr_parse.h:87
@ T_OP_STR_EQ
Definition: util_expr_parse.h:79
@ T_ERROR
Definition: util_expr_parse.h:52
@ T_EXPR_BOOL
Definition: util_expr_parse.h:50
@ T_VAREXP_END
Definition: util_expr_parse.h:69
@ T_OP_REG
Definition: util_expr_parse.h:76
@ T_OP_EQ
Definition: util_expr_parse.h:70
@ T_TRUE
Definition: util_expr_parse.h:48
@ T_VAR_BEGIN
Definition: util_expr_parse.h:66
@ T_OP_UNARY
Definition: util_expr_parse.h:62
@ T_ID
Definition: util_expr_parse.h:54
@ T_REGSUB
Definition: util_expr_parse.h:57
@ T_OP_NE
Definition: util_expr_parse.h:71
@ T_OP_SUB
Definition: util_expr_parse.h:88
@ T_VAREXP_BEGIN
Definition: util_expr_parse.h:68
@ T_OP_OR
Definition: util_expr_parse.h:89
@ T_OP_NOT
Definition: util_expr_parse.h:91
@ T_OP_JOIN
Definition: util_expr_parse.h:86
@ T_OP_STR_GT
Definition: util_expr_parse.h:83
@ T_OP_BINARY
Definition: util_expr_parse.h:63
@ T_REG_SUBST
Definition: util_expr_parse.h:59
@ T_OP_LE
Definition: util_expr_parse.h:73
@ T_REG_FLAGS
Definition: util_expr_parse.h:60
@ T_OP_GE
Definition: util_expr_parse.h:75
@ T_OP_GT
Definition: util_expr_parse.h:74
@ T_OP_NRE
Definition: util_expr_parse.h:77
@ T_FALSE
Definition: util_expr_parse.h:49
@ T_DIGIT
Definition: util_expr_parse.h:53
@ T_EXPR_STRING
Definition: util_expr_parse.h:51
@ T_VAR_END
Definition: util_expr_parse.h:67
@ T_OP_LT
Definition: util_expr_parse.h:72
@ T_OP_AND
Definition: util_expr_parse.h:90
@ T_STR_BEGIN
Definition: util_expr_parse.h:64
int ap_expr_yyparse(ap_expr_parse_ctx_t *ctx)