| 1 | /* This file is automatically generated by Lemon from input grammar |
| 2 | ** source file "grn_ecmascript.lemon". |
| 3 | */ |
| 4 | /* |
| 5 | ** 2000-05-29cxx . . $ `<external>/4398592474888995393/assert.h:75:11`! |
| 6 | ** |
| 7 | ** The author disclaims copyright to this source code. In place of |
| 8 | ** a legal notcxx . . $ `lib/grn_ecmascript.c:34:9`!ice, here is a blessing: |
| 9 | ** |
| 10 | ** May you do good and not evil. |
| 11 | ** May you find cxx . . $ array_literal_end(20188da24f67d318).forgivenecxx . . $ efs_info#ss for yourself and forgive others. |
| 12 | ** May you share freely, never taking more than you give. |
| 13 | ** |
| 14 | ************cxx . . $ grn_expr#***************cxx . . $ grn_expr#***********cxx . . $ $anonymous_type_3faee4e32dba9587_2#e.*********************************** |
| 15 | ** Driver template for the LEMON parser generator. |
| 16 | ** |
| 17 | ** The "lemon" program processes an LALR(1) input grammar file, then uses |
| 18 | ** this template to construct a parser. The "lemon" program inserts text |
| 19 | ** at each "%%" lincxx . . $ grn_expr_code#e. Also, any "P-a-cxx . . $ _grn_expr#codes.r-s-e" identifcxx . . $ _grn_expr#codes_curr.ier prefix (without the |
| 20 | ** interstitial "-cxx . . $ $anonymous_type_640a68f6a3c9e981_0#op." characters) ccxx . . $ GRN_OP_PUSH.ontained in this template is changed into |
| 21 | ** the valucxx . . $ `lib/grn_error.h:156:9`!e of the %name directive from the grammar. Otherwise, the content |
| 22 | ** of this template is copied straight through into the generate parser |
| 23 | ** source file. |
| 24 | ** |
| 25 | ** The following is the concatenation of all %include directives from the |
| 26 | ** input grammar file: |
| 27 | */ |
| 28 | /************ Begin %include sections frocxx . . $ grn_obj_is_number_family_bulk(a5760e5c319a06ee).m the grammar ***cxx . . $ $anonymous_type_640a68f6a3c9e981_0#value.*********************/ |
| 29 | #line 4 "grn_ecmascript.lemon"cxx . . $ grn_obj_maybe_record_bulk(a5760e5c319a06ee). |
| 30 | |
| 31 | #ifdef assert |
| 32 | # undef assert |
| 33 | #endif |
| 34 | #define assert GRN_ASSERT |
| 35 | |
| 36 | static void |
| 37 | array_literal_end(efs_info *efsi, icxx . . $ `include/groonga/groonga.h:55:9`!nt n_elements) |
| 38 | { |
| 39 | grn_ctx *ctx = efsi->ctx; |
| 40 | grn_expr *e = (grn_expr *)(efsi->e); |
| 41 | |
| 42 | grn_id uvector_domain = GRN_ID_NIL; |
| 43 | int i;cxx . . $ grn_obj# |
| 44 | for (i = n_elements; i > 0; i--)cxx . . $ `include/groonga/groonga.h:55:9`! { |
| 45 | grn_expr_code *code = &(e->ccxx . . $ grn_obj_open(688b82f5c18b4cf9).odes[e->codes_cucxx . . $ `include/groonga/groonga.h:877:9`!rr - i]);cxx . . $ `include/groonga/groonga.h:55:9`! |
| 46 | if (code->op != GRN_OP_PUSH) { |
| 47 | ERR(GRN_FUNCTION_NOT_IMPLEcxx . . $ grn_obj_open(688b82f5c18b4cf9).MENTED,cxx . . $ `include/groonga/groonga.h:875:9`! |
| 48 | "[expr][array-literal] " |
| 49 | "complex expression in array literal isn't supported yet: <%.*s>", |
| 50 | cxx . . $ `lib/grn_error.h:156:9`! (int)(efsi->str_end - efsi->str), |
| 51 | efsi->str); |
| 52 | return; |
| 53 | } |
| 54 | if (!(grn_obj_is_number_family_bulk(ctx, code->value) || |
| 55 | grn_obj_maybe_record_bulk(ctx, code->value))) { |
| 56 | uvector_domaicxx . . $ grn_expr_take_obj(99eba0d3a8372d65).n = GRN_ID_NIcxx . . $ $anonymous_type_3faee4e32dba9587_2#e.L; |
| 57 | break; |
| 58 | } |
| 59 | if (i == n_elcxx . . $ grn_expr_code#ements) { |
| 60 | uvectcxx . . $ grn_obj#or_domain = code->valuecxx . . $ $anonymous_type_640a68f6a3c9e981_0#value.->header.domain; |
| 61 | } else { |
| 62 | if (uvector_domain != code->cxx . . $ grn_vector_add_element_float(d14ed80b83bcdc3d).value->header.domain) { |
| 63 | uvector_domain = GRN_ID_NIL; |
| 64 | break; |
| 65 | } |
| 66 | } |
| 67 | } |
| 68 | |
| 69 | grn_obj *array_litcxx . . $ grn_bulk_write(4609c18fd87cf054).eral; |
| 70 | if (uvector_domain == GRN_ID_NIL) { |
| 71 | array_litercxx . . $ _grn_ctx#rc.al = grn_obj_opcxx . . $ GRN_SUCCESS.en(ctx, GRN_VECTOR, 0, GRN_ID_NIL); |
| 72 | } else { |
| 73 | array_literalcxx . . $ `include/groonga/portability.h:108:11`! = grn_obj_open(ctx, GRN_UVECTOR, 0, uvector_domain); |
| 74 | } |
| 75 | if (!array_literal) { |
| 76 | ERR(GRN_NO_MEMORY_AVAILABLE, |
| 77 | "[expr][array-literal] couldn't create vector: <%.*s>", |
| 78 | (int)(efsi->str_end - efsi->str), |
| 79 | efsi->str); |
| 80 | return; |
| 81 | } |
| 82 | grn_expr_take_ocxx . . $ _grn_expr#codes_curr.bj(ctx, efsi->e, array_literal); |
| 83 | |
| 84 | for (i = n_elements; i > 0; i--) { |
| 85 | grn_expr_code *cocxx . . $ grn_expr_append_obj(1a96b2046350ef54).de = &(e->codcxx . . $ $anonymous_type_3faee4e32dba9587_2#e.es[e->codes_curr - i]);cxx . . $ GRN_OP_PUSH. |
| 86 | grn_obj *element = code->value; |
| 87 | if (uvector_domain == GRN_ID_NIL) { |
| 88 | grn_vector_add_element_float(ctx, |
| 89 | cxx . . $ object_literal_end(20188da24f67d318). cxx . . $ efs_info# array_literal, |
| 90 | GRN_TEXT_VALUE(element), |
| 91 | cxx . . $ grn_ctx# cxx . . $ $anonymous_type_3faee4e32dba9587_2#ctx. GRN_TEXT_LEN(element), |
| 92 | cxx . . $ grn_hash# 0, |
| 93 | cxx . . $ grn_hash_create(db1bba7e0d64660). element->header.domain); |
| 94 | } else { |
| 95 | grn_bulk_write(ctx, array_literal, Gcxx . . $ `include/groonga/table.h:26:9`!RN_BULK_HEAD(element), GRN_BULK_VSIZE(element)); |
| 96 | } |
| 97 | if (ctx->rc != GRN_SUCCESS) {cxx . . $ `include/groonga/groonga.h:820:9`! |
| 98 | char message[GRN_CTX_MSGSIZE]; |
| 99 | gcxx . . $ `lib/grn_error.h:156:9`!rn_strncpy(message, sizeof(message), ctx->errbuf, sizeof(ctx->errbuf)); |
| 100 | ERR(ctx->rc, |
| 101 | "[expr][array-literal] failed to add an element: %s", |
| 102 | message); |
| 103 | return; |
| 104 | } |
| 105 | } |
| 106 | for (i = 0; i < ncxx . . $ grn_expr_take_obj(99eba0d3a8372d65)._elements; i+cxx . . $ $anonymous_type_3faee4e32dba9587_2#e.+) {cxx . . $ grn_obj# |
| 107 | grn_cxx . . $ `lib/grn_db.h:62:9`!expr_dfi_pop(e); |
| 108 | e->codes_curr -= 1; |
| 109 | }cxx . . $ grn_expr# |
| 110 | |
| 111 | grn_expr_append_obj(ctx, efsi->e, array_literal, GRN_OP_PUSH, 1); |
| 112 | } |
| 113 | |
| 114 | static voidcxx . . $ grn_obj# |
| 115 | object_literal_end(efs_info *efsi, int n_properties) |
| 116 | { |
| 117 | grn_ctx *ctx = efsi->ctx; |
| 118 | grn_hashcxx . . $ grn_id# *object_literal =cxx . . $ grn_hash_add(251a256fc515235e). |
| 119 | grn_hash_create(ctx, |
| 120 | NULL, |
| 121 | GRN_TABLE_MAX_KEY_SIZcxx . . $ `include/groonga/groonga.h:2786:9`!E, |
| 122 | sizeof(grn_obj), |
| 123 | GRN_OBJ_KEY_VAR_SIZE|GRN_OBJ_TEMPORARY|GRN_HASH_TINY); |
| 124 | if (!object_literal) {cxx . . $ `include/groonga/groonga.h:55:9`! |
| 125 | ERR(GRN_cxx . . $ grn_rc#NO_MEMORY_AVAcxx . . $ _grn_ctx#rc.ILABLE, |
| 126 | "[expr][object-litecxx . . $ GRN_SUCCESS.ral] couldn't create hash table: <%.*s>", |
| 127 | (int)(efsi->str_end - efsi->cxx . . $ GRN_NO_MEMORY_AVAILABLE.str), |
| 128 | efsi->str); |
| 129 | returcxx . . $ `lib/grn_error.h:156:9`!n; |
| 130 | } |
| 131 | |
| 132 | grn_expr_take_obj(ctx,cxx . . $ `include/groonga/groonga.h:2785:9`! efsi->e, (grn_obj *)(object_literal)); |
| 133 | DB_OBJ(object_literal)->header.domain = GRN_DB_SHORT_TEXT; |
| 134 | |
| 135 | grn_expr *e = (grn_expr *)(efsi->e); |
| 136 | int i; |
| 137 | for (i cxx . . $ `lib/grn_error.h:156:9`!= n_properties; i > 0; i--) { |
| 138 | int base = e->codes_curr - (i * 3); |
| 139 | grn_obj *name = e->codecxx . . $ `include/groonga/groonga.h:2786:9`!s[base].value; |
| 140 | grn_obj *value = e->cxx . . $ `include/groonga/groonga.h:2785:9`!codes[base + 2].value; |
| 141 | |
| 142 | grn_obj *buf; |
| 143 | int added; |
| 144 | grn_id id = grn_hash_cxx . . $ _grn_obj#header.add(ccxx . . $ _grn_obj_header#type.tx, |
| 145 | cxx . . $ `include/groonga/groonga.h:895:9`! object_literal, |
| 146 | cxx . . $ `include/groonga/groonga.h:900:9`! GRN_TEXT_VALUE(name), |
| 147 | cxx . . $ `include/groonga/groonga.h:901:9`! GRN_TEXT_LEN(name), |
| 148 | cxx . . $ `include/groonga/groonga.h:902:9`! (void **)(&buf), |
| 149 | cxx . . $ `include/groonga/groonga.h:947:9`! &acxx . . $ `include/groonga/groonga.h:873:9`!dded);cxx . . $ `include/groonga/groonga.h:55:9`! |
| 150 | if (id == GRNcxx . . $ `include/groonga/groonga.h:2945:9`!_ID_NIL) { |
| 151 | grn_rc rc = ctx->rc; |
| 152 | if (rc == GRNcxx . . $ `include/groonga/groonga.h:877:9`!_SUCCESS) { |
| 153 | rc = GRN_Ncxx . . $ `include/groonga/groonga.h:947:9`!O_MEMORY_AVAILABLE; |
| 154 | }cxx . . $ grn_vector_copy(d825b4ed5bf12304). |
| 155 | ERR(rc, |
| 156 | "[expr][object-literal] failed to add a property: <%.*s>", |
| 157 | (int)GRNcxx . . $ `include/groonga/groonga.h:947:9`!_TEXT_LEN(name), |
| 158 | GRN_TEXTcxx . . $ `include/groonga/groonga.h:2773:9`!_VALUE(name));cxx . . $ `include/groonga/groonga.h:2785:9`! |
| 159 | return; |
| 160 | } |
| 161 | |
| 162 | if (!added) { |
| 163 | ERR(GRN_INVALIcxx . . $ grn_expr_dfi_pop(23f35137d5185d0c).D_ARGUMENT, |
| 164 | "[expr]cxx . . $ _grn_expr#codes_curr.[object-literal] duplicated property name: <%.*s>", |
| 165 | (int)GRN_TEXT_LEN(name), |
| 166 | GRN_TEXT_VAcxx . . $ grn_expr_append_obj(1a96b2046350ef54).LUE(name)); |
| 167 | return; |
| 168 | } |
| 169 | |
| 170 | switch (value->header.type) { |
| 171 | case GRN_TABLE_HASH_KEY : |
| 172 | case GRN_COLUMN_FIX_SIZE : |
| 173 | case GRN_COLUMN_VAR_SIZE : |
| 174 | case GRN_COLUMN_INDEX : |
| 175 | GRN_OBJ_INIT(buf, GRN_PTR, 0, GRN_ID_NIL); |
| 176 | GRN_PTR_SET(ctx, buf, value); |
| 177 | break; |
| 178 | case GRN_VECTOR : |
| 179 | GRN_OBJ_INIT(buf, value->header.type, 0, value->header.domain); |
| 180 | grn_vector_copy(ctx, value, buf); |
| 181 | break; |
| 182 | defaucxx . . $ grn_ctx#lt : |
| 183 | GRNcxx . . $ grn_obj#_OBJ_INIT(buf, value->header.type, 0, value->header.domain); |
| 184 | GRN_TEXT_cxx . . $ `include/groonga/groonga.h:2750:9`!PUT(ctx, buf, GRN_TEXT_VALUE(value), GRN_TEXT_LEN(value)); |
| 185 | break;cxx . . $ `include/groonga/groonga.h:2773:9`! |
| 186 | }cxx . . $ `include/groonga/groonga.h:2775:9`! |
| 187 | } |
| 188 | for (i = 0; i <cxx . . $ `include/groonga/groonga.h:2775:9`! n_properties; i++) { |
| 189 | grn_expr_dfi_cxx . . $ `include/groonga/groonga.h:2775:9`!pop(e); |
| 190 | e->codes_curcxx . . $ `include/groonga/groonga.h:2773:9`!r -= 3; |
| 191 | } |
| 192 | grn_expr_append_obj(ctx, efsi->e, (grn_obj *)(object_literal), |
| 193 | cxx . . $ `include/groonga/groonga.h:2775:9`! GRN_OP_PUSH, 1); |
| 194 | } |
| 195 | #line 196 "grn_cxx . . $ _grn_ctx#rc.ecmascript.c"cxx . . $ GRN_SUCCESS. |
| 196 | /********cxx . . $ `lib/grn_error.h:156:9`!******** End of %include directives **********************************/ |
| 197 | /* These constants specify cxx . . $ `include/groonga/groonga.h:2786:9`!the various numeric valuescxx . . $ `include/groonga/groonga.h:2785:9`! for terminal symbols. |
| 198 | ***************** Begin token definitions *************************************/ |
| 199 | #ifndef GRNcxx . . $ `lib/grn_ecmascript.h:1:9`!_EXPR_Tcxx . . $ `lib/grn_ecmascript.h:1:9`!OKEN_START_OUTPcxx . . $ `include/groonga/groonga.h:334:9`!UT_COLUMNScxx . . $ `lib/grn_ecmascript.h:1:9`! |
| 200 | #define GRN_EXPRcxx . . $ `include/groonga/portability.h:101:11`!_TOKEN_START_OUTPUT_COLUMNS 1 |
| 201 | #define Gcxx . . $ `lib/grn_error.h:156:9`!RN_EXPR_TOKEN_START_ADJUSTER 2 |
| 202 | #define GRN_EXPR_TOKEN_STARcxx . . $ `include/groonga/groonga.h:2786:9`!T_SORT_KEYS cxx . . $ `include/groonga/groonga.h:2785:9`! 3 |
| 203 | #define GRN_EXPR_TOKEN_START_OPTIONS 4 |
| 204 | #define GRN_EXPR_TOKEN_START_QUERY_NO_SYNTAX_ERROR 5 |
| 205 | #define GRN_EXPcxx . . $ `include/groonga/groonga.h:958:9`!R_TOKEN_LOGICAL_AND 6 |
| 206 | #define GRN_EXPR_TOKEN_LOGICAL_AND_NOT 7 |
| 207 | #define GRN_EXPR_TOKEN_LOGICAL_OR 8 |
| 208 | #define GRN_EXPR_TOKEN_NEGATIVE 9 |
| 209 | #define GRN_EXPR_TOKEN_QSTRING 10 |
| 210 | #define GRN_EXPR_TOKEN_PARENL 11 |
| 211 | #define GRN_EXPR_TOKEN_PARENR 12 |
| 212 | #define GRN_EXPR_TOKEN_ADJUST 13 |
| 213 | #define GRN_EXPR_TOKEN_RELATIVE_OP 14 |
| 214 | #define GRN_EXPR_TOKEN_IDENTIFIER 15 |
| 215 | #define GRN_EXPR_TOKEN_BRACEL 16 |
| 216 | #define GRN_EXPR_TOKEN_BRACER 17 |
| 217 | #define GRN_EXPR_TOKEN_EVAL 18 |
| 218 | #define GRN_EXPR_TOKEN_COMMA 19 |
| 219 | #define GRN_EXPR_TOKEN_ASSIGN 20 |
| 220 | #define GRN_EXPR_TOKEN_STAR_ASSIGN 21 |
| 221 | #define GRN_EXPR_TOKcxx . . $ grn_expr_append_op(3b5ca24334c1be34).EN_SLASH_Acxx . . $ $anonymous_type_3faee4e32dba9587_2#ctx.SSIGN cxx . . $ $anonymous_type_3faee4e32dba9587_2#e. 22cxx . . $ grn_int32_value_at(8c185ce357adccf4). |
| 222 | #define GRN_EXPR_TOKEN_MOD_ASSIGN 23 |
| 223 | #define GRN_EXPR_TOKEN_PLUS_ASSIGN 24 |
| 224 | #define GRN_EXPR_TOKcxx . . $ grn_expr_append_op(3b5ca24334c1be34).EN_MINUS_Acxx . . $ $anonymous_type_3faee4e32dba9587_2#ctx.SSIGN cxx . . $ $anonymous_type_3faee4e32dba9587_2#e. cxx . . $ GRN_OP_AND. 25 |
| 225 | #define GRN_EXPR_TOKEN_SHIFTL_ASSIGN 26 |
| 226 | #define GRN_EXPR_TOKEN_SHIFTR_ASSIGN 27 |
| 227 | #define GRN_EXPR_TOKcxx . . $ grn_expr_append_op(3b5ca24334c1be34).EN_SHIFTRRcxx . . $ $anonymous_type_3faee4e32dba9587_2#ctx._ASSIGN cxx . . $ $anonymous_type_3faee4e32dba9587_2#e. 2cxx . . $ GRN_OP_AND_NOT.8 |
| 228 | #define GRN_EXPR_TOKEN_AND_ASSIGN 29 |
| 229 | #define GRN_EXPR_TOKEN_XOR_ASSIGN 30 |
| 230 | #define GRN_EXPR_TOKcxx . . $ grn_expr_append_op(3b5ca24334c1be34).EN_OR_ASSIcxx . . $ $anonymous_type_3faee4e32dba9587_2#ctx.GN cxx . . $ $anonymous_type_3faee4e32dba9587_2#e. cxx . . $ GRN_OP_OR. 31 |
| 231 | #define GRN_EXPR_TOKEN_QUESTION 32 |
| 232 | #define GRN_EXPR_TOKEN_COLON 33 |
| 233 | #define GRN_EXPR_TOKEN_BITWISE_OR 34 |
| 234 | #define GRN_EXPR_cxx . . $ `include/groonga/groonga.h:3244:9`!TOKEN_BITWISE_XOR 35 |
| 235 | #define GRN_EXPR_TOKcxx . . $ grn_expr_append_op(3b5ca24334c1be34).EN_BITWISEcxx . . $ $anonymous_type_3faee4e32dba9587_2#ctx._AND cxx . . $ $anonymous_type_3faee4e32dba9587_2#e. cxx . . $ GRN_OP_ADJUST.36 |
| 236 | #define GRN_EXPR_TOKEN_EQUAL 37 |
| 237 | #define GRN_EXPR_TOKEN_NOT_EQUAL 38 |
| 238 | #define GRN_EXPR_TOKEN_LESS 39 |
| 239 | #define GRN_EXPR_TOKEN_GREATER 40 |
| 240 | #define GRN_EXPR_TOKEN_LESS_EQUAL 41 |
| 241 | #define GRN_EXPR_TOKEN_GREATER_EQUAL 42 |
| 242 | #define GRN_EXPR_TOKEN_IN 43 |
| 243 | #define GRN_EXPR_cxx . . $ `include/groonga/groonga.h:3244:9`!TOKEN_MATCH 44 |
| 244 | #define GRN_EXPR_TOKEN_NEAR 45 |
| 245 | #define GRN_EXPR_TOKEN_NEAR_NO_OFFSET 46 |
| 246 | #define GRN_EXPR_TOKEN_NEAR_PHRASE 47 |
| 247 | #define GRN_EXPcxx . . $ `include/groonga/groonga.h:3239:9`!R_TOKEN_ORDERED_NEAR_PHRASE 48 |
| 248 | #define GRN_EXPR_TOKEN_NEAR_PHRASE_PRODUCT 49 |
| 249 | #define GRN_EXPR_TOKEN_ORDERED_NEAR_PHRASE_PRODUCT 50 |
| 250 | #define GRN_EXPR_TOKEN_SIMILAR 51 |
| 251 | #define Gcxx . . $ grn_obj#RN_EXPR_TOKEN_TERM_EXTRACT 52 |
| 252 | #define GRN_Ecxx . . $ `include/groonga/groonga.h:3248:9`!XPR_TOKEN_QUORUM 53 |
| 253 | #define GRN_EXPcxx . . $ `include/groonga/groonga.h:3239:9`!R_TOKEN_LCP 54 |
| 254 | #define GRN_EXPR_TOKEN_PREFIX 55 |
| 255 | #define GRN_EXPR_Tcxx . . $ GRN_OP_NEAR.OKEN_SUFFIX 56 |
| 256 | #define GRN_EXPR_TOKEN_REGEXcxx . . $ GRN_OP_NEAR_NO_OFFSET.P 57 |
| 257 | #define GRN_EXPR_TOKEN_SHIFTL 58 |
| 258 | #define GRN_EXPR_TOKEN_SHIFTR 59 |
| 259 | #define GRN_EXPR_TOcxx . . $ `include/groonga/groonga.h:3239:9`!KEN_SHIFTRR 60 |
| 260 | #define GRN_Ecxx . . $ grn_obj#XPR_TOKEN_PLUS 61 |
| 261 | #define GRN_EXPR_cxx . . $ `include/groonga/groonga.h:3248:9`!TOKEN_MINUS 62 |
| 262 | #define GRN_EXPR_TOKEN_STAR 63 |
| 263 | #define GRN_EXPR_TOKEN_SLASH 64 |
| 264 | #define GRN_EXPR_TOcxx . . $ `include/groonga/groonga.h:3239:9`!KEN_MOD 65 |
| 265 | #define GRN_EXPR_TOKEN_DELETE 66 |
| 266 | #define GRN_EXPR_TOKEN_INCR 67 |
| 267 | #define GRN_EXPR_TOKEN_DEcxx . . $ GRN_OP_NEAR_PHRASE.CR 68 |
| 268 | #define GRN_EXPR_TOKEN_NOT cxx . . $ GRN_OP_ORDERED_NEAR_PHRASE. 69 |
| 269 | #define GRN_EXPR_TOKEN_BITWISE_NOcxx . . $ GRN_OP_NEAR_PHRASE_PRODUCT.T 70 |
| 270 | #define GRN_EXPR_TOKEN_EXACT cxx . . $ GRN_OP_ORDERED_NEAR_PHRASE_PRODUCT. 71 |
| 271 | #define GRN_EXPR_TOKEN_PARTIAL 72 |
| 272 | #define GRN_EXPR_TOKEN_UNSPLIT 73 |
| 273 | #define GRN_EXPR_TOcxx . . $ `include/groonga/groonga.h:3239:9`!KEN_DECIMAL 74 |
| 274 | #define GRN_EXPR_TOKEN_HEX_INTEGER 75 |
| 275 | #define GRN_EXPR_TOcxx . . $ `include/groonga/groonga.h:3239:9`!KEN_STRING 76 |
| 276 | #define GRN_EXPR_TOKEN_BOOLEAN 77 |
| 277 | #define GRN_Ecxx . . $ grn_obj#XPR_TOKEN_NULL 78 |
| 278 | #define GRN_EXPR_cxx . . $ `include/groonga/groonga.h:3248:9`!TOKEN_BRACKETL 79 |
| 279 | #define GRN_EXPR_TOKEN_BRACKETR 80 |
| 280 | #define GRN_EXPR_TOKEN_DOT 81 |
| 281 | #define GRN_EXPR_TOcxx . . $ `include/groonga/groonga.h:3239:9`!KEN_NONEXISTENT_COLUMN 82 |
| 282 | #endif |
| 283 | /**************** End token definitions ***************************************/ |
| 284 | |
| 285 | /* The next sections is a series of control #defines. |
| 286 | ** various aspects of the generated parser. |
| 287 | ** YYCODETYPE cxx . . $ `include/groonga/groonga.h:3239:9`! is the data type used to store the integer codes |
| 288 | ** that represent terminal and non-terminal symbols. |
| 289 | ** "unsigned char" is used if there are fewer than |
| 290 | ** cxx . . $ GRN_OP_QUORUM. 256 symbols. Larger types otherwise. |
| 291 | ** YYNOCODE is a number of type YYCODETYPE that is not used for |
| 292 | ** any terminal or nonterminal symbol. |
| 293 | ** YYFALLBACK cxx . . $ `include/groonga/groonga.h:3239:9`! If defined, this indicates that one or more tokens |
| 294 | ** (also known as: "terminal symbols") have fall-back |
| 295 | ** values which should be used if the original symbol |
| 296 | ** would not parse. This permits keywords to sometimes |
| 297 | ** be used as identifiers, for example. |
| 298 | ** YYACTIONTYPE is the data type used for "action codes" - numbers |
| 299 | ** that indicate what to do in response to the next |
| 300 | ** token. |
| 301 | ** grn_expcxx . . $ $anonymous_type_3faee4e32dba9587_2#flags.r_parserTOKENTYPE cxx . . $ $anonymous_type_3faee4e32dba9587_2#default_flags.is the data type used for minor type for terminal |
| 302 | ** symbols. Background: A "minor type" is a semantic |
| 303 | ** value associated with a terminal or non-terminal |
| 304 | ** symbols. For example, for an "ID" terminal symbol, |
| 305 | ** the minor type might be the name of the identifier. |
| 306 | ** Each non-terminal can have a different minor type. |
| 307 | ** Terminal symbols all have the same minor type, though. |
| 308 | ** This macros defines the minor type for terminal |
| 309 | ** cxx . . $ grn_expr_append_op(3b5ca24334c1be34). symbocxx . . $ $anonymous_type_3faee4e32dba9587_2#ctx.ls. |
| 310 | ** YYMINORTYPE is the data type used for all minor types. |
| 311 | ** This is typically a union of many types, one of |
| 312 | ** which is grn_expr_parserTOKENTYPE. The entry in the union |
| 313 | ** for terminal symbols is called "yy0". |
| 314 | ** YYSTACKDEPTH cxx . . $ grn_expr_append_op(3b5ca24334c1be34). is thcxx . . $ $anonymous_type_3faee4e32dba9587_2#ctx.e maximumcxx . . $ $anonymous_type_3faee4e32dba9587_2#e. depth of the pcxx . . $ GRN_OP_ASSIGN.arser's stack. If |
| 315 | ** zero the stack is dynamically sized using realloc() |
| 316 | ** grn_expr_parserARG_SDECL A static variable declaration for the %extra_argument |
| 317 | ** grn_expr_parsecxx . . $ grn_expr_append_op(3b5ca24334c1be34).rARG_PDECLcxx . . $ $anonymous_type_3faee4e32dba9587_2#ctx. A pacxx . . $ $anonymous_type_3faee4e32dba9587_2#e.rameter declaration cxx . . $ GRN_OP_STAR_ASSIGN.for the %extra_argument |
| 318 | ** grn_expr_parserARG_PARAM Code to pass %extra_argument as a subroutine parameter |
| 319 | ** grn_expr_parserARG_STORE Code to store %extra_argument into yypParser |
| 320 | ** grn_expr_parsecxx . . $ grn_expr_append_op(3b5ca24334c1be34).rARG_FETCHcxx . . $ $anonymous_type_3faee4e32dba9587_2#ctx. Codecxx . . $ $anonymous_type_3faee4e32dba9587_2#e. to extract %extra_arcxx . . $ GRN_OP_SLASH_ASSIGN.gument from yypParser |
| 321 | ** grn_expr_parserCTX_* As grn_expr_parserARG_ except for %extra_context |
| 322 | ** YYERRORSYMBOL is the code number of the error symbol. If not |
| 323 | ** cxx . . $ grn_expr_append_op(3b5ca24334c1be34). defincxx . . $ $anonymous_type_3faee4e32dba9587_2#ctx.ed, then cxx . . $ $anonymous_type_3faee4e32dba9587_2#e.do no error processcxx . . $ GRN_OP_MOD_ASSIGN.ing. |
| 324 | ** YYNSTATE the combined number of states. |
| 325 | ** YYNRULE the number of rules in the grammar |
| 326 | ** YYNTOKEN cxx . . $ grn_expr_append_op(3b5ca24334c1be34). Numbecxx . . $ $anonymous_type_3faee4e32dba9587_2#ctx.r of termcxx . . $ $anonymous_type_3faee4e32dba9587_2#e.inal symbolscxx . . $ GRN_OP_PLUS_ASSIGN. |
| 327 | ** YY_MAX_SHIFT Maximum value for shift actions |
| 328 | ** YY_MIN_SHIFTREDUCE Minimum value for shift-reduce actions |
| 329 | ** YY_MAX_SHIFTREcxx . . $ grn_expr_append_op(3b5ca24334c1be34).DUCE Maximcxx . . $ $anonymous_type_3faee4e32dba9587_2#ctx.um value cxx . . $ $anonymous_type_3faee4e32dba9587_2#e.for shift-reduce acticxx . . $ GRN_OP_MINUS_ASSIGN.ons |
| 330 | ** YY_ERROR_ACTION The yy_action[] code for syntax error |
| 331 | ** YY_ACCEPT_ACTION The yy_action[] code for accept |
| 332 | ** YY_NO_ACTION cxx . . $ grn_expr_append_op(3b5ca24334c1be34). The ycxx . . $ $anonymous_type_3faee4e32dba9587_2#ctx.y_action[cxx . . $ $anonymous_type_3faee4e32dba9587_2#e.] code for no-opcxx . . $ GRN_OP_SHIFTL_ASSIGN. |
| 333 | ** YY_MIN_REDUCE Minimum value for reduce actions |
| 334 | ** YY_MAX_REDUCE Maximum value for reduce actions |
| 335 | */ |
| 336 | #ifndef INTERFACE |
| 337 | # define INTERFACEcxx . . $ `lib/grn_ecmascript.c:337:10`! 1 |
| 338 | #endifcxx . . $ grn_expr_append_op(3b5ca24334c1be34). |
| 339 | /************* Begin control #defines *****************************************/ |
| 340 | #define YYCODETYPEcxx . . $ `lib/grn_ecmascript.c:340:9`! unsigned char |
| 341 | #define cxx . . $ grn_expr_append_op(3b5ca24334c1be34).YYNOCODEcxx . . $ `lib/grn_ecmascript.c:341:9`! 122cxx . . $ grn_expr_append_op(3b5ca24334c1be34). |
| 342 | #define YYACTIONTYPEcxx . . $ `lib/grn_ecmascript.c:342:9`! unsigned short int |
| 343 | #define grn_expr_parserTOKENTYPEcxx . . $ `lib/grn_ecmascript.c:343:9`! int |
| 344 | typedef cxx . . $ grn_expr_append_op(3b5ca24334c1be34).unioncxx . . $ $anonymous_type_d3a40ffe8691b635_0# {cxx . . $ grn_expr_append_op(3b5ca24334c1be34). |
| 345 | int yyinitcxx . . $ $anonymous_type_d3a40ffe8691b635_0#yyinit.; |
| 346 | grn_expr_parserTOKENTYPEcxx . . $ `lib/grn_ecmascript.c:343:9`! yy0cxx . . $ $anonymous_type_d3a40ffe8691b635_0#yy0.; |
| 347 | void * cxx . . $ grn_expr_append_op(3b5ca24334c1be34).yy181cxx . . $ $anonymous_type_d3a40ffe8691b635_0#yy181.;cxx . . $ grn_expr_append_op(3b5ca24334c1be34). |
| 348 | } YYMINORTYPEcxx . . $ YYMINORTYPE#; |
| 349 | #ifndef YYSTACKDEPTHcxx . . $ `lib/expr.c:4571:9`! |
| 350 | #define YYSTACKDEPTH 100 |
| 351 | #endif |
| 352 | #define cxx . . $ grn_expr#grcxx . . $ grn_expr#n_cxx . . $ `lib/grn_ecmascript.c:352:9`!expr_cxx . . $ `lib/grn_ecmascript.c:352:9`!parserARcxx . . $ grn_expr#G_Scxx . . $ `lib/grn_ecmascript.c:352:9`!DECL ecxx . . $ $anonymous_type_3faee4e32dba9587_2#e.fs_info *efsi ; |
| 353 | #define cxx . . $ _grn_expr#codes.grcxx . . $ _grn_expr#codes.ncxx . . $ `lib/grn_ecmascript.c:353:9`!_expr_parscxx . . $ `lib/grn_ecmascript.c:353:9`!erARGcxx . . $ yyStackEntry#minor._cxx . . $ `lib/grn_ecmascript.c:353:9`!PDEcxx . . $ $anonymous_type_d3a40ffe8691b635_0#yy0.CLcxx . . $ `lib/grn_ecmascript.c:353:9`! , efcxx . . $ $anonymous_type_640a68f6a3c9e981_0#nargs.s_info *efsi |
| 354 | #define cxx . . $ _grn_expr#codes.grcxx . . $ _grn_expr#codes.ncxx . . $ `lib/grn_ecmascript.c:354:9`!_expr_parscxx . . $ `lib/grn_ecmascript.c:354:9`!erARGcxx . . $ yyStackEntry#minor._cxx . . $ `lib/grn_ecmascript.c:354:9`!PARcxx . . $ $anonymous_type_d3a40ffe8691b635_0#yy0.AMcxx . . $ `lib/grn_ecmascript.c:354:9`! ,efscxx . . $ $anonymous_type_640a68f6a3c9e981_0#nargs.i |
| 355 | #define grn_expr_parserARG_FETCHcxx . . $ `lib/grn_ecmascript.c:355:9`! efs_info *efsi =yypParser->efsi ; |
| 356 | #define grn_expr_parserARG_STOREcxx . . $ `lib/grn_ecmascript.c:356:9`! yypParser->efsi =efsi ; |
| 357 | #define grn_expr_parserCTX_SDECLcxx . . $ `lib/grn_ecmascript.c:357:9`! |
| 358 | #define grn_expr_parserCTX_PDECLcxx . . $ `lib/grn_ecmascript.c:358:9`! |
| 359 | #define grn_expr_parserCTX_PARAMcxx . . $ `lib/grn_ecmascript.c:359:9`! |
| 360 | #define grn_expr_parserCTX_FETCHcxx . . $ `lib/grn_ecmascript.c:360:9`! |
| 361 | #define grn_expr_parserCTX_STOREcxx . . $ `lib/grn_ecmascript.c:361:9`! |
| 362 | #define YYNSTATEcxx . . $ `lib/grn_ecmascript.c:362:9`! 166 |
| 363 | #define YYNRULEcxx . . $ `lib/grn_ecmascript.c:363:9`! 149 |
| 364 | #define YYNRULE_WITH_ACTIONcxx . . $ `lib/grn_ecmascript.c:364:9`! 104 |
| 365 | #define YYNTOKENcxx . . $ `lib/grn_ecmascript.c:365:9`! 83 |
| 366 | #define YY_MAX_SHIFTcxx . . $ `lib/grn_ecmascript.c:366:9`! 165 |
| 367 | #define YY_MIN_SHIFTREDUCEcxx . . $ `lib/grn_ecmascript.c:367:9`! 253 |
| 368 | #define YY_MAX_SHIFTREDUCEcxx . . $ `lib/grn_ecmascript.c:368:9`! 401 |
| 369 | #define YY_ERROR_ACTIONcxx . . $ `lib/grn_ecmascript.c:369:9`! 402 |
| 370 | #define YY_ACCEPT_ACTIONcxx . . $ `lib/grn_ecmascript.c:370:9`! 403 |
| 371 | #define cxx . . $ `include/groonga/groonga.h:3244:9`!YY_NO_ACTcxx . . $ `lib/grn_ecmascript.c:371:9`!IONcxx . . $ `lib/grn_ecmascript.c:371:9`! 404 |
| 372 | #define cxx . . $ grn_expr_append_const_float32(3cb001ed6648049a).YY_MIN_REDUCEcxx . . $ `lib/grn_ecmascript.c:372:9`! 40cxx . . $ grn_expr_append_const_float32(3cb001ed6648049a).5 |
| 373 | #define YY_MAX_REDUCEcxx . . $ `lib/grn_ecmascript.c:373:9`! 553 |
| 374 | /************* End control #defines *******************************************/ |
| 375 | #define YY_NLOOKAHEADcxx . . $ `lib/grn_ecmascript.c:375:9`! ((int)(sizeof(yy_lookahead)/sizeof(yy_lookahead[0]))) |
| 376 | |
| 377 | /* Define the yytestcase() macrcxx . . $ grn_expr_append_const_float32(3cb001ed6648049a).o to be a cxx . . $ $anonymous_type_3faee4e32dba9587_2#ctx.no-op if cxx . . $ $anonymous_type_3faee4e32dba9587_2#e.is not already definedcxx . . $ GRN_OP_ADJUST. |
| 378 | ** otherwise. |
| 379 | ** |
| 380 | ** Applications can choose to define yytestcase() in the %include section |
| 381 | ** to a macro that can assist in verifying code coverage. For production |
| 382 | ** code the yytestcacxx . . $ grn_expr_append_op(3b5ca24334c1be34).se() macrocxx . . $ $anonymous_type_3faee4e32dba9587_2#ctx. should bcxx . . $ $anonymous_type_3faee4e32dba9587_2#e.e turned off. But cxx . . $ GRN_OP_BITWISE_OR.it is useful |
| 383 | ** for testing. |
| 384 | */ |
| 385 | #ifndef yytestcase |
| 386 | # define yytestcasecxx . . $ `lib/grn_ecmascript.c:386:10`!(X) |
| 387 | #endifcxx . . $ grn_expr_append_op(3b5ca24334c1be34). |
| 388 | |
| 389 | |
| 390 | /* Next are the tables used to determine what action to take based on the |
| 391 | ** current state and lookahead token. These tables are used to implement |
| 392 | ** functions that tacxx . . $ grn_expr_append_op(3b5ca24334c1be34).ke a statecxx . . $ $anonymous_type_3faee4e32dba9587_2#ctx. number acxx . . $ $anonymous_type_3faee4e32dba9587_2#e.nd lookahead value acxx . . $ GRN_OP_BITWISE_AND.nd return an |
| 393 | ** action integer. |
| 394 | ** |
| 395 | ** Suppose the action integer is N. Then the action is determined as |
| 396 | ** follows |
| 397 | ** |
| 398 | ** 0 <= N <= YY_MAX_SHIFT Shift N. That is, push the lookahead |
| 399 | ** token onto the stack and goto state N. |
| 400 | ** |
| 401 | ** N between YY_MIN_SHIFTREDUCE Shift to an arbitrary state then |
| 402 | ** and YY_MAX_SHIFTREDUCE reduce by rule N-YY_MIN_SHIFTREDUCE. |
| 403 | ** |
| 404 | ** N == YY_ERROR_ACTION A syntax error has occurred. |
| 405 | ** |
| 406 | ** N == YY_ACCEPT_ACTION The parser accepts its input. |
| 407 | ** |
| 408 | ** N == YY_NO_ACTIcxx . . $ grn_expr_append_op(3b5ca24334c1be34).ON cxx . . $ $anonymous_type_3faee4e32dba9587_2#ctx. cxx . . $ $anonymous_type_3faee4e32dba9587_2#e. No such action.cxx . . $ GRN_OP_GREATER. Denotes unused |
| 409 | ** slots in the yy_action[] table. |
| 410 | ** |
| 411 | ** N between YY_MIcxx . . $ grn_expr_append_op(3b5ca24334c1be34).N_REDUCE cxx . . $ $anonymous_type_3faee4e32dba9587_2#ctx. cxx . . $ $anonymous_type_3faee4e32dba9587_2#e. Reduce by rule N-Ycxx . . $ GRN_OP_LESS_EQUAL.Y_MIN_REDUCE |
| 412 | ** and YY_MAX_REDUCE |
| 413 | ** |
| 414 | ** The action table cxx . . $ grn_expr_append_op(3b5ca24334c1be34).is construcxx . . $ $anonymous_type_3faee4e32dba9587_2#ctx.cted as acxx . . $ $anonymous_type_3faee4e32dba9587_2#e. single large table nacxx . . $ GRN_OP_GREATER_EQUAL.med yy_action[]. |
| 415 | ** Given state S and lookahead X, the action is computed as either: |
| 416 | ** |
| 417 | ** (A) N = yy_acxx . . $ grn_expr_append_op(3b5ca24334c1be34).ction[ yy_cxx . . $ $anonymous_type_3faee4e32dba9587_2#ctx.shift_ofscxx . . $ $anonymous_type_3faee4e32dba9587_2#e.t[S] + X ]cxx . . $ GRN_OP_IN. |
| 418 | ** (B) N = yy_default[S] |
| 419 | ** |
| 420 | ** The (A) formula icxx . . $ grn_expr_append_op(3b5ca24334c1be34).s preferrecxx . . $ $anonymous_type_3faee4e32dba9587_2#ctx.d. The Bcxx . . $ $anonymous_type_3faee4e32dba9587_2#e. formula is uscxx . . $ GRN_OP_MATCH.ed instead if |
| 421 | ** yy_lookahead[yy_shift_ofst[S]+X] is not equal to X. |
| 422 | ** |
| 423 | ** The formulas above are for computing the action when the lookahead is |
| 424 | ** a terminal symbol. If the lookahead is a non-terminal (as occurs after |
| 425 | ** a reduce action) then the yy_reduce_ofst[] array is used in place of |
| 426 | ** the yy_shift_ocxx . . $ `include/groonga/groonga.h:3239:9`!fst[] array. |
| 427 | ** |
| 428 | ** The following are the tables generatedcxx . . $ GRN_OP_PUSH. in this section: |
| 429 | ** |
| 430 | ** yy_acticxx . . $ grn_obj#on[] A single table containing all actions. |
| 431 | ** yy_lookaheacxx . . $ `include/groonga/groonga.h:3248:9`!d[] A table containing the lookahead for each entry in |
| 432 | ** yy_action. Used to detect hash collisions. |
| 433 | ** yy_shift_ofst[] For each state, the offset into yy_action for |
| 434 | ** cxx . . $ `include/groonga/groonga.h:3239:9`! shifting terminals. |
| 435 | ** yy_reduce_ofst[] For each state, the offset into yy_action for |
| 436 | ** shifting non-terminals after a reduce. |
| 437 | ** yy_default[] Default action for each state. |
| 438 | ** |
| 439 | *********** Begin parsing tables **cxx . . $ GRN_OP_PUSH.********************************************/ |
| 440 | #define cxx . . $ grn_expr_take_obj(99eba0d3a8372d65).YY_ACTTAB_COUcxx . . $ `lib/grn_ecmascript.c:440:9`!Ncxx . . $ `lib/grn_ecmascript.c:440:9`!T (2027)cxx . . $ $anonymous_type_3faee4e32dba9587_2#ctx. |
| 441 | static const YYACTIONTYPEcxx . . $ `lib/grn_ecmascript.c:342:9`! yy_actioncxx . . $ yy_action.[] = { |
| 442 | /* 0 */ 405, 3, 8cxx . . $ grn_expr_append_const_int(fc883953fb92868a).1, 4, cxx . . $ $anonymous_type_3faee4e32dba9587_2#ctx. 98, 83cxx . . $ $anonymous_type_3faee4e32dba9587_2#e., 133, 486, 157, 409, |
| 443 | /* 10 */ 366, 2, 408, 62, 9cxx . . $ GRN_OP_PUSH.4, 147, 1, 88, 80, 403, |
| 444 | /* 20 */ 90, 131, 332, 88, 87, 85, 90, 85, 131, 131, |
| 445 | /* 30 */ 1cxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!02, 144, 104, 160, 159, 158, 139, 99, 121, 135, |
| 446 | /* 40 */ 122, cxx . . $ grn_expr_append_op(3b5ca24334c1be34). 122, 122cxx . . $ $anonymous_type_3faee4e32dba9587_2#ctx., 102, cxx . . $ $anonymous_type_3faee4e32dba9587_2#e. 85, 500, 1cxx . . $ GRN_OP_NEAR.52, 85, 97, 96, |
| 447 | /* 50 */ 92, 91, 366, 84, 367, 95, 94, 165, 11, 150, |
| 448 | /* 60 */ 80, 75, 74, 414, 513, 414, 78, 77, 76, 73, |
| 449 | /* 70 */ 72, cxx . . $ grn_expr_append_op(3b5ca24334c1be34). 70, 69cxx . . $ $anonymous_type_3faee4e32dba9587_2#ctx., 68, cxx . . $ $anonymous_type_3faee4e32dba9587_2#e.391, 392, 393, 394, cxx . . $ GRN_OP_NEAR_NO_OFFSET. 395, 8, |
| 450 | /* 80 */ 145, 479, 538, 6, 85, 414, 85, 145, 145, 102, |
| 451 | /* 90 */ 144, 104, 160, 159, 158, 139, 99, 121, 135, 122, |
| 452 | /* 100 */ 122, 122, 102, 85, 487, 157, 85, 89, 133, 486, |
| 453 | /* 110 */ 157, 366, 2, 89, 62, 94, 147, 1, 9, 80, |
| 454 | /* 120 */ 89, 137, 389, 82, 397, 85, 89, 85, 137, 137, |
| 455 | /* 130 */ 10cxx . . $ `include/groonga/groonga.h:3239:9`!2, 144, 104, 160, 159, 158, 139, 99, 121, 135, |
| 456 | /* 140 */ 122, 122, 12cxx . . $ grn_expr_append_const_int(fc883953fb92868a).2, 102, cxx . . $ $anonymous_type_3faee4e32dba9587_2#ctx. 85, 511cxx . . $ $anonymous_type_3faee4e32dba9587_2#e., 9, 85, 71, 412, |
| 457 | /* 150 */ 389, 82, 366, 84, 41cxx . . $ GRN_OP_PUSH.1, 95, 94, 165, 11, 337, |
| 458 | /* 160 */ 80, 129, 75, 74, 5, 30, 23, 78, 77, 76, |
| 459 | /* 170 */ 73, 72, 70, 69, 68, 391, 392, 393, 394, 395, |
| 460 | /* 180 */ cxx . . $ `include/groonga/groonga.h:3239:9`!8, 391, 392, 393, 394, 395, 8, 34, 33, 27, |
| 461 | /* 190 */ 31, 512, 129, 152, 32, 410, 75, 74, 345, 64, |
| 462 | /* 200 */ 63, 78, 7cxx . . $ grn_expr_append_const_int(fc883953fb92868a).7, 76, cxx . . $ $anonymous_type_3faee4e32dba9587_2#ctx. 73, 72cxx . . $ $anonymous_type_3faee4e32dba9587_2#e., 70, 69, 68, 391, |
| 463 | /* 210 */ 392, 393, 394, 395, cxx . . $ GRN_OP_PUSH.8, 130, 7, 346, 85, 29, |
| 464 | /* 220 */ 85, 499, 499, 102, 144, 104, 160, 159, 158, 139, |
| 465 | /* 230 *cxx . . $ grn_obj#/ 99, 121, 135, 122, 122, 122, 102, 85, 388, 9, |
| 466 | /* 240 */ cxx . . $ `include/groonga/groonga.h:3248:9`! 85, 71, 407, 389, 82, 29, 494, 61, 60, 59, |
| 467 | /* 250 */ 128, 85, 86, 85, 508, 508, 102, 144, 104, 160, |
| 468 | /* 260 */ 159, 158, 139, 99, 121, 135, 122, 122, 122, 102, |
| 469 | /* 270 */ 8cxx . . $ `include/groonga/groonga.h:3239:9`!5, 25, 82, 85, 79, 67, 66, 39, 38, 261, |
| 470 | /* 280 */ 336, 29, 504, 406, 10, 148, 156, 325, 326, 75, |
| 471 | /* 290 */ 65, 549, 93, 514, 78, 77, 76, 73, 72, 70, |
| 472 | /* 300 */ 69, 68, 391, 392, 393, 394, 395, 8, 350, 85, |
| 473 | /* 310 */ 354, 8cxx . . $ grn_expr_append_obj(1a96b2046350ef54).5, 499, cxx . . $ $anonymous_type_3faee4e32dba9587_2#ctx.499, 102cxx . . $ $anonymous_type_3faee4e32dba9587_2#e., 144, 104, 160, 159, 158, |
| 474 | /* 320 */ 139, 99, 121, 13cxx . . $ GRN_OP_PUSH.5, 122, 122, 122, 102, 85, 149, |
| 475 | /* 330 */ 151, cxx . . $ grn_expr_take_obj(99eba0d3a8372d65). 85, 328,cxx . . $ $anonymous_type_3faee4e32dba9587_2#ctx. 349, cxx . . $ $anonymous_type_3faee4e32dba9587_2#e.35, 398, 24, 496, 37, 36, |
| 476 | /* 340 */ 26, 85, 404, 85, 508, 508, 102, 144, 104, 160, |
| 477 | /* 350 */ 159, 158, 13cxx . . $ grn_expr_append_const_int(fc883953fb92868a).9, 99, cxx . . $ $anonymous_type_3faee4e32dba9587_2#ctx.121, 135cxx . . $ $anonymous_type_3faee4e32dba9587_2#e., 122, 122, 122, 102, |
| 478 | /* 360 */ 85, 404, 404, 85, 40cxx . . $ GRN_OP_PUSH.4, 404, 404, 404, 404, 404, |
| 479 | /* 370 */ 404, 404, 505, 85, 510, 85, 491, 491, 102, 144, |
| 480 | /* 380 */ 1cxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!04, 160, 159, 158, 139, 99, 121, 135, 122, 122, |
| 481 | /* 390 */ 122, cxx . . $ grn_expr_append_op(3b5ca24334c1be34). 102, 85cxx . . $ $anonymous_type_3faee4e32dba9587_2#ctx., 29, cxx . . $ $anonymous_type_3faee4e32dba9587_2#e.404, 85, 404, 40cxx . . $ GRN_OP_NEAR_PHRASE.4, 404, 404, |
| 482 | /* 400 */ 132, 85, 404, 85, 482, 482, 102, 144, 104, 160, |
| 483 | /* 410 */ 159, 158, 139, 99, 121, 135, 122, 122, 122, 102, |
| 484 | /* 420 */ 85, 404, 404, 85, 134, 404, 404, 404, 137, 404, |
| 485 | /* 430 */ 404, 404, 85, 404, 85, 137, 137, 102, 144, 104, |
| 486 | /* 440 */ 160, 159, 158, 139, 99, 121, 135, 122, 122, 122, |
| 487 | /* 450 */ 10cxx . . $ `include/groonga/groonga.h:3239:9`!2, 85, 404, 404, 85, 404, 404, 404, 404, 140, |
| 488 | /* 460 */ 404, 404, 40cxx . . $ grn_expr_append_const_int(fc883953fb92868a).4, 85, cxx . . $ $anonymous_type_3faee4e32dba9587_2#ctx.404, 85cxx . . $ $anonymous_type_3faee4e32dba9587_2#e., 140, 140, 102, 144, |
| 489 | /* 470 */ 104, 160, 159, 158, 13cxx . . $ GRN_OP_PUSH.9, 99, 121, 135, 122, 122, |
| 490 | /* 480 */ 122, 102, 85, 404, 9, 85, 71, 145, 389, 82, |
| 491 | /* 490 */ 404, 85, 404, 85, 145, 145, 102, 144, 104, 160, |
| 492 | /* 500 */ 15cxx . . $ `include/groonga/groonga.h:3239:9`!9, 158, 139, 99, 121, 135, 122, 122, 122, 102, |
| 493 | /* 510 */ 85, 404, 9, 85, 71, 404, 389, 82, 28, 22, |
| 494 | /* 520 */ 21, 20, 1cxx . . $ grn_expr_append_const_int(fc883953fb92868a).9, 18, cxx . . $ $anonymous_type_3faee4e32dba9587_2#ctx. 17, 16cxx . . $ $anonymous_type_3faee4e32dba9587_2#e., 15, 14, 13, 12, |
| 495 | /* 530 */ 404, 404, 404, 404, 7cxx . . $ GRN_OP_PUSH.5, 74, 404, 404, 404, 78, |
| 496 | /* 540 */ 77, 76, 73, 72, 70, 69, 68, 391, 392, 393, |
| 497 | /* 550 *cxx . . $ grn_obj#/ 394, 395, 8, 404, 9, 355, 71, 404, 389, 82, |
| 498 | /* 560 */ cxx . . $ `include/groonga/groonga.h:3248:9`!404, 404, 75, 74, 404, 325, 326, 78, 77, 76, |
| 499 | /* 570 */ 73, 72, 70, 69, 68, 391, 392, 146, 394, 395, |
| 500 | /* 580 */ 8, 404, 404, 404, 85, 404, 85, 427, 427, 102, |
| 501 | /* 590 */ 14cxx . . $ `include/groonga/groonga.h:3239:9`!4, 104, 160, 159, 158, 139, 99, 121, 135, 122, |
| 502 | /* 600 */ 122, 122, 102, 85, 75, 74, 85, 404, 404, 78, |
| 503 | /* 610 */ 77, 76, 73, 72, 70, 69, 68, 391, 392, 393, |
| 504 | /* 620 */ 394, 395, 8, 404, 404, 85, 404, 85, 426, 426, |
| 505 | /* 630 */ 102, 14cxx . . $ grn_expr_append_obj(1a96b2046350ef54).4, 104, cxx . . $ $anonymous_type_3faee4e32dba9587_2#ctx.160, 159cxx . . $ $anonymous_type_3faee4e32dba9587_2#e., 158, 139, 99, 121, 135, |
| 506 | /* 640 */ 122, 122, 122, 10cxx . . $ GRN_OP_PUSH.2, 85, 404, 85, 85, 85, 425, |
| 507 | /* 650 */ 425, cxx . . $ grn_expr_take_obj(99eba0d3a8372d65).102, 144,cxx . . $ $anonymous_type_3faee4e32dba9587_2#ctx. 104, 1cxx . . $ $anonymous_type_3faee4e32dba9587_2#e.60, 159, 158, 139, 99, 121, |
| 508 | /* 660 */ 135, 122, 122, 122, 102, 85, 404, 85, 85, 85, |
| 509 | /* 670 */ 424, 424, 10cxx . . $ grn_expr_append_const_int(fc883953fb92868a).2, 144, cxx . . $ $anonymous_type_3faee4e32dba9587_2#ctx.104, 160cxx . . $ $anonymous_type_3faee4e32dba9587_2#e., 159, 158, 139, 99, |
| 510 | /* 680 */ 121, 135, 122, 122, 12cxx . . $ GRN_OP_PUSH.2, 102, 85, 404, 85, 85, |
| 511 | /* 690 */ 85, 423, 423, 102, 144, 104, 160, 159, 158, 139, |
| 512 | /* 700 */ cxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!99, 121, 135, 122, 122, 122, 102, 85, 404, 85, |
| 513 | /* 710 */ 85, cxx . . $ grn_expr_append_op(3b5ca24334c1be34). 85, 422cxx . . $ $anonymous_type_3faee4e32dba9587_2#ctx., 422, cxx . . $ $anonymous_type_3faee4e32dba9587_2#e.102, 144, 104, 160, 159,cxx . . $ GRN_OP_ORDERED_NEAR_PHRASE. 158, |
| 514 | /* 720 */ 139, 99, 121, 135, 122, 122, 122, 102, 85, 404, |
| 515 | /* 730 */ 85, 85, 85, 421, 421, 102, 144, 104, 160, 159, |
| 516 | /* 740 */ 158, 139, 99, 121, 135, 122, 122, 122, 102, 85, |
| 517 | /* 750 */ 404, 85, 85, 85, 420, 420, 102, 144, 104, 160, |
| 518 | /* 760 */ 159, 158, 139, 99, 121, 135, 122, 122, 122, 102, |
| 519 | /* 770 */ 8cxx . . $ `include/groonga/groonga.h:3239:9`!5, 404, 85, 85, 85, 419, 419, 102, 144, 104, |
| 520 | /* 780 */ 160, 159, 15cxx . . $ grn_expr_append_const_int(fc883953fb92868a).8, 139, cxx . . $ $anonymous_type_3faee4e32dba9587_2#ctx. 99, 121cxx . . $ $anonymous_type_3faee4e32dba9587_2#e., 135, 122, 122, 122, |
| 521 | /* 790 */ 102, 85, 404, 85, 8cxx . . $ GRN_OP_PUSH.5, 85, 418, 418, 102, 144, |
| 522 | /* 800 */ 104, 160, 159, 158, 139, 99, 121, 135, 122, 122, |
| 523 | /* 810 */ 122, 102, 85, 404, 85, 85, 85, 417, 417, 102, |
| 524 | /* 820 */ 14cxx . . $ `include/groonga/groonga.h:3239:9`!4, 104, 160, 159, 158, 139, 99, 121, 135, 122, |
| 525 | /* 830 */ 122, 122, 102, 85, 404, 85, 85, 85, 492, 492, |
| 526 | /* 840 */ 102, 144, 10cxx . . $ grn_expr_append_const_int(fc883953fb92868a).4, 160, cxx . . $ $anonymous_type_3faee4e32dba9587_2#ctx.159, 158cxx . . $ $anonymous_type_3faee4e32dba9587_2#e., 139, 99, 121, 135, |
| 527 | /* 850 */ 122, 122, 122, 102, 8cxx . . $ GRN_OP_PUSH.5, 404, 85, 85, 85, 548, |
| 528 | /* 860 */ 548, 102, 144, 104, 160, 159, 158, 139, 99, 121, |
| 529 | /* 870 *cxx . . $ grn_obj#/ 135, 122, 122, 122, 102, 85, 404, 85, 85, 85, |
| 530 | /* 880 */ cxx . . $ `include/groonga/groonga.h:3248:9`!483, 483, 102, 144, 104, 160, 159, 158, 139, 99, |
| 531 | /* 890 */ 121, 135, 122, 122, 122, 102, 85, 404, 85, 85, |
| 532 | /* 900 */ 85, 428, 428, 102, 144, 104, 160, 159, 158, 139, |
| 533 | /* 910 */ 9cxx . . $ `include/groonga/groonga.h:3239:9`!9, 121, 135, 122, 122, 122, 102, 85, 404, 85, |
| 534 | /* 920 */ 85, 85, 164, 164, 102, 144, 104, 160, 159, 158, |
| 535 | /* 930 */ 139, 99, 121, 135, 122, 122, 122, 102, 85, 404, |
| 536 | /* 940 */ 85, 85, 85, 416, 416, 102, 144, 104, 160, 159, |
| 537 | /* 950 */ 158, 13cxx . . $ grn_expr_append_obj(1a96b2046350ef54).9, 99, cxx . . $ $anonymous_type_3faee4e32dba9587_2#ctx.121, 135cxx . . $ $anonymous_type_3faee4e32dba9587_2#e., 122, 122, 122, 102, 85, |
| 538 | /* 960 */ 404, 85, 85, 8cxx . . $ GRN_OP_PUSH.5, 415, 415, 102, 144, 104, 160, |
| 539 | /* 970 */ 159, cxx . . $ grn_expr_take_obj(99eba0d3a8372d65).158, 139,cxx . . $ $anonymous_type_3faee4e32dba9587_2#ctx. 99, 1cxx . . $ $anonymous_type_3faee4e32dba9587_2#e.21, 135, 122, 122, 122, 102, |
| 540 | /* 980 */ 85, 404, 404, 85, 58, 57, 56, 55, 54, 53, |
| 541 | /* 990 */ 52, 51, 5cxx . . $ grn_expr_append_const_int(fc883953fb92868a).0, 49, cxx . . $ $anonymous_type_3faee4e32dba9587_2#ctx. 48, 47cxx . . $ $anonymous_type_3faee4e32dba9587_2#e., 46, 45, 44, 43, |
| 542 | /* 1000 */ 42, 41, 40, 85, 40cxx . . $ GRN_OP_PUSH.4, 85, 404, 404, 141, 404, |
| 543 | /* 1010 */ 103, 160, 159, 158, 139, 99, 121, 135, 122, 122, |
| 544 | /* 1020 */ 1cxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!22, 141, 85, 404, 85, 85, 85, 404, 404, 141, |
| 545 | /* 1030 */ 404, cxx . . $ grn_expr_append_op(3b5ca24334c1be34). 404, 153cxx . . $ $anonymous_type_3faee4e32dba9587_2#ctx., 159, cxx . . $ $anonymous_type_3faee4e32dba9587_2#e.158, 139, 99, 121, 135,cxx . . $ GRN_OP_NEAR_PHRASE_PRODUCT. 122, |
| 546 | /* 1040 */ 122, 122, 141, 85, 404, 85, 85, 85, 404, 404, |
| 547 | /* 1050 */ 141, 404, 404, 154, 159, 158, 139, 99, 121, 135, |
| 548 | /* 1060 */ 122, 122, 122, 141, 85, 404, 85, 85, 85, 404, |
| 549 | /* 1070 */ 404, 141, 404, 404, 155, 159, 158, 139, 99, 121, |
| 550 | /* 1080 */ 135, 122, 122, 122, 141, 85, 404, 85, 85, 85, |
| 551 | /* 1090 */ 40cxx . . $ `include/groonga/groonga.h:3239:9`!4, 404, 141, 404, 404, 163, 159, 158, 139, 99, |
| 552 | /* 1100 */ 121, 135, 12cxx . . $ grn_expr_append_const_int(fc883953fb92868a).2, 122, cxx . . $ $anonymous_type_3faee4e32dba9587_2#ctx.122, 141cxx . . $ $anonymous_type_3faee4e32dba9587_2#e., 85, 404, 85, 85, |
| 553 | /* 1110 */ 85, 404, 404, 141, 40cxx . . $ GRN_OP_PUSH.4, 404, 404, 162, 158, 139, |
| 554 | /* 1120 */ 99, 121, 135, 122, 122, 122, 141, 85, 404, 85, |
| 555 | /* 1130 */ 85, 85, 404, 404, 141, 404, 404, 404, 404, 161, |
| 556 | /* 1140 */ 13cxx . . $ `include/groonga/groonga.h:3239:9`!9, 99, 121, 135, 122, 122, 122, 141, 85, 404, |
| 557 | /* 1150 */ 85, 85, 85, 404, 404, 141, 404, 404, 404, 404, |
| 558 | /* 1160 */ 404, 143, 9cxx . . $ grn_expr_append_const_int(fc883953fb92868a).9, 121, cxx . . $ $anonymous_type_3faee4e32dba9587_2#ctx.135, 122cxx . . $ $anonymous_type_3faee4e32dba9587_2#e., 122, 122, 141, 85, |
| 559 | /* 1170 */ 404, 85, 85, 85, 40cxx . . $ GRN_OP_PUSH.4, 404, 141, 404, 404, 404, |
| 560 | /* 1180 */ 404, 404, 404, 100, 121, 135, 122, 122, 122, 141, |
| 561 | /* 1190 *cxx . . $ grn_obj#/ 85, 404, 85, 85, 85, 404, 404, 141, 404, 404, |
| 562 | /* 1200 */ cxx . . $ `include/groonga/groonga.h:3248:9`!404, 404, 404, 404, 101, 121, 135, 122, 122, 122, |
| 563 | /* 1210 */ 141, 85, 516, 404, 85, 404, 404, 404, 97, 96, |
| 564 | /* 1220 */ 92, 91, 366, 84, 404, 95, 94, 165, 11, 509, |
| 565 | /* 1230 */ 8cxx . . $ `include/groonga/groonga.h:3239:9`!0, 404, 404, 404, 404, 97, 96, 92, 91, 366, |
| 566 | /* 1240 */ 84, 404, 95, 94, 165, 11, 85, 80, 85, 404, |
| 567 | /* 1250 */ 404, 141, 404, 404, 404, 404, 404, 404, 404, 105, |
| 568 | /* 1260 */ 135, 122, 122, 122, 141, 85, 404, 85, 85, 85, |
| 569 | /* 1270 */ 404, 40cxx . . $ grn_expr_append_obj(1a96b2046350ef54).4, 141, cxx . . $ $anonymous_type_3faee4e32dba9587_2#ctx.404, 404cxx . . $ $anonymous_type_3faee4e32dba9587_2#e., 404, 404, 404, 404, 404, |
| 570 | /* 1280 */ 106, 135, 122, 12cxx . . $ GRN_OP_PUSH.2, 122, 141, 85, 404, 85, 85, |
| 571 | /* 1290 */ 85, cxx . . $ grn_expr_take_obj(99eba0d3a8372d65).404, 404,cxx . . $ $anonymous_type_3faee4e32dba9587_2#ctx. 141, 4cxx . . $ $anonymous_type_3faee4e32dba9587_2#e.04, 404, 404, 404, 404, 404, |
| 572 | /* 1300 */ 404, 107, 135, 122, 122, 122, 141, 85, 404, 85, |
| 573 | /* 1310 */ 85, 85, 40cxx . . $ grn_expr_append_const_int(fc883953fb92868a).4, 404, cxx . . $ $anonymous_type_3faee4e32dba9587_2#ctx.141, 404cxx . . $ $anonymous_type_3faee4e32dba9587_2#e., 404, 404, 404, 404, |
| 574 | /* 1320 */ 404, 404, 108, 135, 12cxx . . $ GRN_OP_PUSH.2, 122, 122, 141, 85, 404, |
| 575 | /* 1330 */ 85, 85, 85, 404, 404, 141, 404, 404, 404, 404, |
| 576 | /* 1340 */ 4cxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!04, 404, 404, 109, 135, 122, 122, 122, 141, 85, |
| 577 | /* 1350 */ 404, cxx . . $ grn_expr_append_op(3b5ca24334c1be34). 85, 85cxx . . $ $anonymous_type_3faee4e32dba9587_2#ctx., 85, 404, 404, 141, 404, 404, 404, |
| 578 | /* 1360 */ 404, 404, 4cxx . . $ $anonymous_type_3faee4e32dba9587_2#e.04, 404, 110, 135, 122, 122, 122, 141, |
| 579 | /* 1370 */ 85, 404, 85, 85, 85, 404, 404,cxx . . $ GRN_OP_ORDERED_NEAR_PHRASE_PRODUCT. 141, 404, 404, |
| 580 | /* 1380 */ 404, 404, 404, 404, 404, 111, 135, 122, 122, 122, |
| 581 | /* 1390 */ 141, 85, 404, 85, 85, 85, 404, 404, 141, 404, |
| 582 | /* 1400 */ 404, 404, 404, 404, 404, 404, 112, 135, 122, 122, |
| 583 | /* 1410 */ 122, 141, 85, 404, 85, 85, 85, 404, 404, 141, |
| 584 | /* 1420 */ 404, 404, 404, 404, 404, 404, 404, 113, 135, 122, |
| 585 | /* 1430 */ 12cxx . . $ `include/groonga/groonga.h:3239:9`!2, 122, 141, 85, 404, 85, 85, 85, 404, 404, |
| 586 | /* 1440 */ 141, 404, 40cxx . . $ grn_expr_append_const_int(fc883953fb92868a).4, 404, cxx . . $ $anonymous_type_3faee4e32dba9587_2#ctx.404, 404cxx . . $ $anonymous_type_3faee4e32dba9587_2#e., 404, 404, 114, 135, |
| 587 | /* 1450 */ 122, 122, 122, 141, 8cxx . . $ GRN_OP_PUSH.5, 404, 85, 85, 85, 404, |
| 588 | /* 1460 */ 404, 141, 404, 404, 404, 404, 404, 404, 404, 115, |
| 589 | /* 1470 */ 135, cxx . . $ grn_expr_append_op(3b5ca24334c1be34). 122, 122cxx . . $ $anonymous_type_3faee4e32dba9587_2#ctx., 122, cxx . . $ $anonymous_type_3faee4e32dba9587_2#e.141, 85, 404,cxx . . $ GRN_OP_SIMILAR. 85, 85, 85, |
| 590 | /* 1480 */ 404, 404, 141, 404, 404, 404, 404, 404, 404, 404, |
| 591 | /* 1490 */ 116, 135, 122, 122, 122, 141, 85, 404, 85, 85, |
| 592 | /* 1500 */ 85, cxx . . $ grn_expr_append_op(3b5ca24334c1be34). 404, 404cxx . . $ $anonymous_type_3faee4e32dba9587_2#ctx., 141, cxx . . $ $anonymous_type_3faee4e32dba9587_2#e.404, 404, 404, 404cxx . . $ GRN_OP_TERM_EXTRACT., 404, 404, |
| 593 | /* 1510 */ 404, 117, 135, 122, 122, 122, 141, 85, 404, 85, |
| 594 | /* 1520 */ 85, 85, 404, 404, 141, 404, 404, 404, 404, 404, |
| 595 | /* 1530 */ 404, 404, 118, 135, 122, 122, 122, 141, 85, 404, |
| 596 | /* 1540 */ 85, 85, 85, 404, 404, 141, 404, 404, 404, 404, |
| 597 | /* 1550 */ 40cxx . . $ `include/groonga/groonga.h:3239:9`!4, 404, 404, 119, 135, 122, 122, 122, 141, 85, |
| 598 | /* 1560 */ 404, 85, 8cxx . . $ grn_expr_append_const_int(fc883953fb92868a).5, 85, cxx . . $ $anonymous_type_3faee4e32dba9587_2#ctx.404, 404cxx . . $ $anonymous_type_3faee4e32dba9587_2#e., 141, 404, 404, 404, |
| 599 | /* 1570 */ 404, 404, 404, 404, 12cxx . . $ GRN_OP_PUSH.0, 135, 122, 122, 122, 141, |
| 600 | /* 1580 */ 85, 404, 85, 85, 85, 404, 404, 141, 404, 404, |
| 601 | /* 1590 */ 404, cxx . . $ grn_expr_append_op(3b5ca24334c1be34). 404, 404cxx . . $ $anonymous_type_3faee4e32dba9587_2#ctx., 404, cxx . . $ $anonymous_type_3faee4e32dba9587_2#e.404, 123, 135cxx . . $ GRN_OP_QUORUM., 122, 122, 122, |
| 602 | /* 1600 */ 141, 85, 404, 85, 85, 85, 404, 404, 141, 404, |
| 603 | /* 1610 */ 404, 404, 404, 404, 404, 404, 125, 135, 122, 122, |
| 604 | /* 1620 */ 122, cxx . . $ grn_expr_append_op(3b5ca24334c1be34). 141, 85cxx . . $ $anonymous_type_3faee4e32dba9587_2#ctx., 404, cxx . . $ $anonymous_type_3faee4e32dba9587_2#e. 85, 85, cxx . . $ GRN_OP_LCP. 85, 404, 404, 141, |
| 605 | /* 1630 */ 404, 404, 404, 404, 404, 404, 404, 127, 135, 122, |
| 606 | /* 1640 */ 122, 122, 141, 85, 404, 85, 85, 85, 404, 404, |
| 607 | /* 1650 */ 141, cxx . . $ grn_expr_append_op(3b5ca24334c1be34). 404, 404cxx . . $ $anonymous_type_3faee4e32dba9587_2#ctx., 404, cxx . . $ $anonymous_type_3faee4e32dba9587_2#e.404, 404, 404cxx . . $ GRN_OP_PREFIX., 404, 404, 136, |
| 608 | /* 1660 */ 122, 122, 122, 141, 85, 404, 85, 85, 85, 404, |
| 609 | /* 1670 */ 404, 141, 404, 404, 404, 404, 404, 404, 404, 404, |
| 610 | /* 1680 */ 138, cxx . . $ grn_expr_append_op(3b5ca24334c1be34). 122, 122cxx . . $ $anonymous_type_3faee4e32dba9587_2#ctx., 122, cxx . . $ $anonymous_type_3faee4e32dba9587_2#e.141, 85, 404cxx . . $ GRN_OP_SUFFIX., 85, 85, 85, |
| 611 | /* 1690 */ 404, 404, 141, 404, 85, 410, 85, 404, 404, 141, |
| 612 | /* 1700 */ 404, 142, 122, 122, 122, 141, 85, 404, 404, 85, |
| 613 | /* 1710 */ 473, cxx . . $ grn_expr_append_op(3b5ca24334c1be34). 473, 141cxx . . $ $anonymous_type_3faee4e32dba9587_2#ctx., 85, cxx . . $ $anonymous_type_3faee4e32dba9587_2#e.404, 85, 85cxx . . $ GRN_OP_REGEXP., 85, 404, 404, |
| 614 | /* 1720 */ 141, 404, 404, 404, 404, 404, 404, 404, 404, 404, |
| 615 | /* 1730 */ 124, 124, 124, 141, 85, 404, 85, 85, 85, 404, |
| 616 | /* 1740 */ 404, 141, 404, 404, 404, 404, 404, 404, 404, 404, |
| 617 | /* 1750 */ 404, 126, 126, 126, 141, 85, 404, 85, 85, 85, |
| 618 | /* 1760 */ 404, cxx . . $ grn_expr_append_op(3b5ca24334c1be34). 404, 141cxx . . $ $anonymous_type_3faee4e32dba9587_2#ctx., 404, cxx . . $ $anonymous_type_3faee4e32dba9587_2#e.404, 404, 404cxx . . $ GRN_OP_SHIFTL., 404, 404, 404, |
| 619 | /* 1770 */ 404, 404, 404, 470, 470, 141, 85, 404, 85, 85, |
| 620 | /* 1780 */ 85, 404, 404, 141, 404, 85, 404, 85, 404, 404, |
| 621 | /* 1790 */ 141, cxx . . $ grn_expr_append_op(3b5ca24334c1be34). 404, 404cxx . . $ $anonymous_type_3faee4e32dba9587_2#ctx., 404, cxx . . $ $anonymous_type_3faee4e32dba9587_2#e.465, 465, 141cxx . . $ GRN_OP_SHIFTR., 85, 404, 404, |
| 622 | /* 1800 */ 85, 464, 464, 141, 85, 404, 85, 85, 85, 404, |
| 623 | /* 1810 */ 404, 141, 404, 404, 404, 404, 404, 404, 404, 404, |
| 624 | /* 1820 */ 404, cxx . . $ grn_expr_append_op(3b5ca24334c1be34). 404, 476cxx . . $ $anonymous_type_3faee4e32dba9587_2#ctx., 476, cxx . . $ $anonymous_type_3faee4e32dba9587_2#e.141, 85, 404,cxx . . $ GRN_OP_SHIFTRR. 85, 85, 85, |
| 625 | /* 1830 */ 404, 404, 141, 404, 404, 404, 404, 404, 404, 404, |
| 626 | /* 1840 */ 404, 404, 404, 475, 475, 141, 85, 404, 85, 85, |
| 627 | /* 1850 */ 85, 404, 404, 141, 404, 404, 404, 404, 404, 404, |
| 628 | /* 1860 */ 404, 404, 404, 404, 474, 474, 141, 85, 404, 85, |
| 629 | /* 1870 */ 85, cxx . . $ grn_expr_append_op(3b5ca24334c1be34). 85, 404cxx . . $ $anonymous_type_3faee4e32dba9587_2#ctx., 404, cxx . . $ $anonymous_type_3faee4e32dba9587_2#e.141, 404, cxx . . $ GRN_OP_PLUS.85, 404, 85, 404, |
| 630 | /* 1880 */ 404, 141, 404, 404, 404, 473, 473, 141, 85, 404, |
| 631 | /* 1890 */ 404, 85, 472, 472, 141, 85, 404, 85, 85, 85, |
| 632 | /* 1900 */ 404, cxx . . $ grn_expr_append_op(3b5ca24334c1be34). 404, 141cxx . . $ $anonymous_type_3faee4e32dba9587_2#ctx., 404, cxx . . $ $anonymous_type_3faee4e32dba9587_2#e.404, 404, 40cxx . . $ GRN_OP_MINUS.4, 404, 404, 404, |
| 633 | /* 1910 */ 404, 404, 404, 471, 471, 141, 85, 404, 85, 85, |
| 634 | /* 1920 */ 85, 404, 404, 141, 404, 404, 404, 404, 404, 404, |
| 635 | /* 1930 */ 404, 404, 404, 404, 469, 469, 141, 85, 404, 85, |
| 636 | /* 1940 */ 85, 85, 404, 404, 141, 404, 404, 404, 404, 404, |
| 637 | /* 1950 */ 404, cxx . . $ grn_expr_append_op(3b5ca24334c1be34). 404, 404cxx . . $ $anonymous_type_3faee4e32dba9587_2#ctx., 404, cxx . . $ $anonymous_type_3faee4e32dba9587_2#e.404, 468, 4cxx . . $ GRN_OP_STAR.68, 141, 85, 404, |
| 638 | /* 1960 */ 85, 85, 85, 404, 404, 141, 404, 85, 404, 85, |
| 639 | /* 1970 */ 404, 404, 141, 404, 404, 404, 467, 467, 141, 85, |
| 640 | /* 1980 */ 404, cxx . . $ grn_expr_append_op(3b5ca24334c1be34). 404, 85cxx . . $ $anonymous_type_3faee4e32dba9587_2#ctx., 466, cxx . . $ $anonymous_type_3faee4e32dba9587_2#e.466, 141, 8cxx . . $ GRN_OP_SLASH.5, 404, 85, 85, |
| 641 | /* 1990 */ 85, 404, 404, 141, 404, 404, 404, 404, 404, 404, |
| 642 | /* 2000 */ 404, 404, 404, 404, 463, 463, 141, 85, 515, 404, |
| 643 | /* 2010 */ 85, cxx . . $ grn_expr_append_op(3b5ca24334c1be34). 404, 404cxx . . $ $anonymous_type_3faee4e32dba9587_2#ctx., 404, cxx . . $ $anonymous_type_3faee4e32dba9587_2#e.404, 404, cxx . . $ GRN_OP_MOD.404, 404, 366, 84, |
| 644 | /* 2020 */ 404, 95, 94, 165, 11, 404, 80, |
| 645 | }; |
| 646 | static const YYCODETYPEcxx . . $ `lib/grn_ecmascript.c:340:9`! yy_lookaheadcxx . . $ yy_lookahead.[] = { |
| 647 | /* 0 */ 91, 1, 2, 3, 4, 5, 114, 115, 116, 91, |
| 648 | /* 10 */ 10, cxx . . $ grn_expr_append_op(3b5ca24334c1be34). 11, 91cxx . . $ $anonymous_type_3faee4e32dba9587_2#ctx., 13, cxx . . $ $anonymous_type_3faee4e32dba9587_2#e. 14, 15, 16cxx . . $ GRN_OP_DELETE., 85, 18, 84, |
| 649 | /* 20 */ 85, 86, 17, 91, 19, 90, 91, 92, 93, 94, |
| 650 | /* 30 */ 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, |
| 651 | /* 40cxx . . $ grn_ctx# */ 105, 106, cxx . . $ $anonymous_type_3faee4e32dba9587_2#ctx. 107, 108, 109, 119, 120, 112, 6, 7, |
| 652 | /* 50 cxx . . $ grn_expr#*/ 8, 9,cxx . . $ grn_expr# 10, 11cxx . . $ $anonymous_type_3faee4e32dba9587_2#e., 12, 13, 14, 15, 16, 15, |
| 653 | /* 60 */ cxx . . $ grn_expr_dfi# 18, 61, 62, 90, 0, 92, 66, 67, 68, 69, |
| 654 | /* 70 */ 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, |
| 655 | /* 80 */ 86, 110, 111, 19, 90, 112, 92, 93, 94, 95, |
| 656 | /* 90 */ 96, 97,cxx . . $ grn_expr_dfi_pop(23f35137d5185d0c). 98, 99, 100, 101, 102, 103, 104, 105, |
| 657 | /* 100 */ 106cxx . . $ `lib/expr.c:1011:9`!, 107, 108, 109, 115, 116, 112, 85, 114, 115, |
| 658 | /* 110 */ 116cxx . . $ grn_expr_dfi_put(fb3169a16e4604c9)., 10, 11, 91,cxx . . $ $anonymous_type_3faee4e32dba9587_1#type. 13, 14, cxx . . $ $anonymous_type_3faee4e32dba9587_1#domain. 15, 16, cxx . . $ $anonymous_type_3faee4e32dba9587_1#code. 11, 18, |
| 659 | /* 120 */ 85, 86, 15, 16, 76, 90, 91, 92, 93, 94, |
| 660 | /* 1cxx . . $ `lib/grn_error.h:156:9`!30 */ 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, |
| 661 | /* 140 */ 105, 106, 107, 108, 109, 0, 11, 112, 13, 91, |
| 662 | /* 150 */ 15, 16, 10, 11, 91, 13, 14, 15, 16, 12, |
| 663 | /* 160 */ 18, 88, 61, 62, 19, 8, 19, 66, 67, 68, |
| 664 | /* 170 */ 69, cxx . . $ grn_expr_append_op(3b5ca24334c1be34).70, 71, cxx . . $ $anonymous_type_3faee4e32dba9587_2#ctx. 72, 7cxx . . $ $anonymous_type_3faee4e32dba9587_2#e.3, 74, 75cxx . . $ GRN_OP_INCR., 76, 77, 78, |
| 665 | /* 180 */ 79, 74, 75, 76, 77, 78, 79, 6, 7, 32, |
| 666 | /* 190 */ 9, 0, 119, 120, 13, 91, 61, 62, 63, 61, |
| 667 | /* 200 */ 62, 66, 67, 68, 69, 70, 71, 72, 73, 74, |
| 668 | /* 210cxx . . $ grn_ctx# */ 75, 76, cxx . . $ $anonymous_type_3faee4e32dba9587_2#ctx. 77, 78, 79, 87, 11, 82, 90, 19, |
| 669 | /* 220 cxx . . $ grn_expr#*/ 92, 93,cxx . . $ grn_expr# 94, 95cxx . . $ $anonymous_type_3faee4e32dba9587_2#e., 96, 97, 98, 99, 100, 101, |
| 670 | /* 230 */ cxx . . $ grn_expr_dfi# 102, 103, 104, 105, 106, 107, 108, 109, 12, 11, |
| 671 | /* 240 */ 112, 13, 91, 15, 16, 19, 118, 58, 59, 60, |
| 672 | /* 250 */ 89, 90, 61, 92, 93, 94, 95, 96, 97, 98, |
| 673 | /* 260 */ 99, 100,cxx . . $ grn_expr_dfi_pop(23f35137d5185d0c). 101, 102, 103, 104, 105, 106, 107, 108, |
| 674 | /* 270 */ 109cxx . . $ `lib/expr.c:1011:9`!, 19, 16, 112, 63, 64, 65, 37, 38, 17, |
| 675 | /* 280 */ 80cxx . . $ grn_expr_dfi_put(fb3169a16e4604c9)., 19, 121, 91,cxx . . $ $anonymous_type_3faee4e32dba9587_1#type. 79, 90, cxx . . $ $anonymous_type_3faee4e32dba9587_1#domain. 81, 67, cxx . . $ $anonymous_type_3faee4e32dba9587_1#code. 68, 61, |
| 676 | /* 290 */ 62, 33, 14, 0, 66, 67, 68, 69, 70, 71, |
| 677 | /* 3cxx . . $ `lib/grn_error.h:156:9`!00 */ 72, 73, 74, 75, 76, 77, 78, 79, 76, 90, |
| 678 | /* 310 */ 82, 92, 93, 94, 95, 96, 97, 98, 99, 100, |
| 679 | /* 320 */ 101, 102, 103, 104, 105, 106, 107, 108, 109, 44, |
| 680 | /* 330 */ 63, 112, 80, 74, 34, 15, 33, 118, 36, 35, |
| 681 | /* 340 */ 33, cxx . . $ grn_expr_append_op(3b5ca24334c1be34).90, 122, cxx . . $ $anonymous_type_3faee4e32dba9587_2#ctx. 92, 9cxx . . $ $anonymous_type_3faee4e32dba9587_2#e.3, 94, 95cxx . . $ GRN_OP_DECR., 96, 97, 98, |
| 682 | /* 350 */ 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, |
| 683 | /* 360 */ 109, 122, 122, 112, 122, 122, 122, 122, 122, 122, |
| 684 | /* 370 */ 122, 122, 121, 90, 0, 92, 93, 94, 95, 96, |
| 685 | /* 380 */ 97, cxx . . $ grn_expr_append_op(3b5ca24334c1be34). 98, 99cxx . . $ $anonymous_type_3faee4e32dba9587_2#ctx., 100, cxx . . $ $anonymous_type_3faee4e32dba9587_2#e.101, 102, 1cxx . . $ GRN_OP_PLUS.03, 104, 105, 106, |
| 686 | /* 390 */ 107, 108, 109, 19, 122, 112, 122, 122, 122, 122, |
| 687 | /* 400 */ 117, 90, 122, 92, 93, 94, 95, 96, 97, 98, |
| 688 | /* 410 */ 99, cxx . . $ grn_expr_append_op(3b5ca24334c1be34). 100, 101cxx . . $ $anonymous_type_3faee4e32dba9587_2#ctx., 102, cxx . . $ $anonymous_type_3faee4e32dba9587_2#e.103, 104, 10cxx . . $ GRN_OP_MINUS.5, 106, 107, 108, |
| 689 | /* 420 */ 109, 122, 122, 112, 113, 122, 122, 122, 86, 122, |
| 690 | /* 430 */ 122, 122, 90, 122, 92, 93, 94, 95, 96, 97, |
| 691 | /* 440 */ 98, cxx . . $ grn_expr_append_op(3b5ca24334c1be34). 99, 100cxx . . $ $anonymous_type_3faee4e32dba9587_2#ctx., 101, cxx . . $ $anonymous_type_3faee4e32dba9587_2#e.102, 103, cxx . . $ GRN_OP_NOT.104, 105, 106, 107, |
| 692 | /* 450 */ 108, 109, 122, 122, 112, 122, 122, 122, 122, 86, |
| 693 | /* 460 */ 122, 122, 122, 90, 122, 92, 93, 94, 95, 96, |
| 694 | /* 470 */ 97, cxx . . $ grn_expr_append_op(3b5ca24334c1be34). 98, 99cxx . . $ $anonymous_type_3faee4e32dba9587_2#ctx., 100, cxx . . $ $anonymous_type_3faee4e32dba9587_2#e.101, 102, 103, 10cxx . . $ GRN_OP_BITWISE_NOT.4, 105, 106, |
| 695 | /* 480 */ 107, 108, 109, 122, 11, 112, 13, 86, 15, 16, |
| 696 | /* 490 */ 122, 90, 122, 92, 93, 94, 95, 96, 97, 98, |
| 697 | /* 500 */ 99, cxx . . $ grn_expr_append_op(3b5ca24334c1be34). 100, 101cxx . . $ $anonymous_type_3faee4e32dba9587_2#ctx., 102, cxx . . $ $anonymous_type_3faee4e32dba9587_2#e.103, 104, 105cxx . . $ GRN_OP_ADJUST., 106, 107, 108, |
| 698 | /* 510 */ 109, 122, 11, 112, 13, 122, 15, 16, 20, 21, |
| 699 | /* 520 */ 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, |
| 700 | /* 530 */ 122, cxx . . $ grn_expr_append_op(3b5ca24334c1be34). 122, 122cxx . . $ $anonymous_type_3faee4e32dba9587_2#ctx., 122, cxx . . $ $anonymous_type_3faee4e32dba9587_2#e. 61, 62, 12cxx . . $ GRN_OP_EXACT.2, 122, 122, 66, |
| 701 | /* 540 */ 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, |
| 702 | /* 550 */ 77, 78, 79, 122, 11, 82, 13, 122, 15, 16, |
| 703 | /* 560 */ 122, cxx . . $ grn_expr_append_op(3b5ca24334c1be34). 122, 61cxx . . $ $anonymous_type_3faee4e32dba9587_2#ctx., 62, cxx . . $ $anonymous_type_3faee4e32dba9587_2#e.122, 67, 68,cxx . . $ GRN_OP_PARTIAL. 66, 67, 68, |
| 704 | /* 570 */ 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, |
| 705 | /* 580 */ 79, 122, 122, 122, 90, 122, 92, 93, 94, 95, |
| 706 | /* 590 */ 96, cxx . . $ grn_expr_append_op(3b5ca24334c1be34). 97, 98cxx . . $ $anonymous_type_3faee4e32dba9587_2#ctx., 99, cxx . . $ $anonymous_type_3faee4e32dba9587_2#e.100, 101, 102,cxx . . $ GRN_OP_UNSPLIT. 103, 104, 105, |
| 707 | /* 600 */ 106, 107, 108, 109, 61, 62, 112, 122, 122, 66, |
| 708 | /* 610 */ 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, |
| 709 | /* 620 */ 77, 78, 79, 122, 122, 90, 122, 92, 93, 94, |
| 710 | /* 630 */ 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, |
| 711 | /* 640cxx . . $ grn_ctx# */ 105, 106, cxx . . $ $anonymous_type_3faee4e32dba9587_2#ctx. 107, 108, 109, 122, 90, 112, 92, 93, |
| 712 | /* 650 cxx . . $ grn_expr#*/ 94, 95,cxx . . $ grn_expr# 96, 97cxx . . $ $anonymous_type_3faee4e32dba9587_2#e., 98, 99, 100, 101, 102, 103, |
| 713 | /* 660 */ cxx . . $ grn_expr_dfi# 104, 105, 106, 107, 108, 109, 122, 90, 112, 92, |
| 714 | /* 670 */ 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, |
| 715 | /* 680 */ 103, 104, 105, 106, 107, 108, 109, 122, 90, 112, |
| 716 | /* 690 */ 92, 93,cxx . . $ grn_expr_dfi_pop(23f35137d5185d0c). 94, 95, 96, 97, 98, 99, 100, 101, |
| 717 | /* 700 */ 102cxx . . $ `lib/expr.c:1011:9`!, 103, 104, 105, 106, 107, 108, 109, 122, 90, |
| 718 | /* 710 */ 112cxx . . $ grn_expr_dfi_put(fb3169a16e4604c9)., 92, 93, 94,cxx . . $ $anonymous_type_3faee4e32dba9587_1#type. 95, 96, cxx . . $ $anonymous_type_3faee4e32dba9587_1#domain. 97, 98, cxx . . $ $anonymous_type_3faee4e32dba9587_1#code. 99, 100, |
| 719 | /* 720 */ 101, 102, 103, 104, 105, 106, 107, 108, 109, 122, |
| 720 | /* 7cxx . . $ `lib/grn_error.h:156:9`!30 */ 90, 112, 92, 93, 94, 95, 96, 97, 98, 99, |
| 721 | /* 740 */ 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, |
| 722 | /* 750 */ 122, 90, 112, 92, 93, 94, 95, 96, 97, 98, |
| 723 | /* 760 */ 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, |
| 724 | /* 770 */ 109, 1cxx . . $ grn_expr_append_op(3b5ca24334c1be34).22, 90, cxx . . $ $anonymous_type_3faee4e32dba9587_2#ctx. 112, 9cxx . . $ $anonymous_type_3faee4e32dba9587_2#e.2, 93, 94, 9cxx . . $ GRN_OP_INCR_POST.5, 96, 97, |
| 725 | /* 780 */ 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, |
| 726 | /* 790 */ 108, 109, 122, 90, 112, 92, 93, 94, 95, 96, |
| 727 | /* 800 */ 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, |
| 728 | /* 810cxx . . $ grn_ctx# */ 107, 108, cxx . . $ $anonymous_type_3faee4e32dba9587_2#ctx. 109, 122, 90, 112, 92, 93, 94, 95, |
| 729 | /* 820 cxx . . $ grn_expr#*/ 96, 97,cxx . . $ grn_expr# 98, 99cxx . . $ $anonymous_type_3faee4e32dba9587_2#e., 100, 101, 102, 103, 104, 105, |
| 730 | /* 830 */ cxx . . $ grn_expr_dfi# 106, 107, 108, 109, 122, 90, 112, 92, 93, 94, |
| 731 | /* 840 */ 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, |
| 732 | /* 850 */ 105, 106, 107, 108, 109, 122, 90, 112, 92, 93, |
| 733 | /* 860 */ 94, 95,cxx . . $ grn_expr_dfi_pop(23f35137d5185d0c). 96, 97, 98, 99, 100, 101, 102, 103, |
| 734 | /* 870 */ 104cxx . . $ `lib/expr.c:1011:9`!, 105, 106, 107, 108, 109, 122, 90, 112, 92, |
| 735 | /* 880 */ 93cxx . . $ grn_expr_dfi_put(fb3169a16e4604c9)., 94, 95, 96,cxx . . $ $anonymous_type_3faee4e32dba9587_1#type. 97, 98, cxx . . $ $anonymous_type_3faee4e32dba9587_1#domain. 99, 100, cxx . . $ $anonymous_type_3faee4e32dba9587_1#code.101, 102, |
| 736 | /* 890 */ 103, 104, 105, 106, 107, 108, 109, 122, 90, 112, |
| 737 | /* 9cxx . . $ `lib/grn_error.h:156:9`!00 */ 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, |
| 738 | /* 910 */ 102, 103, 104, 105, 106, 107, 108, 109, 122, 90, |
| 739 | /* 920 */ 112, 92, 93, 94, 95, 96, 97, 98, 99, 100, |
| 740 | /* 930 */ 101, 102, 103, 104, 105, 106, 107, 108, 109, 122, |
| 741 | /* 940 */ 90, 1cxx . . $ grn_expr_append_op(3b5ca24334c1be34).12, 92, cxx . . $ $anonymous_type_3faee4e32dba9587_2#ctx. 93, 9cxx . . $ $anonymous_type_3faee4e32dba9587_2#e.4, 95, 96, 9cxx . . $ GRN_OP_DECR_POST.7, 98, 99, |
| 742 | /* 950 */ 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, |
| 743 | /* 960 */ 122, 90, 112, 92, 93, 94, 95, 96, 97, 98, |
| 744 | /* 970 */ 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, |
| 745 | /* 980 */ 109, 122, 122, 112, 39, 40, 41, 42, 43, 44, |
| 746 | /* 990 */ 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, |
| 747 | /* 1000 */ 55, 56, 57, 90, 122, 92, 122, 122, 95, 122, |
| 748 | /* 1010 */ 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, |
| 749 | /* 1020 */ 107, cxx . . $ grn_expr_append_op(3b5ca24334c1be34). 108, 109cxx . . $ $anonymous_type_3faee4e32dba9587_2#ctx., 122, cxx . . $ $anonymous_type_3faee4e32dba9587_2#e. 90, 112, cxx . . $ GRN_OP_CALL.92, 122, 122, cxx . . $ yyStackEntry#minor. 95cxx . . $ $anonymous_type_d3a40ffe8691b635_0#yy0., |
| 750 | /* 1030 */ 122, 122, 98, 99, 100, 101, 102, 103, 104, 105, |
| 751 | /* 1040 */ 106, 107, 108, 109, 122, 90, 112, 92, 122, 122, |
| 752 | /* 1050 */ 95, 122, 122, 98, 99, 100, 101, 102, 103, 104, |
| 753 | /* 1060 */ 105, 106, 107, 108, 109, 122, 90, 112, 92, 122, |
| 754 | /* 1070 */ 122, 95, 122, 122, 98, 99, 100, 101, 102, 103, |
| 755 | /* 1080 */ 104, 105, 106, 107, 108, 109, 122, 90, 112, 92, |
| 756 | /* 1090 */ 122, 122, 95, 122, 122, 98, 99, 100, 101, 102, |
| 757 | /* 1100 */ 103, 104, 105, 106, 107, 108, 109, 122, 90, 112, |
| 758 | /* 1110 */ 92, 122, 122, 95, 122, 122, 122, 99, 100, 101, |
| 759 | /* 1120 */ 102, 103, 104, 105, 106, 107, 108, 109, 122, 90, |
| 760 | /* 1130 */ 112, 92, 122, 122, 95, 122, 122, 122, 122, 100, |
| 761 | /* 1140 */ 101, 102, 103, 104, 105, 106, 107, 108, 109, 122, |
| 762 | /* 1150 */ 90, 112, 92, 122, 122, 95, 122, 122, 122, 122, |
| 763 | /* 1160 */ 122, 101, 102, 103, 104, 105, 106, 107, 108, 109, |
| 764 | /* 1170 */ 122, 90, 112, 92, 122, 122, 95, 122, 122, 122, |
| 765 | /* 1180 */ 122, 122, 122, 102, 103, 104, 105, 106, 107, 108, |
| 766 | /* 1190 */ 109,cxx . . $ array_literal_end(20188da24f67d318). 122, 90, 112, 9cxx . . $ yyStackEntry#minor.2, cxx . . $ $anonymous_type_d3a40ffe8691b635_0#yy0.122, 122, 95, 122, 122, |
| 767 | /* 1200 */ 122, 122, 122, 122, 102, 103, 104, 105, 106, 107, |
| 768 | /* 1210 */ 108, 109, 0, 122, 112, 122, 122, 122, 6, 7, |
| 769 | /* 1220 */ 8, 9, 10, 11, 122, 13, 14, 15, 16, 0, |
| 770 | /* 1230 */ cxx . . $ yyStackEntry#minor.18, cxx . . $ $anonymous_type_d3a40ffe8691b635_0#yy0. 122, 122, 122, 122, 6, 7, 8, 9, 10, |
| 771 | /* 1240 */ 11, 122, 13, 14, 15, 16, 90, 18, 92, 122, |
| 772 | /* 1250 */ 122, 95, 122, 122, 122, 122, 122, 122, 122, 103, |
| 773 | /* 1260 */ 1cxx . . $ yyStackEntry#minor.04, cxx . . $ $anonymous_type_d3a40ffe8691b635_0#yy0. 105, 106, 107, 108, 109, 122, 90, 112, 92, |
| 774 | /* 1270 */ 122, 122, 95, 122, 122, 122, 122, 122, 122, 122, |
| 775 | /* 1280 */ 103, 104, 105, 106, 107, 108, 109, 122, 90, 112, |
| 776 | /* 1290 */ cxx . . $ $anonymous_type_d3a40ffe8691b635_0#yy0.92, 122, 122, cxx . . $ yyStackEntry#minor.95, cxx . . $ $anonymous_type_d3a40ffe8691b635_0#yy0. 122, 122, 122, 122, 122, 122, |
| 777 | /* 1300 */ 122, 103, 104, 105, 106, 107, 108, 109, 122, 90, |
| 778 | /* 1310 */ 112, 92, 122, 122, 95, 122, 122, 122, 122, 122, |
| 779 | /* 1320 */ 122, 122, 103, 104, 105, 106, 107, 108, 109, 122, |
| 780 | /* 1330 */ 90, cxx . . $ object_literal_end(20188da24f67d318). 112, 92, 122, 122cxx . . $ yyStackEntry#minor., cxx . . $ $anonymous_type_d3a40ffe8691b635_0#yy0.95, 122, 122, 122, 122, |
| 781 | /* 1340 */ 122, 122, 122, 103, 104, 105, 106, 107, 108, 109, |
| 782 | /* 1350 */ 122, 90, 112, 92, 122, 122, 95, 122, 122, 122, |
| 783 | /* 1360 */ 122, 122, 122, 122, 103, 104, 105, 106, 107, 108, |
| 784 | /* 1370 */ 109, 122, 90, 112, 92, 122, 122, 95, 122, 122, |
| 785 | /* 1380 */ 122, 122, 122, 122, 122, 103, 104, 105, 106, 107, |
| 786 | /* 1390 */ 108, 109, 122, 90, 112, 92, 122, 122, 95, 122, |
| 787 | /* 1400 */ 122, 122, 122, 122, 122, 122, 103, 104, 105, 106, |
| 788 | /* 1410 */ 107, 108, 109, 122, 90, 112, 92, 122, 122, 95, |
| 789 | /* 1420 */ 122, 122, 122, 122, 122, 122, 122, 103, 104, 105, |
| 790 | /* 1430 */ 106, 107, 108, 109, 122, 90, 112, 92, 122, 122, |
| 791 | /* 1440 */ 95, 122, 122, 122, 122, 122, 122, 122, 103, 104, |
| 792 | /* 1450 */ 105, 106, 107, 108, 109, 122, 90, 112, 92, 122, |
| 793 | /* 1460 */ 122, 95, 122, 122, 122, 122, 122, 122, 122, 103, |
| 794 | /* 1470 */ 104, 105, 106, 107, 108, 109, 122, 90, 112, 92, |
| 795 | /* 1480 */ 122, 122, 95, 122, 122, 122, 122, 122, 122, 122, |
| 796 | /* 1490 */ 103, 104, 105, 106, 107, 108, 109, 122, 90, 112, |
| 797 | /* 1500 */ 92, cxx . . $ grn_expr_append_op(3b5ca24334c1be34). 122, 122cxx . . $ $anonymous_type_3faee4e32dba9587_2#ctx., 95, cxx . . $ $anonymous_type_3faee4e32dba9587_2#e.122, 122, 122, 1cxx . . $ GRN_OP_GET_MEMBER.22, 122, 122, |
| 798 | /* 1510 */ 122, 103, 104, 105, 106, 107, 108, 109, 122, 90, |
| 799 | /* 1520 */ 112, 92, 122, 122, 95, 122, 122, 122, 122, 122, |
| 800 | /* 1530 */ 122, 122, 103, 104, 105, 106, 107, 108, 109, 122, |
| 801 | /* 1540 */ 9cxx . . $ yyStackEntry#minor.0, cxx . . $ $anonymous_type_d3a40ffe8691b635_0#yy0.112, 92, 122, cxx . . $ yyStackEntry#minor.122,cxx . . $ $anonymous_type_d3a40ffe8691b635_0#yy0. 95, 122, 122, 122, 122, |
| 802 | /* 1550 */ 1cxx . . $ yyStackEntry#minor.22, cxx . . $ $anonymous_type_d3a40ffe8691b635_0#yy0. 122, 122, 103, 104, 105, 106, 107, 108, 109, |
| 803 | /* 1560 */ 1cxx . . $ yyStackEntry#minor.22, cxx . . $ $anonymous_type_d3a40ffe8691b635_0#yy0. 90, 112, 92, 122, 122, 95, 122, 122, 122, |
| 804 | /* 1570 */ 1cxx . . $ $anonymous_type_d3a40ffe8691b635_0#yy0.22, 122, 122, 1cxx . . $ yyStackEntry#minor.22, cxx . . $ $anonymous_type_d3a40ffe8691b635_0#yy0. 103, 104, 105, 106, 107, 108, |
| 805 | /* 1580 */ 109, 122, 90, 112, 92, 122, 122, 95, 122, 122, |
| 806 | /* 1590 */ 122, 122, 122, 122, 122, 103, 104, 105, 106, 107, |
| 807 | /* 1600 */ 108, 109, 122, 90, 112, 92, 122, 122, 95, 122, |
| 808 | /* 1610 */ 122, 122, 122, 122, 122, 122, 103, 104, 105, 106, |
| 809 | /* 1620 */ 107, 108, 109, 122, 90, 112, 92, 122, 122, 95, |
| 810 | /* 1630 */ 1cxx . . $ $anonymous_type_d3a40ffe8691b635_0#yy0.22, 122, 122, cxx . . $ yyStackEntry#minor.122,cxx . . $ $anonymous_type_d3a40ffe8691b635_0#yy0. 122, 122, 122, 103, 104, 105, |
| 811 | /* 1640 */ 106, 107, 108, 109, 122, 90, 112, 92, 122, 122, |
| 812 | /* 1650 */ 95, 122, 122, 122, 122, 122, 122, 122, 122, 104, |
| 813 | /* 1660 */ 105, 106, 107, 108, 109, 122, 90, 112, 92, 122, |
| 814 | /* 1670 */ 122, 95, 122, 122, 122, 122, 122, 122, 122, 122, |
| 815 | /* 1680 */ 1cxx . . $ $anonymous_type_d3a40ffe8691b635_0#yy0.04, 105, 106, 1cxx . . $ yyStackEntry#minor.07, cxx . . $ $anonymous_type_d3a40ffe8691b635_0#yy0. 108, 109, 122, 90, 112, 92, |
| 816 | /* 1690 */ 122, 122, 95, 122, 90, 91, 92, 122, 122, 95, |
| 817 | /* 1700 */ 122, 104, 105, 106, 107, 108, 109, 122, 122, 112, |
| 818 | /* 1710 */ 106, 107, 108, 109, 122, 90, 112, 92, 122, 122, |
| 819 | /* 1720 */ 95, 122, 122, 122, 122, 122, 122, 122, 122, 122, |
| 820 | /* 1730 */ 105, cxx . . $ yyStackEntry#minor.106,cxx . . $ $anonymous_type_d3a40ffe8691b635_0#yy0. 107, 108, 109, 122, 90, 112, 92, 122, |
| 821 | /* 1740 */ 122cxx . . $ $anonymous_type_d3a40ffe8691b635_0#yy0., 95, 122, 12cxx . . $ yyStackEntry#minor.2, cxx . . $ $anonymous_type_d3a40ffe8691b635_0#yy0.122, 122, 122, 122, 122, 122, |
| 822 | /* 1750 */ 122, 105, cxx . . $ yyStackEntry#minor.106,cxx . . $ $anonymous_type_d3a40ffe8691b635_0#yy0. 107, 108, 109, 122, 90, 112, 92, |
| 823 | /* 1760 */ 122cxx . . $ $anonymous_type_d3a40ffe8691b635_0#yy0., 122, 95, 122cxx . . $ yyStackEntry#minor., 1cxx . . $ $anonymous_type_d3a40ffe8691b635_0#yy0.22, 122, 122, 122, 122, 122, |
| 824 | /* 1770 */ 122, 122, 122, 106, 107, 108, 109, 122, 90, 112, |
| 825 | /* 1780 */ 92, 1cxx . . $ yyStackEntry#minor.22, cxx . . $ $anonymous_type_d3a40ffe8691b635_0#yy0. 122, 95, 122, 90, 122, 92, 122, 122, |
| 826 | /* 1790 */ 95, 122cxx . . $ grn_expr_append_op(3b5ca24334c1be34)., 122, 1cxx . . $ $anonymous_type_3faee4e32dba9587_2#ctx.22, 106,cxx . . $ $anonymous_type_3faee4e32dba9587_2#e. 107, 108, cxx . . $ GRN_OP_COMMA.109, 122, 122, |
| 827 | /* 1800 */ 112, 106, 107, 108, 109, 122, 90, 112, 92, 122, |
| 828 | /* 1810 */ 122cxx . . $ $anonymous_type_d3a40ffe8691b635_0#yy0., 95, 122, 122, 122, 122, 122, 122, 122, 122, |
| 829 | /* 1820 */ 122, 122, 106, 107, 108, 109, 122, 90, 112, 92, |
| 830 | /* 1830 */ 122, 122, 95, 122, 122, 122, 122, 122, 122, 122, |
| 831 | /* 1840 */ 122, 122, 122, 106, 107, 108, 109, 122, 90, 112, |
| 832 | /* 1850 */ 92, 122, 122, 95, 122, 122, 122, 122, 122, 122, |
| 833 | /* 1860cxx . . $ grn_ctx# */ 122, 122, cxx . . $ $anonymous_type_3faee4e32dba9587_2#ctx. 122, 122, 106, 107, 108, 109, 122, 90, |
| 834 | /* 1870cxx . . $ grn_obj# */ 112, 92,cxx . . $ $anonymous_type_3faee4e32dba9587_2#e. 122, 122, 95, 122, 90, 122, 92, 122, |
| 835 | /* 1880cxx . . $ grn_obj# */ 122, 95, 122, 122, 122, 106cxx . . $ grn_expr_get_var_by_offset(fe791abc79590565)., 107, 108, 109, 122, |
| 836 | /* 1890 */ 122, 112, 106, 107, 108, 109, 122, 90, 112, 92, |
| 837 | /* 1900 cxx . . $ grn_id#*/ 122, 122, 95, 122, 1cxx . . $ `include/groonga/groonga.h:1803:9`!22, 122, 122, 122, 122, 122, |
| 838 | /* 1910 *cxx . . $ grn_obj#/ 122, 122, 122,cxx . . $ grn_ctx_at(ac4544c8400954c9). 106, 107, 108, 109, 122, 90, 112, |
| 839 | /* 1920 *cxx . . $ grn_obj#/ 92, 122, 122, 95, 122, 122, 122, 122, 122, 122, |
| 840 | /* 1930 */ 122, 122, 122, 122, 106, 107, 108, 109, 122, 90, |
| 841 | /* 1940 *cxx . . $ grn_obj#/ 112, 92, 122, 122, 95, 122, 122, 122, 122, 122, |
| 842 | /* 1950 */ 122, 122, 122, 122, 122, 106, 107, 108, 109, 122, |
| 843 | /* 1960 */ cxx . . $ `include/groonga/groonga.h:2869:9`!90, 112, 92, 122, 122, 95cxx . . $ `include/groonga/groonga.h:2734:9`!, 122, 90cxx . . $ `include/groonga/groonga.h:55:9`!, 122, 92, |
| 844 | /* 1970 */ 122,cxx . . $ grn_obj_columns(be74aaaf5cba6536). 122, 95, 122, 122,cxx . . $ strlen(751346f8406fd082). 122, 106, 107, 108, 109, |
| 845 | /* 1980 */ 122, 122, 112cxx . . $ `include/groonga/groonga.h:2642:9`!, 106, 107, 108, 109, 122, cxx . . $ grn_obj#90, 112, |
| 846 | /* 1990 */ 92, 1cxx . . $ grn_obj#22, 122, 95, cxx . . $ `include/groonga/groonga.h:2648:9`!122, 122, 122, 122, 122, 122, |
| 847 | /* 2000 */ 122, 122, 122, 122, 106, 107, 108, 109, 0, 122, |
| 848 | /* 2010 */ 112, 122, 122, 122, 122, 122, 122, 122, 10, 11, |
| 849 | /* 2020 */ 122, 13, 14, 15, 16, 122, 18, 122, 122, 122, |
| 850 | /* 2030 */ 122, 122, 122, 122, 122, 122, 122, 122, 122, 122, |
| 851 | /* 2040 */ cxx . . $ grn_obj# 122, 122, 122, 122, 122, 122, 122, 122, 122, 122, |
| 852 | /* 2050 */ 122, 122, cxx . . $ grn_expr_append_const(1a96b2046350ef54).122, 122, 122, 122, 122, 122, cxx . . $ GRN_OP_GET_VALUE.122, 122, |
| 853 | /* 2060 */ 122, 12cxx . . $ grn_expr_take_obj(99eba0d3a8372d65).2, 122, 122, 122, 122, 122, 122, 122, 122, |
| 854 | /* 2070 */ 122, 122, 122, 122, 122, 122, 122, 122, 122, 122, |
| 855 | /* 2080 */ cxx . . $ grn_expr# 122, 122, 12cxx . . $ grn_expr#2, 122, 122, 122, 122, 122, 122, 122, |
| 856 | /* 2090 cxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`!*/ 122, 122, 83, 83, 83, 83, 83, 83, 83, 83, |
| 857 | /* 2100 */ 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, |
| 858 | }; |
| 859 | #define YY_SHIFT_COUNcxx . . $ `lib/grn_ecmascript.c:859:9`!T (165)cxx . . $ _grn_expr#codes_curr. |
| 860 | #define YY_cxx . . $ `lib/grn_ecmascript.c:860:9`!SHIFT_Mcxx . . $ `lib/grn_ecmascript.c:860:9`!INcxx . . $ `lib/grn_ecmascript.c:860:9`! (0) |
| 861 | #define YY_SHIFcxx . . $ grn_obj#T_cxx . . $ `lib/grn_ecmascript.c:861:9`!MAX (2008) |
| 862 | static const unsigned short icxx . . $ grn_expr_append_const(1a96b2046350ef54).nt yy_cxx . . $ yy_shift_ofst.shift_cxx . . $ yy_shift_ofst.ofst[] = {cxx . . $ GRN_OP_GET_VALUE. |
| 863 | /* 0 */ 0, 501, 101, 135, 228, 135, 228, 543, 543, 543, |
| 864 | /* 10 */ 543, 543, 5cxx . . $ grn_expr_append_op(3b5ca24334c1be34).43, 543, 543, 543, 5cxx . . $ GRN_OP_COMMA.43, 543, 543, 543, |
| 865 | /* 20 */ 543, 543, 543, 543, 543, 543, 543, 543, 543, 543, |
| 866 | /* 30 */ 543, 543,cxx . . $ grn_expr_take_obj(99eba0d3a8372d65). 543, 543, 543, 543, 543, 543, 543, 543, |
| 867 | /* 40 */ 543, 543, 543, 543, 543, 543, 543, 543, 543, 543, |
| 868 | /* 50 */ 543, 543, 543, 543, 543, 543, 543, 543, 543, 543, |
| 869 | /* 60 */ 543, 543, 101, 543, 543, 473, 543, 543, 543, 543, |
| 870 | /* 70 */ 54cxx . . $ grn_obj_unref(cda3a5f3c2e53c6b).3, 543, 543, 543, 543, 543, 543, 543, 543, 543, |
| 871 | /* 80 */ cxx . . $ `include/groonga/groonga.h:958:9`!107, 44, 48, 2008, 142, 205, 44, 48, 1212, 42, |
| 872 | /* 90 */ 1229, 142, 142, 142, 142, 142, 142, 142, 256, 945, |
| 873 | /* 100 */ 945cxx . . $ yyStackEntry#minor., 9cxx . . $ $anonymous_type_d3a40ffe8691b635_0#yy0.45, 498, 181, 181, 189, 189, 189, 189, 189, |
| 874 | /* 110 */ 189, 189, 189, 189, 189, 189, 189, 189, 189, 189, |
| 875 | /* 120 */ 189, 189, 211, 189, 211, 189, 211, 189, 64, 191, |
| 876 | /* 130 */ 145cxx . . $ yyStackEntry#minor., 3cxx . . $ $anonymous_type_d3a40ffe8691b635_0#yy0.74, 147, 5, 252, 138, 138, 226, 138, 240, |
| 877 | /* 140 */ 200, 220, 138, 240, 157, 262, 258, 278, 293, 232, |
| 878 | /* 150 */ 285, 259, 267, 300, 300, 300, 320, 303, 302, 304, |
| 879 | /* 160 */ 300, 302, 304, 300, 307, 278, |
| 880 | }; |
| 881 | #define YY_REDUCE_COUNTcxx . . $ `lib/grn_ecmascript.c:881:9`! (98) |
| 882 | #define YY_REDUCE_MINcxx . . $ `lib/grn_ecmascript.c:882:9`! (-108) |
| 883 | #define YY_REDUCE_MAXcxx . . $ `lib/grn_ecmascript.c:883:9`! (1898) |
| 884 | static const short yy_reduce_ofstcxx . . $ yy_reduce_ofst.[] = { |
| 885 | /* 0 */ -65, -6, 35, 128, 161, 219, 251, 283, 311, 342, |
| 886 | /* 10 */ 373, 401, 494, 535, 556, 577, 598, 619, 640, 661, |
| 887 | /* 20 */ 682, 703, 724, 745, 766, 787, 808, 829, 850, 871, |
| 888 | /* 30 */ 913, 934, 955, 976, 997, 1018, 1039, 1060, 1081, 1102, |
| 889 | /* 40 */ 1156, 1177, 1198, 1219, 1240, 1261, 1282, 1303, 1324, 1345, |
| 890 | /* 50 */ 1366, 1387, 1408, 1429, 1450, 1471, 1492, 1513, 1534, 1555, |
| 891 | /* 60 */ 1576, 1597, 1604, 1625, 1646, 1667, 1688, 1695, 1716, 1737, |
| 892 | /* 70 */ 1758, 1779, 1786, 1807, 1667, 1828, 1849, 1870, 1877, 1898, |
| 893 | /* 80 */ -27, 73, -108, -68, 22, -29, -74, -11, -91, -91, |
| 894 | /* 90 */ -91, -82, -79, 58, 63, 104, 151, 192, 195, |
| 895 | }; |
| 896 | static const YYACTIONTYPEcxx . . $ `lib/grn_ecmascript.c:342:9`! yy_defaultcxx . . $ yy_default.[] = { |
| 897 | /* 0 */ 402, 485, 402, 493, 503, 495, 402, 490, 481, 402, |
| 898 | /* 10 */ 402, 402, 402, 402, 402, 402, 402, 402, 402, 402, |
| 899 | /* 20 */ 402, 402, 402, 402, 402, 402, 402, 402, 402, 402, |
| 900 | /* 30 */ 402, 402, 402, 402, 402, 402, 402, 402, 402, 402, |
| 901 | /* 40 */ 402, 402, 402, 402, 402, 402, 402, 402, 402, 402, |
| 902 | /* 50 */ 402, 402, 402, 402, 402, 402, 402, 402, 402, 402, |
| 903 | /* 60 */ 402, 402, 402, 402, 402, 402, 402, 402, 402, 402, |
| 904 | /* 70 */ 402, 402, 402, 402, 402, 402, 402, 402, 402, 402, |
| 905 | /* 80 */ 402, 551, 485, 402, 402, 536, 402, 402, 402, 402, |
| 906 | /* 90 */ 402, 402, 402, 402, 402, 402, 402, 402, 402, 528, |
| 907 | /* 100 */ 438, 437, 534, 429, 523, 457, 456, 455, 454, 453, |
| 908 | /* 110 */ 452, 451, 450, 449, 448, 447, 446, 445, 444, 443, |
| 909 | /* 120 */ 442, 529, 531, 441, 462, 440, 461, 439, 402, 402, |
| 910 | /* 130 */ 402, 402, 402, 402, 402, 530, 460, 402, 459, 527, |
| 911 | /* 140 */ 402, 534, 458, 436, 522, 402, 545, 541, 402, 402, |
| 912 | /* 150 */ 402, 402, 553, 433, 432, 431, 402, 402, 526, 525, |
| 913 | /* 160 */ 524, 435, 434, 430, 402, 402, |
| 914 | }; |
| 915 | /********** End of lemon-generated parsing tables *****************************/ |
| 916 | |
| 917 | /* The next table maps tokens (terminal symbols) into fallback tokens. |
| 918 | ** If a construct like the following: |
| 919 | ** |
| 920 | ** %fallback ID X Y Z. |
| 921 | ** |
| 922 | ** appears in the grammar, then ID becomes a fallback token for X, Y, |
| 923 | ** and Z. Whenever one of the tokens X, Y, or Z is input to the parser |
| 924 | ** but it does not parse, the type of the token is changed to ID and |
| 925 | ** the parse is retried before an error is thrown. |
| 926 | ** |
| 927 | ** This feature can be used, for example, to cause some keywords in a language |
| 928 | ** to revert to identifiers if they keyword does not apply in the context where |
| 929 | ** it appears. |
| 930 | */ |
| 931 | #ifdef YYFALLBACK |
| 932 | static const YYCODETYPE yyFallback[] = { |
| 933 | }; |
| 934 | #endif /* YYFALLBACK */ |
| 935 | |
| 936 | /* The following structure represents a single element of the |
| 937 | ** parser's stack. Information stored includes: |
| 938 | ** |
| 939 | ** + The state number for the parser at this level of the stack. |
| 940 | ** |
| 941 | ** + The value of the token stored at this level of the stack. |
| 942 | ** (In other words, the "major" token.) |
| 943 | ** |
| 944 | ** + The semantic value stored at this level of the stack. This is |
| 945 | ** the information used by the action routines in the grammar. |
| 946 | ** It is sometimes called the "minor" token. |
| 947 | ** |
| 948 | ** After the "shift" half of a SHIFTREDUCE action, the stateno field |
| 949 | ** actually contains the reduce action for the second half of the |
| 950 | ** SHIFTREDUCE. |
| 951 | */ |
| 952 | struct yyStackEntrycxx . . $ yyStackEntry# { |
| 953 | YYACTIONTYPEcxx . . $ `lib/grn_ecmascript.c:342:9`! statenocxx . . $ yyStackEntry#stateno.; /* The state-number, or reduce action in SHIFTREDUCE */ |
| 954 | YYCODETYPEcxx . . $ `lib/grn_ecmascript.c:340:9`! majorcxx . . $ yyStackEntry#major.; /* The major token value. This is the code |
| 955 | ** number for the token at this stack level */ |
| 956 | YYMINORTYPEcxx . . $ YYMINORTYPE# minorcxx . . $ yyStackEntry#minor.; /* The user-supplied minor token value. This |
| 957 | ** is the value of the token */ |
| 958 | }; |
| 959 | typedef struct yyStackEntrycxx . . $ yyStackEntry# yyStackEntrycxx . . $ yyStackEntry#; |
| 960 | |
| 961 | /* The state of the parser is completely contained in an instance of |
| 962 | ** the following structure */ |
| 963 | struct yyParsercxx . . $ yyParser# { |
| 964 | yyStackEntrycxx . . $ yyStackEntry# *yytoscxx . . $ yyParser#yytos.; /* Pointer to top element of the stack */ |
| 965 | #ifdef YYTRACKMAXSTACKDEPTH |
| 966 | int yyhwm; /* High-water mark of the stack */ |
| 967 | #endif |
| 968 | #ifndef YYNOERRORRECOVERY |
| 969 | int yyerrcntcxx . . $ yyParser#yyerrcnt.; /* Shifts left before out of the error */ |
| 970 | #endif |
| 971 | grn_expr_parserARG_SDECLcxx . . $ `lib/grn_ecmascript.c:352:9`! /* A place to hold %extra_argument */ |
| 972 | grn_expr_parserCTX_SDECLcxx . . $ `lib/grn_ecmascript.c:357:9`! /* A place to hold %extra_context */ |
| 973 | #if YYSTACKDEPTHcxx . . $ `lib/expr.c:4571:9`!<=0 |
| 974 | int yystkszcxx . . $ yyParser#yystksz.; /* Current side of the stack */ |
| 975 | yyStackEntrycxx . . $ yyStackEntry# *yystackcxx . . $ yyParser#yystack.; /* The parser's stack */ |
| 976 | yyStackEntrycxx . . $ yyStackEntry# yystk0cxx . . $ yyParser#yystk0.; /* First stack entry */ |
| 977 | #else |
| 978 | yyStackEntry yystack[YYSTACKDEPTH]; /* The parser's stack */ |
| 979 | yyStackEntry *yystackEnd; /* Last entry in the stack */ |
| 980 | #endif |
| 981 | }; |
| 982 | typedef struct yyParsercxx . . $ yyParser# yyParsercxx . . $ yyParser#; |
| 983 | |
| 984 | #include <assert.h> |
| 985 | #ifndef NDEBUGcxx . . $ `<built-in>:418:9`! |
| 986 | #include <stdio.h> |
| 987 | static FILE *yyTraceFILE = 0; |
| 988 | static char *yyTracePrompt = 0; |
| 989 | #endif /* NDEBUG */ |
| 990 | |
| 991 | #ifndef NDEBUGcxx . . $ `<built-in>:418:9`! |
| 992 | /* |
| 993 | ** Turn parser tracing on by giving a stream to which to write the trace |
| 994 | ** and a prompt to preface each trace message. Tracing is turned off |
| 995 | ** by making either argument NULL |
| 996 | ** |
| 997 | ** Inputs: |
| 998 | ** <ul> |
| 999 | ** <li> A FILE* to which trace output should be written. |
| 1000 | ** If NULL, then tracing is turned off. |
| 1001 | ** <li> A prefix string written at the beginning of every |
| 1002 | ** line of trace output. If NULL, then tracing is |
| 1003 | ** turned off. |
| 1004 | ** </ul> |
| 1005 | ** |
| 1006 | ** Outputs: |
| 1007 | ** None. |
| 1008 | */ |
| 1009 | void grn_expr_parserTrace(FILE *TraceFILE, char *zTracePrompt){ |
| 1010 | yyTraceFILE = TraceFILE; |
| 1011 | yyTracePrompt = zTracePrompt; |
| 1012 | if( yyTraceFILE==0 ) yyTracePrompt = 0; |
| 1013 | else if( yyTracePrompt==0 ) yyTraceFILE = 0; |
| 1014 | } |
| 1015 | #endif /* NDEBUG */ |
| 1016 | |
| 1017 | #if defined(YYCOVERAGE) || !defined(NDEBUGcxx . . $ `<built-in>:418:9`!) |
| 1018 | /* For tracing shifts, the names of all terminals and nonterminals |
| 1019 | ** are required. The following table supplies these names */ |
| 1020 | static const char *const yyTokenName[] = { |
| 1021 | /* 0 */ "$", |
| 1022 | /* 1 */ "START_OUTPUT_COLUMNS", |
| 1023 | /* 2 */ "START_ADJUSTER", |
| 1024 | /* 3 */ "START_SORT_KEYS", |
| 1025 | /* 4 */ "START_OPTIONS", |
| 1026 | /* 5 */ "START_QUERY_NO_SYNTAX_ERROR", |
| 1027 | /* 6 */ "LOGICAL_AND", |
| 1028 | /* 7 */ "LOGICAL_AND_NOT", |
| 1029 | /* 8 */ "LOGICAL_OR", |
| 1030 | /* 9 */ "NEGATIVE", |
| 1031 | /* 10 */ "QSTRING", |
| 1032 | /* 11 */ "PARENL", |
| 1033 | /* 12 */ "PARENR", |
| 1034 | /* 13 */ "ADJUST", |
| 1035 | /* 14 */ "RELATIVE_OP", |
| 1036 | /* 15 */ "IDENTIFIER", |
| 1037 | /* 16 */ "BRACEL", |
| 1038 | /* 17 */ "BRACER", |
| 1039 | /* 18 */ "EVAL", |
| 1040 | /* 19 */ "COMMA", |
| 1041 | /* 20 */ "ASSIGN", |
| 1042 | /* 21 */ "STAR_ASSIGN", |
| 1043 | /* 22 */ "SLASH_ASSIGN", |
| 1044 | /* 23 */ "MOD_ASSIGN", |
| 1045 | /* 24 */ "PLUS_ASSIGN", |
| 1046 | /* 25 */ "MINUS_ASSIGN", |
| 1047 | /* 26 */ "SHIFTL_ASSIGN", |
| 1048 | /* 27 */ "SHIFTR_ASSIGN", |
| 1049 | /* 28 */ "SHIFTRR_ASSIGN", |
| 1050 | /* 29 */ "AND_ASSIGN", |
| 1051 | /* 30 */ "XOR_ASSIGN", |
| 1052 | /* 31 */ "OR_ASSIGN", |
| 1053 | /* 32 */ "QUESTION", |
| 1054 | /* 33 */ "COLON", |
| 1055 | /* 34 */ "BITWISE_OR", |
| 1056 | /* 35 */ "BITWISE_XOR", |
| 1057 | /* 36 */ "BITWISE_AND", |
| 1058 | /* 37 */ "EQUAL", |
| 1059 | /* 38 */ "NOT_EQUAL", |
| 1060 | /* 39 */ "LESS", |
| 1061 | /* 40 */ "GREATER", |
| 1062 | /* 41 */ "LESS_EQUAL", |
| 1063 | /* 42 */ "GREATER_EQUAL", |
| 1064 | /* 43 */ "IN", |
| 1065 | /* 44 */ "MATCH", |
| 1066 | /* 45 */ "NEAR", |
| 1067 | /* 46 */ "NEAR_NO_OFFSET", |
| 1068 | /* 47 */ "NEAR_PHRASE", |
| 1069 | /* 48 */ "ORDERED_NEAR_PHRASE", |
| 1070 | /* 49 */ "NEAR_PHRASE_PRODUCT", |
| 1071 | /* 50 */ "ORDERED_NEAR_PHRASE_PRODUCT", |
| 1072 | /* 51 */ "SIMILAR", |
| 1073 | /* 52 */ "TERM_EXTRACT", |
| 1074 | /* 53 */ "QUORUM", |
| 1075 | /* 54 */ "LCP", |
| 1076 | /* 55 */ "PREFIX", |
| 1077 | /* 56 */ "SUFFIX", |
| 1078 | /* 57 */ "REGEXP", |
| 1079 | /* 58 */ "SHIFTL", |
| 1080 | /* 59 */ "SHIFTR", |
| 1081 | /* 60 */ "SHIFTRR", |
| 1082 | /* 61 */ "PLUS", |
| 1083 | /* 62 */ "MINUS", |
| 1084 | /* 63 */ "STAR", |
| 1085 | /* 64 */ "SLASH", |
| 1086 | /* 65 */ "MOD", |
| 1087 | /* 66 */ "DELETE", |
| 1088 | /* 67 */ "INCR", |
| 1089 | /* 68 */ "DECR", |
| 1090 | /* 69 */ "NOT", |
| 1091 | /* 70 */ "BITWISE_NOT", |
| 1092 | /* 71 */ "EXACT", |
| 1093 | /* 72 */ "PARTIAL", |
| 1094 | /* 73 */ "UNSPLIT", |
| 1095 | /* 74 */ "DECIMAL", |
| 1096 | /* 75 */ "HEX_INTEGER", |
| 1097 | /* 76 */ "STRING", |
| 1098 | /* 77 */ "BOOLEAN", |
| 1099 | /* 78 */ "NULL", |
| 1100 | /* 79 */ "BRACKETL", |
| 1101 | /* 80 */ "BRACKETR", |
| 1102 | /* 81 */ "DOT", |
| 1103 | /* 82 */ "NONEXISTENT_COLUMN", |
| 1104 | /* 83 */ "suppress_unused_variable_warning", |
| 1105 | /* 84 */ "input", |
| 1106 | /* 85 */ "query", |
| 1107 | /* 86 */ "expression", |
| 1108 | /* 87 */ "output_columns", |
| 1109 | /* 88 */ "adjuster", |
| 1110 | /* 89 */ "sort_keys", |
| 1111 | /* 90 */ "object_literal", |
| 1112 | /* 91 */ "query_element", |
| 1113 | /* 92 */ "primary_expression", |
| 1114 | /* 93 */ "assignment_expression", |
| 1115 | /* 94 */ "conditional_expression", |
| 1116 | /* 95 */ "lefthand_side_expression", |
| 1117 | /* 96 */ "logical_or_expression", |
| 1118 | /* 97 */ "logical_and_expression", |
| 1119 | /* 98 */ "bitwise_or_expression", |
| 1120 | /* 99 */ "bitwise_xor_expression", |
| 1121 | /* 100 */ "bitwise_and_expression", |
| 1122 | /* 101 */ "equality_expression", |
| 1123 | /* 102 */ "relational_expression", |
| 1124 | /* 103 */ "shift_expression", |
| 1125 | /* 104 */ "additive_expression", |
| 1126 | /* 105 */ "multiplicative_expression", |
| 1127 | /* 106 */ "unary_expression", |
| 1128 | /* 107 */ "postfix_expression", |
| 1129 | /* 108 */ "call_expression", |
| 1130 | /* 109 */ "member_expression", |
| 1131 | /* 110 */ "arguments", |
| 1132 | /* 111 */ "member_expression_part", |
| 1133 | /* 112 */ "array_literal", |
| 1134 | /* 113 */ "element_list", |
| 1135 | /* 114 */ "property_list", |
| 1136 | /* 115 */ "property", |
| 1137 | /* 116 */ "property_name", |
| 1138 | /* 117 */ "argument_list", |
| 1139 | /* 118 */ "output_column", |
| 1140 | /* 119 */ "adjust_expression", |
| 1141 | /* 120 */ "adjust_match_expression", |
| 1142 | /* 121 */ "sort_key", |
| 1143 | }; |
| 1144 | #endif /* defined(YYCOVERAGE) || !defined(NDEBUG) */ |
| 1145 | |
| 1146 | #ifndef NDEBUGcxx . . $ `<built-in>:418:9`! |
| 1147 | /* For tracing reduce actions, the names of all rules are required. |
| 1148 | */ |
| 1149 | static const char *const yyRuleName[] = { |
| 1150 | /* 0 */ "query ::= query query_element", |
| 1151 | /* 1 */ "query ::= query LOGICAL_AND query_element", |
| 1152 | /* 2 */ "query ::= query LOGICAL_AND_NOT query_element", |
| 1153 | /* 3 */ "query ::= query LOGICAL_OR query_element", |
| 1154 | /* 4 */ "query ::= query NEGATIVE query_element", |
| 1155 | /* 5 */ "query_element ::= ADJUST query_element", |
| 1156 | /* 6 */ "query_element ::= RELATIVE_OP query_element", |
| 1157 | /* 7 */ "query_element ::= IDENTIFIER RELATIVE_OP query_element", |
| 1158 | /* 8 */ "query_element ::= BRACEL expression BRACER", |
| 1159 | /* 9 */ "query_element ::= EVAL primary_expression", |
| 1160 | /* 10 */ "expression ::= expression COMMA assignment_expression", |
| 1161 | /* 11 */ "assignment_expression ::= lefthand_side_expression ASSIGN assignment_expression", |
| 1162 | /* 12 */ "assignment_expression ::= lefthand_side_expression STAR_ASSIGN assignment_expression", |
| 1163 | /* 13 */ "assignment_expression ::= lefthand_side_expression SLASH_ASSIGN assignment_expression", |
| 1164 | /* 14 */ "assignment_expression ::= lefthand_side_expression MOD_ASSIGN assignment_expression", |
| 1165 | /* 15 */ "assignment_expression ::= lefthand_side_expression PLUS_ASSIGN assignment_expression", |
| 1166 | /* 16 */ "assignment_expression ::= lefthand_side_expression MINUS_ASSIGN assignment_expression", |
| 1167 | /* 17 */ "assignment_expression ::= lefthand_side_expression SHIFTL_ASSIGN assignment_expression", |
| 1168 | /* 18 */ "assignment_expression ::= lefthand_side_expression SHIFTR_ASSIGN assignment_expression", |
| 1169 | /* 19 */ "assignment_expression ::= lefthand_side_expression SHIFTRR_ASSIGN assignment_expression", |
| 1170 | /* 20 */ "assignment_expression ::= lefthand_side_expression AND_ASSIGN assignment_expression", |
| 1171 | /* 21 */ "assignment_expression ::= lefthand_side_expression XOR_ASSIGN assignment_expression", |
| 1172 | /* 22 */ "assignment_expression ::= lefthand_side_expression OR_ASSIGN assignment_expression", |
| 1173 | /* 23 */ "conditional_expression ::= logical_or_expression QUESTION assignment_expression COLON assignment_expression", |
| 1174 | /* 24 */ "logical_or_expression ::= logical_or_expression LOGICAL_OR logical_and_expression", |
| 1175 | /* 25 */ "logical_and_expression ::= logical_and_expression LOGICAL_AND bitwise_or_expression", |
| 1176 | /* 26 */ "logical_and_expression ::= logical_and_expression LOGICAL_AND_NOT bitwise_or_expression", |
| 1177 | /* 27 */ "logical_and_expression ::= logical_and_expression ADJUST bitwise_or_expression", |
| 1178 | /* 28 */ "logical_and_expression ::= logical_and_expression NEGATIVE bitwise_or_expression", |
| 1179 | /* 29 */ "bitwise_or_expression ::= bitwise_or_expression BITWISE_OR bitwise_xor_expression", |
| 1180 | /* 30 */ "bitwise_xor_expression ::= bitwise_xor_expression BITWISE_XOR bitwise_and_expression", |
| 1181 | /* 31 */ "bitwise_and_expression ::= bitwise_and_expression BITWISE_AND equality_expression", |
| 1182 | /* 32 */ "equality_expression ::= equality_expression EQUAL relational_expression", |
| 1183 | /* 33 */ "equality_expression ::= equality_expression NOT_EQUAL relational_expression", |
| 1184 | /* 34 */ "relational_expression ::= relational_expression LESS shift_expression", |
| 1185 | /* 35 */ "relational_expression ::= relational_expression GREATER shift_expression", |
| 1186 | /* 36 */ "relational_expression ::= relational_expression LESS_EQUAL shift_expression", |
| 1187 | /* 37 */ "relational_expression ::= relational_expression GREATER_EQUAL shift_expression", |
| 1188 | /* 38 */ "relational_expression ::= relational_expression IN shift_expression", |
| 1189 | /* 39 */ "relational_expression ::= relational_expression MATCH shift_expression", |
| 1190 | /* 40 */ "relational_expression ::= relational_expression NEAR shift_expression", |
| 1191 | /* 41 */ "relational_expression ::= relational_expression NEAR_NO_OFFSET shift_expression", |
| 1192 | /* 42 */ "relational_expression ::= relational_expression NEAR_PHRASE shift_expression", |
| 1193 | /* 43 */ "relational_expression ::= relational_expression ORDERED_NEAR_PHRASE shift_expression", |
| 1194 | /* 44 */ "relational_expression ::= relational_expression NEAR_PHRASE_PRODUCT shift_expression", |
| 1195 | /* 45 */ "relational_expression ::= relational_expression ORDERED_NEAR_PHRASE_PRODUCT shift_expression", |
| 1196 | /* 46 */ "relational_expression ::= relational_expression SIMILAR shift_expression", |
| 1197 | /* 47 */ "relational_expression ::= relational_expression TERM_EXTRACT shift_expression", |
| 1198 | /* 48 */ "relational_expression ::= relational_expression QUORUM shift_expression", |
| 1199 | /* 49 */ "relational_expression ::= relational_expression LCP shift_expression", |
| 1200 | /* 50 */ "relational_expression ::= relational_expression PREFIX shift_expression", |
| 1201 | /* 51 */ "relational_expression ::= relational_expression SUFFIX shift_expression", |
| 1202 | /* 52 */ "relational_expression ::= relational_expression REGEXP shift_expression", |
| 1203 | /* 53 */ "shift_expression ::= shift_expression SHIFTL additive_expression", |
| 1204 | /* 54 */ "shift_expression ::= shift_expression SHIFTR additive_expression", |
| 1205 | /* 55 */ "shift_expression ::= shift_expression SHIFTRR additive_expression", |
| 1206 | /* 56 */ "additive_expression ::= additive_expression PLUS multiplicative_expression", |
| 1207 | /* 57 */ "additive_expression ::= additive_expression MINUS multiplicative_expression", |
| 1208 | /* 58 */ "multiplicative_expression ::= multiplicative_expression STAR unary_expression", |
| 1209 | /* 59 */ "multiplicative_expression ::= multiplicative_expression SLASH unary_expression", |
| 1210 | /* 60 */ "multiplicative_expression ::= multiplicative_expression MOD unary_expression", |
| 1211 | /* 61 */ "unary_expression ::= DELETE unary_expression", |
| 1212 | /* 62 */ "unary_expression ::= INCR unary_expression", |
| 1213 | /* 63 */ "unary_expression ::= DECR unary_expression", |
| 1214 | /* 64 */ "unary_expression ::= PLUS unary_expression", |
| 1215 | /* 65 */ "unary_expression ::= MINUS unary_expression", |
| 1216 | /* 66 */ "unary_expression ::= NOT unary_expression", |
| 1217 | /* 67 */ "unary_expression ::= BITWISE_NOT unary_expression", |
| 1218 | /* 68 */ "unary_expression ::= ADJUST unary_expression", |
| 1219 | /* 69 */ "unary_expression ::= EXACT unary_expression", |
| 1220 | /* 70 */ "unary_expression ::= PARTIAL unary_expression", |
| 1221 | /* 71 */ "unary_expression ::= UNSPLIT unary_expression", |
| 1222 | /* 72 */ "postfix_expression ::= lefthand_side_expression INCR", |
| 1223 | /* 73 */ "postfix_expression ::= lefthand_side_expression DECR", |
| 1224 | /* 74 */ "call_expression ::= member_expression arguments", |
| 1225 | /* 75 */ "array_literal ::= BRACKETL element_list BRACKETR", |
| 1226 | /* 76 */ "element_list ::=", |
| 1227 | /* 77 */ "element_list ::= assignment_expression", |
| 1228 | /* 78 */ "element_list ::= element_list COMMA assignment_expression", |
| 1229 | /* 79 */ "object_literal ::= BRACEL property_list BRACER", |
| 1230 | /* 80 */ "property_list ::=", |
| 1231 | /* 81 */ "property_list ::= property", |
| 1232 | /* 82 */ "property_list ::= property_list COMMA property", |
| 1233 | /* 83 */ "member_expression_part ::= BRACKETL expression BRACKETR", |
| 1234 | /* 84 */ "arguments ::= PARENL argument_list PARENR", |
| 1235 | /* 85 */ "argument_list ::=", |
| 1236 | /* 86 */ "argument_list ::= assignment_expression", |
| 1237 | /* 87 */ "argument_list ::= argument_list COMMA assignment_expression", |
| 1238 | /* 88 */ "output_columns ::=", |
| 1239 | /* 89 */ "output_columns ::= output_column", |
| 1240 | /* 90 */ "output_columns ::= output_columns COMMA", |
| 1241 | /* 91 */ "output_columns ::= output_columns COMMA output_column", |
| 1242 | /* 92 */ "output_column ::= STAR", |
| 1243 | /* 93 */ "output_column ::= NONEXISTENT_COLUMN", |
| 1244 | /* 94 */ "output_column ::= assignment_expression", |
| 1245 | /* 95 */ "adjuster ::= adjuster PLUS adjust_expression", |
| 1246 | /* 96 */ "adjust_expression ::= adjust_match_expression STAR DECIMAL", |
| 1247 | /* 97 */ "adjust_match_expression ::= IDENTIFIER MATCH STRING", |
| 1248 | /* 98 */ "sort_keys ::=", |
| 1249 | /* 99 */ "sort_keys ::= sort_key", |
| 1250 | /* 100 */ "sort_keys ::= sort_keys COMMA sort_key", |
| 1251 | /* 101 */ "sort_key ::= NONEXISTENT_COLUMN", |
| 1252 | /* 102 */ "sort_key ::= MINUS NONEXISTENT_COLUMN", |
| 1253 | /* 103 */ "sort_key ::= assignment_expression", |
| 1254 | /* 104 */ "input ::= query", |
| 1255 | /* 105 */ "input ::= expression", |
| 1256 | /* 106 */ "input ::= START_OUTPUT_COLUMNS output_columns", |
| 1257 | /* 107 */ "input ::= START_ADJUSTER adjuster", |
| 1258 | /* 108 */ "input ::= START_SORT_KEYS sort_keys", |
| 1259 | /* 109 */ "input ::= START_OPTIONS object_literal", |
| 1260 | /* 110 */ "input ::= START_QUERY_NO_SYNTAX_ERROR", |
| 1261 | /* 111 */ "input ::= START_QUERY_NO_SYNTAX_ERROR query", |
| 1262 | /* 112 */ "query ::= query_element", |
| 1263 | /* 113 */ "query_element ::= QSTRING", |
| 1264 | /* 114 */ "query_element ::= PARENL query PARENR", |
| 1265 | /* 115 */ "expression ::= assignment_expression", |
| 1266 | /* 116 */ "assignment_expression ::= conditional_expression", |
| 1267 | /* 117 */ "conditional_expression ::= logical_or_expression", |
| 1268 | /* 118 */ "logical_or_expression ::= logical_and_expression", |
| 1269 | /* 119 */ "logical_and_expression ::= bitwise_or_expression", |
| 1270 | /* 120 */ "bitwise_or_expression ::= bitwise_xor_expression", |
| 1271 | /* 121 */ "bitwise_xor_expression ::= bitwise_and_expression", |
| 1272 | /* 122 */ "bitwise_and_expression ::= equality_expression", |
| 1273 | /* 123 */ "equality_expression ::= relational_expression", |
| 1274 | /* 124 */ "relational_expression ::= shift_expression", |
| 1275 | /* 125 */ "shift_expression ::= additive_expression", |
| 1276 | /* 126 */ "additive_expression ::= multiplicative_expression", |
| 1277 | /* 127 */ "multiplicative_expression ::= unary_expression", |
| 1278 | /* 128 */ "unary_expression ::= postfix_expression", |
| 1279 | /* 129 */ "postfix_expression ::= lefthand_side_expression", |
| 1280 | /* 130 */ "lefthand_side_expression ::= call_expression", |
| 1281 | /* 131 */ "lefthand_side_expression ::= member_expression", |
| 1282 | /* 132 */ "member_expression ::= primary_expression", |
| 1283 | /* 133 */ "member_expression ::= member_expression member_expression_part", |
| 1284 | /* 134 */ "primary_expression ::= object_literal", |
| 1285 | /* 135 */ "primary_expression ::= PARENL expression PARENR", |
| 1286 | /* 136 */ "primary_expression ::= IDENTIFIER", |
| 1287 | /* 137 */ "primary_expression ::= array_literal", |
| 1288 | /* 138 */ "primary_expression ::= DECIMAL", |
| 1289 | /* 139 */ "primary_expression ::= HEX_INTEGER", |
| 1290 | /* 140 */ "primary_expression ::= STRING", |
| 1291 | /* 141 */ "primary_expression ::= BOOLEAN", |
| 1292 | /* 142 */ "primary_expression ::= NULL", |
| 1293 | /* 143 */ "property ::= property_name COLON assignment_expression", |
| 1294 | /* 144 */ "property_name ::= STRING", |
| 1295 | /* 145 */ "member_expression_part ::= DOT IDENTIFIER", |
| 1296 | /* 146 */ "adjuster ::=", |
| 1297 | /* 147 */ "adjuster ::= adjust_expression", |
| 1298 | /* 148 */ "adjust_expression ::= adjust_match_expression", |
| 1299 | }; |
| 1300 | #endif /* NDEBUG */ |
| 1301 | |
| 1302 | |
| 1303 | #if YYSTACKDEPTHcxx . . $ `lib/expr.c:4571:9`!<=0 |
| 1304 | /* |
| 1305 | ** Try to increase the size of the parser stack. Return the number |
| 1306 | ** of errors. Return 0 on success. |
| 1307 | */ |
| 1308 | static int yyGrowStackcxx . . $ yyGrowStack(d0697efab23a41e).(yyParsercxx . . $ yyParser# *p){ |
| 1309 | int newSize; |
| 1310 | int idx; |
| 1311 | yyStackEntrycxx . . $ yyStackEntry# *pNew; |
| 1312 | |
| 1313 | newSize = p->yystkszcxx . . $ yyParser#yystksz.*2 + 100; |
| 1314 | idx = p->yytoscxx . . $ yyParser#yytos. ? (int)(p->yytoscxx . . $ yyParser#yytos. - p->yystackcxx . . $ yyParser#yystack.) : 0; |
| 1315 | if( p->yystackcxx . . $ yyParser#yystack.==&p->yystk0cxx . . $ yyParser#yystk0. ){ |
| 1316 | pNew = malloccxx . . $ malloc(bfcfa4d6b7f7ef64).(newSize*sizeof(pNew[0])); |
| 1317 | if( pNew ) pNew[0] = p->yystk0cxx . . $ yyParser#yystk0.; |
| 1318 | }else{ |
| 1319 | pNew = realloccxx . . $ realloc(417ab160f6baadc6).(p->yystackcxx . . $ yyParser#yystack., newSize*sizeof(pNew[0])); |
| 1320 | } |
| 1321 | if( pNew ){ |
| 1322 | p->yystackcxx . . $ yyParser#yystack. = pNew; |
| 1323 | p->yytoscxx . . $ yyParser#yytos. = &p->yystackcxx . . $ yyParser#yystack.[idx]; |
| 1324 | #ifndef NDEBUGcxx . . $ `<built-in>:418:9`! |
| 1325 | if( yyTraceFILE ){ |
| 1326 | fprintf(yyTraceFILE,"%sStack grows from %d to %d entries.\n", |
| 1327 | yyTracePrompt, p->yystksz, newSize); |
| 1328 | } |
| 1329 | #endif |
| 1330 | p->yystkszcxx . . $ yyParser#yystksz. = newSize; |
| 1331 | } |
| 1332 | return pNew==0; |
| 1333 | } |
| 1334 | #endif |
| 1335 | |
| 1336 | /* Datatype of the argument to the memory allocated passed as the |
| 1337 | ** second argument to grn_expr_parserAlloc() below. This can be changed by |
| 1338 | ** putting an appropriate #define in the %include section of the input |
| 1339 | ** grammar. |
| 1340 | */ |
| 1341 | #ifndef YYMALLOCARGTYPE |
| 1342 | # define YYMALLOCARGTYPEcxx . . $ `lib/grn_ecmascript.c:1342:10`! size_t |
| 1343 | #endif |
| 1344 | |
| 1345 | /* Initialize a new parser that has already been allocated. |
| 1346 | */ |
| 1347 | void grn_expr_parserInitcxx . . $ grn_expr_parserInit(5d22bdacc48458e8).(void *yypRawParser grn_expr_parserCTX_PDECLcxx . . $ `lib/grn_ecmascript.c:358:9`!){ |
| 1348 | yyParsercxx . . $ yyParser# *yypParser = (yyParsercxx . . $ yyParser#*)yypRawParser; |
| 1349 | grn_expr_parserCTX_STOREcxx . . $ `lib/grn_ecmascript.c:361:9`! |
| 1350 | #ifdef YYTRACKMAXSTACKDEPTH |
| 1351 | yypParser->yyhwm = 0; |
| 1352 | #endif |
| 1353 | #if YYSTACKDEPTHcxx . . $ `lib/expr.c:4571:9`!<=0 |
| 1354 | yypParser->yytoscxx . . $ yyParser#yytos. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!; |
| 1355 | yypParser->yystackcxx . . $ yyParser#yystack. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!; |
| 1356 | yypParser->yystkszcxx . . $ yyParser#yystksz. = 0; |
| 1357 | if( yyGrowStackcxx . . $ yyGrowStack(d0697efab23a41e).(yypParser) ){ |
| 1358 | yypParser->yystackcxx . . $ yyParser#yystack. = &yypParser->yystk0cxx . . $ yyParser#yystk0.; |
| 1359 | yypParser->yystkszcxx . . $ yyParser#yystksz. = 1; |
| 1360 | } |
| 1361 | #endif |
| 1362 | #ifndef YYNOERRORRECOVERY |
| 1363 | yypParser->yyerrcntcxx . . $ yyParser#yyerrcnt. = -1; |
| 1364 | #endif |
| 1365 | yypParser->yytoscxx . . $ yyParser#yytos. = yypParser->yystackcxx . . $ yyParser#yystack.; |
| 1366 | yypParser->yystackcxx . . $ yyParser#yystack.[0].statenocxx . . $ yyStackEntry#stateno. = 0; |
| 1367 | yypParser->yystackcxx . . $ yyParser#yystack.[0].majorcxx . . $ yyStackEntry#major. = 0; |
| 1368 | #if YYSTACKDEPTHcxx . . $ `lib/expr.c:4571:9`!>0 |
| 1369 | yypParser->yystackEnd = &yypParser->yystack[YYSTACKDEPTH-1]; |
| 1370 | #endif |
| 1371 | } |
| 1372 | |
| 1373 | #ifndef grn_expr_parser_ENGINEALWAYSONSTACK |
| 1374 | /* |
| 1375 | ** This function allocates a new parser. |
| 1376 | ** The only argument is a pointer to a function which works like |
| 1377 | ** malloc. |
| 1378 | ** |
| 1379 | ** Inputs: |
| 1380 | ** A pointer to the function used to allocate memory. |
| 1381 | ** |
| 1382 | ** Outputs: |
| 1383 | ** A pointer to a parser. This pointer is used in subsequent calls |
| 1384 | ** to grn_expr_parser and grn_expr_parserFree. |
| 1385 | */ |
| 1386 | void *grn_expr_parserAlloccxx . . $ grn_expr_parserAlloc(75efe6af49ffc9c7).(void *(*mallocProc)(YYMALLOCARGTYPEcxx . . $ `lib/grn_ecmascript.c:1342:10`!) grn_expr_parserCTX_PDECLcxx . . $ `lib/grn_ecmascript.c:358:9`!){ |
| 1387 | yyParsercxx . . $ yyParser# *yypParser; |
| 1388 | yypParser = (yyParsercxx . . $ yyParser#*)(*mallocProc)( (YYMALLOCARGTYPEcxx . . $ `lib/grn_ecmascript.c:1342:10`!)sizeof(yyParsercxx . . $ yyParser#) ); |
| 1389 | if( yypParser ){ |
| 1390 | grn_expr_parserCTX_STOREcxx . . $ `lib/grn_ecmascript.c:361:9`! |
| 1391 | grn_expr_parserInitcxx . . $ grn_expr_parserInit(5d22bdacc48458e8).(yypParser grn_expr_parserCTX_PARAMcxx . . $ `lib/grn_ecmascript.c:359:9`!); |
| 1392 | } |
| 1393 | return (void*)yypParser; |
| 1394 | } |
| 1395 | #endif /* grn_expr_parser_ENGINEALWAYSONSTACK */ |
| 1396 | |
| 1397 | |
| 1398 | /* The following function deletes the "minor type" or semantic value |
| 1399 | ** associated with a symbol. The symbol can be either a terminal |
| 1400 | ** or nonterminal. "yymajor" is the symbol code, and "yypminor" is |
| 1401 | ** a pointer to the value to be deleted. The code used to do the |
| 1402 | ** deletions is derived from the %destructor and/or %token_destructor |
| 1403 | ** directives of the input grammar. |
| 1404 | */ |
| 1405 | static void yy_destructorcxx . . $ yy_destructor(84718a4d7c7a16d5).( |
| 1406 | yyParsercxx . . $ yyParser# *yypParser, /* The parser */ |
| 1407 | YYCODETYPEcxx . . $ `lib/grn_ecmascript.c:340:9`! yymajor, /* Type code for object to destroy */ |
| 1408 | YYMINORTYPEcxx . . $ YYMINORTYPE# *yypminor /* The object to be destroyed */ |
| 1409 | ){ |
| 1410 | grn_expr_parserARG_FETCHcxx . . $ `lib/grn_ecmascript.c:355:9`! |
| 1411 | grn_expr_parserCTX_FETCHcxx . . $ `lib/grn_ecmascript.c:360:9`! |
| 1412 | switch( yymajor ){ |
| 1413 | /* Here is inserted the actions which take place when a |
| 1414 | ** terminal or non-terminal is destroyed. This can happen |
| 1415 | ** when the symbol is popped from the stack during a |
| 1416 | ** reduce or during error processing or when a parser is |
| 1417 | ** being destroyed before it is finished parsing. |
| 1418 | ** |
| 1419 | ** Note: during a reduce, the only symbols destroyed are those |
| 1420 | ** which appear on the RHS of the rule, but which are *not* used |
| 1421 | ** inside the C code. |
| 1422 | */ |
| 1423 | /********* Begin destructor definitions ***************************************/ |
| 1424 | case 83: /* suppress_unused_variable_warning */ |
| 1425 | { |
| 1426 | #line 174 "grn_ecmascript.lemon" |
| 1427 | |
| 1428 | (void)efsi; |
| 1429 | |
| 1430 | #line 1430 "grn_ecmascript.c" |
| 1431 | } |
| 1432 | break; |
| 1433 | /********* End destructor definitions *****************************************/ |
| 1434 | default: break; /* If no destructor action specified: do nothing */ |
| 1435 | } |
| 1436 | } |
| 1437 | |
| 1438 | /* |
| 1439 | ** Pop the parser's stack once. |
| 1440 | ** |
| 1441 | ** If there is a destructor routine associated with the token which |
| 1442 | ** is popped from the stack, then call it. |
| 1443 | */ |
| 1444 | static void yycxx . . $ yyStackEntry#_pop_parser_stack(yyParser *pParser){ |
| 1445 | yyStaccxx . . $ `/usr/include/assert.h:75:11`!kEntry *yytos; |
| 1446 | assertcxx . . $ `/usr/include/assert.h:75:11`!( pParser->yytos!=0 ); |
| 1447 | assert( pParser->yytoscxx . . $ yyParser#yytos. > pParser->yystack ); |
| 1448 | yytos = pParcxx . . $ `<built-in>:418:9`!ser->yytos--; |
| 1449 | #ifndef NDEBUG |
| 1450 | if( yyTraceFILE ){ |
| 1451 | fprintf(yyTraceFILE,"%sPopping %s\n", |
| 1452 | yyTracePrompt, |
| 1453 | yyTokenName[yytos->major]); |
| 1454 | } |
| 1455 | #endifcxx . . $ yy_destructor(84718a4d7c7a16d5). |
| 1456 | yy_destructor(pParser, yytos->major, &yytos->minor); |
| 1457 | } |
| 1458 | |
| 1459 | /* |
| 1460 | ** Clear all secondary memory allocations from the parser |
| 1461 | */ |
| 1462 | void grn_ecxx . . $ yyParser#xpr_parserFinalize(vocxx . . $ yyParser#id *p){ |
| 1463 | yyParser *pParser = (cxx . . $ yyParser#yytos.yyParser*)p;cxx . . $ yyParser#yystack. |
| 1464 | while( pParsercxx . . $ `lib/expr.c:4571:9`!->yytos>pParser->yystack ) yy_pop_parser_stack(pParser); |
| 1465 | #if YYSTACKDEPTH<=0cxx . . $ yyParser#yystack. |
| 1466 | if( pParser->yystack!=&pParser->yystk0 ) free(pParser->yystack); |
| 1467 | #endif |
| 1468 | } |
| 1469 | |
| 1470 | #ifndef grn_expr_parser_ENGINEALWAYSONSTACK |
| 1471 | /* |
| 1472 | ** Deallocate and destroy a parser. Destructors are called for |
| 1473 | ** all stack elements before shutting the parser down. |
| 1474 | ** |
| 1475 | ** If the YYPARSEFREENEVERNULL macro exists (for example because it |
| 1476 | ** is defined in a %include section of the input grammar) then it is |
| 1477 | ** assumed that the input pointer is never NULL. |
| 1478 | */ |
| 1479 | void grn_expr_parserFree( |
| 1480 | void *p, /* The parser to be deleted */ |
| 1481 | void (*freeProc)(void*) /* Function used to reclaim memory */ |
| 1482 | ){ |
| 1483 | #ifndef YYPARSEFREENEVERNULL |
| 1484 | if( p==0 ) return; |
| 1485 | #endifcxx . . $ grn_expr_parserFinalize(5d22bdacc48458e8). |
| 1486 | grn_expr_parserFinalize(p); |
| 1487 | (*freeProc)(p); |
| 1488 | } |
| 1489 | #endif /* grn_expr_parser_ENGINEALWAYSONSTACK */ |
| 1490 | |
| 1491 | /* |
| 1492 | ** Return the peak depth of the stack for a parser. |
| 1493 | */ |
| 1494 | #ifdef YYTRACKMAXSTACKDEPTH |
| 1495 | int grn_expr_parserStackPeak(void *p){ |
| 1496 | yyParser *pParser = (yyParser*)p; |
| 1497 | return pParser->yyhwm; |
| 1498 | } |
| 1499 | #endif |
| 1500 | |
| 1501 | /* This array of booleans keeps track of the parser statement |
| 1502 | ** coverage. The element yycoverage[X][Y] is set when the parser |
| 1503 | ** is in state X and has a lookahead token Y. In a well-tested |
| 1504 | ** systems, every element of this matrix should end up being set. |
| 1505 | */ |
| 1506 | #if defined(YYCOVERAGE) |
| 1507 | static unsigned char yycoverage[YYNSTATE][YYNTOKEN]; |
| 1508 | #endif |
| 1509 | |
| 1510 | /* |
| 1511 | ** Write into out a description of every state/lookahead combination that |
| 1512 | ** |
| 1513 | ** (1) has not been used by the parser, and |
| 1514 | ** (2) is not a syntax error. |
| 1515 | ** |
| 1516 | ** Return the number of missed state/lookahead combinations. |
| 1517 | */ |
| 1518 | #if defined(YYCOVERAGE) |
| 1519 | int grn_expr_parserCoverage(FILE *out){ |
| 1520 | int stateno, iLookAhead, i; |
| 1521 | int nMissed = 0; |
| 1522 | for(stateno=0; stateno<YYNSTATE; stateno++){ |
| 1523 | i = yy_shift_ofst[stateno]; |
| 1524 | for(iLookAhead=0; iLookAhead<YYNTOKEN; iLookAhead++){ |
| 1525 | if( yy_lookahead[i+iLookAhead]!=iLookAhead ) continue; |
| 1526 | if( yycoverage[stateno][iLookAhead]==0 ) nMissed++; |
| 1527 | if( out ){ |
| 1528 | fprintf(out,"State %d lookahead %s %s\n", stateno, |
| 1529 | yyTokenName[iLookAhead], |
| 1530 | yycoverage[stateno][iLookAhead] ? "ok" : "missed"); |
| 1531 | } |
| 1532 | } |
| 1533 | } |
| 1534 | return nMissed; |
| 1535 | } |
| 1536 | #endif |
| 1537 | |
| 1538 | /* |
| 1539 | ** Find the appropriate action for a parser given the terminal |
| 1540 | ** look-ahead token iLookAhead. |
| 1541 | */ |
| 1542 | static YYACTcxx . . $ `lib/grn_ecmascript.c:340:9`!IONTYPE yy_find_shift_action( |
| 1543 | YYCODETYPE icxx . . $ `lib/grn_ecmascript.c:342:9`!LookAhead, /* The look-ahead token */ |
| 1544 | YYACTIONTYPE stateno /* Current state number */ |
| 1545 | ){ |
| 1546 | int i; |
| 1547 | |
| 1548 | if( stcxx . . $ `/usr/include/assert.h:75:11`!ateno>YY_MAX_SHIFT ) return stateno; |
| 1549 | assert( stateno <= YY_SHIFT_COUNT ); |
| 1550 | #if defined(YYCOVERAGE) |
| 1551 | yycoverage[stateno][iLookAhead] = 1; |
| 1552 | #endif |
| 1553 | do{ |
| 1554 | i = yycxx . . $ `/usr/include/assert.h:75:11`!_shift_ofst[stateno]; |
| 1555 | assertcxx . . $ `/usr/include/assert.h:75:11`!( i>=0 ); |
| 1556 | assertcxx . . $ `/usr/include/assert.h:75:11`!( i<=YY_ACTTAB_COUNT ); |
| 1557 | assertcxx . . $ `/usr/include/assert.h:75:11`!( i+YYNTOKEN<=(int)YY_NLOOKAHEAD ); |
| 1558 | assertcxx . . $ `/usr/include/assert.h:75:11`!( iLookAhead!=YYNOCODE ); |
| 1559 | assert( iLookAhead < YYNTOKEN ); |
| 1560 | i += icxx . . $ `/usr/include/assert.h:75:11`!LookAhead; |
| 1561 | assert( i<(int)Ycxx . . $ yy_lookahead.Y_NLOOKAHEAD ); |
| 1562 | if( yy_lookahead[i]!=iLookAhead ){ |
| 1563 | #ifdef YYFALLBACK |
| 1564 | YYCODETYPE iFallback; /* Fallback token */ |
| 1565 | assert( iLookAhead<sizeof(yyFallback)/sizeof(yyFallback[0]) ); |
| 1566 | iFallback = yyFallback[iLookAhead]; |
| 1567 | if( iFallback!=0 ){ |
| 1568 | #ifndef NDEBUG |
| 1569 | if( yyTraceFILE ){ |
| 1570 | fprintf(yyTraceFILE, "%sFALLBACK %s => %s\n", |
| 1571 | yyTracePrompt, yyTokenName[iLookAhead], yyTokenName[iFallback]); |
| 1572 | } |
| 1573 | #endif |
| 1574 | assert( yyFallback[iFallback]==0 ); /* Fallback loop must terminate */ |
| 1575 | iLookAhead = iFallback; |
| 1576 | continue; |
| 1577 | } |
| 1578 | #endif |
| 1579 | #ifdef YYWILDCARD |
| 1580 | { |
| 1581 | int j = i - iLookAhead + YYWILDCARD; |
| 1582 | assert( j<(int)(sizeof(yy_lookahead)/sizeof(yy_lookahead[0])) ); |
| 1583 | if( yy_lookahead[j]==YYWILDCARD && iLookAhead>0 ){ |
| 1584 | #ifndef NDEBUG |
| 1585 | if( yyTraceFILE ){ |
| 1586 | fprintf(yyTraceFILE, "%sWILDCARD %s => %s\n", |
| 1587 | yyTracePrompt, yyTokenName[iLookAhead], |
| 1588 | yyTokenName[YYWILDCARD]); |
| 1589 | } |
| 1590 | #endif /* NDEBUG */ |
| 1591 | return yy_action[j]; |
| 1592 | } |
| 1593 | } |
| 1594 | #endif /* YYWILDCARD */cxx . . $ yy_default. |
| 1595 | return yy_default[stateno]; |
| 1596 | }else{cxx . . $ `/usr/include/assert.h:75:11`! |
| 1597 | assert( i>=0 && cxx . . $ yy_action.i<(int)(sizeof(yy_action)/sizeof(yy_action[0])) ); |
| 1598 | return yy_action[i]; |
| 1599 | } |
| 1600 | }while(1); |
| 1601 | } |
| 1602 | |
| 1603 | /* |
| 1604 | ** Find the appropriate action for a parser given the non-terminal |
| 1605 | ** look-ahead token iLookAhead. |
| 1606 | */ |
| 1607 | static YYACTIOcxx . . $ `lib/grn_ecmascript.c:342:9`!NTYPE yy_find_reduce_action( |
| 1608 | YYACTIONTYcxx . . $ `lib/grn_ecmascript.c:340:9`!PE stateno, /* Current state number */ |
| 1609 | YYCODETYPE iLookAhead /* The look-ahead token */ |
| 1610 | ){ |
| 1611 | int i; |
| 1612 | #ifdef YYERRORSYMBOL |
| 1613 | if( stateno>YY_REDUCE_COUNT ){ |
| 1614 | return yy_default[stateno]; |
| 1615 | } |
| 1616 | #elsecxx . . $ `/usr/include/assert.h:75:11`! |
| 1617 | assert( stateno<=YY_REDUCE_COUNT ); |
| 1618 | #endif |
| 1619 | i = yycxx . . $ `/usr/include/assert.h:75:11`!_reduce_ofst[stateno]; |
| 1620 | assert( iLookAhead!=YYNOCODE ); |
| 1621 | i += iLookAhead; |
| 1622 | #ifdef YYERRORSYMBOL |
| 1623 | if( i<0 || i>=YY_ACTTAB_COUNT || yy_lookahead[i]!=iLookAhead ){ |
| 1624 | return yy_default[stateno]; |
| 1625 | } |
| 1626 | #elsecxx . . $ `/usr/include/assert.h:75:11`! |
| 1627 | assertcxx . . $ `/usr/include/assert.h:75:11`!( i>=0 && i<YY_ACTTAB_COUNT ); |
| 1628 | assert( yy_lookahead[i]==iLookAhead ); |
| 1629 | #endif |
| 1630 | return yy_action[i]; |
| 1631 | } |
| 1632 | |
| 1633 | /* |
| 1634 | ** The following routine is called if the stack overflows. |
| 1635 | */ |
| 1636 | static void yyStackOverflowcxx . . $ `lib/grn_ecmascript.c:355:9`!(yyParser *yypParser){ |
| 1637 | grn_expr_parserARG_FETCHcxx . . $ `lib/grn_ecmascript.c:360:9`! |
| 1638 | grn_expr_pacxx . . $ `<built-in>:418:9`!rserCTX_FETCH |
| 1639 | #ifndef NDEBUG |
| 1640 | if( yyTraceFILE ){ |
| 1641 | fprintf(yyTraceFILE,"%sStack Overflow!\n",yyTracePrompt); |
| 1642 | } |
| 1643 | #endif |
| 1644 | while( yypParser->yytos>yypParser->yystack ) yy_pop_parser_stack(yypParser); |
| 1645 | /* Here code is inserted which will execute if the parser |
| 1646 | ** stack every overflows */ |
| 1647 | /******** Begin %stack_overflow code ******************************************/ |
| 1648 | /******** End %stack_overflcxx . . $ `lib/grn_ecmascript.c:356:9`!ow code ********************************************/ |
| 1649 | grn_expr_parserARG_STOREcxx . . $ `lib/grn_ecmascript.c:361:9`! /* Suppress warning about unused %extra_argument var */ |
| 1650 | grn_expr_parserCTX_STORE |
| 1651 | } |
| 1652 | |
| 1653 | /* |
| 1654 | ** Print tracing information for a SHIFT action |
| 1655 | */ |
| 1656 | #ifndef NDEBUG |
| 1657 | static void yyTraceShift(yyParser *yypParser, int yyNewState, const char *zTag){ |
| 1658 | if( yyTraceFILE ){ |
| 1659 | if( yyNewState<YYNSTATE ){ |
| 1660 | fprintf(yyTraceFILE,"%s%s '%s', go to state %d\n", |
| 1661 | yyTracePrompt, zTag, yyTokenName[yypParser->yytos->major], |
| 1662 | yyNewState); |
| 1663 | }else{ |
| 1664 | fprintf(yyTraceFILE,"%s%s '%s', pending reduce %d\n", |
| 1665 | yyTracePrompt, zTag, yyTokenName[yypParser->yytos->major], |
| 1666 | yyNewState - YY_MIN_REDUCE); |
| 1667 | } |
| 1668 | } |
| 1669 | } |
| 1670 | #else |
| 1671 | # define yyTraceShift(X,Y,Z) |
| 1672 | #endif |
| 1673 | |
| 1674 | /* |
| 1675 | ** Perform a shift action. |
| 1676 | */ |
| 1677 | static voicxx . . $ yyParser#d yy_shift( |
| 1678 | yyParser *yycxx . . $ `lib/grn_ecmascript.c:342:9`!pParser, /* The parser to be shifted */ |
| 1679 | YYACTIONTYcxx . . $ `lib/grn_ecmascript.c:340:9`!PE yyNewState, /* The new state to shift in */ |
| 1680 | YYCODETYPE yyMajor, cxx . . $ `lib/grn_ecmascript.c:343:9`! /* The major token to shift in */ |
| 1681 | grn_expr_parserTOKENTYPE yyMinor /* The minor token to shift in */ |
| 1682 | ){ |
| 1683 | yyStackEntry *yycxx . . $ yyParser#yytos.tos; |
| 1684 | yypParser->yytos++; |
| 1685 | #ifdef YYTRACKMAXSTACKDEPTH |
| 1686 | if( (int)(yypParser->yytos - yypParser->yystack)>yypParser->yyhwm ){ |
| 1687 | yypParser->yyhwm++; |
| 1688 | assert( yypParser->yyhwm == (int)(yypParser->yytos - yypParser->yystack) ); |
| 1689 | } |
| 1690 | #endifcxx . . $ `lib/expr.c:4571:9`! |
| 1691 | #if YYSTACKDEPTH>0 |
| 1692 | if( yypParser->yytos>yypParser->yystackEnd ){ |
| 1693 | yypParser->yytos--; |
| 1694 | yyStackOverflow(yypParser); |
| 1695 | return; |
| 1696 | } |
| 1697 | #else |
| 1698 | if( yypParser->yycxx . . $ yyGrowStack(d0697efab23a41e).tos>=&yypParser->yystack[yypParser->yystksz] ){ |
| 1699 | if( yyGrowStack(yycxx . . $ yyParser#yytos.pParser) ){ |
| 1700 | yypParser->yytocxx . . $ yyStackOverflow(47c25509c24d587d).s--; |
| 1701 | yyStackOverflow(yypParser); |
| 1702 | return; |
| 1703 | } |
| 1704 | } |
| 1705 | #endif |
| 1706 | if( yyNewState > YY_MAX_SHIFTcxx . . $ `lib/grn_ecmascript.c:372:9`! ){ |
| 1707 | yyNewState += YY_MIN_REDUCE - YY_MIN_SHIFTREDUCE; |
| 1708 | } |
| 1709 | yytos = yypParcxx . . $ yyStackEntry#stateno.ser->yytos; |
| 1710 | yytos->statecxx . . $ yyStackEntry#major.no = yyNewState; |
| 1711 | yytos->majorcxx . . $ yyStackEntry#minor. = ycxx . . $ $anonymous_type_d3a40ffe8691b635_0#yy0.yMajor; |
| 1712 | yytos->minorcxx . . $ `lib/grn_ecmascript.c:1671:10`!.yy0 = yyMinor; |
| 1713 | yyTraceShift(yypParser, yyNewState, "Shift"); |
| 1714 | } |
| 1715 | |
| 1716 | /* For rule J, yyRuleInfoLhs[J] contains the symbol on the left-hand side |
| 1717 | ** of that rule */cxx . . $ `lib/grn_ecmascript.c:340:9`! |
| 1718 | static const YYCODETYPE yyRuleInfoLhs[] = { |
| 1719 | 85, /* (0) query ::= query query_element */ |
| 1720 | 85, /* (1) query ::= query LOGICAL_AND query_element */ |
| 1721 | 85, /* (2) query ::= query LOGICAL_AND_NOT query_element */ |
| 1722 | 85, /* (3) query ::= query LOGICAL_OR query_element */ |
| 1723 | 85, /* (4) query ::= query NEGATIVE query_element */ |
| 1724 | 91, /* (5) query_element ::= ADJUST query_element */ |
| 1725 | 91, /* (6) query_element ::= RELATIVE_OP query_element */ |
| 1726 | 91, /* (7) query_element ::= IDENTIFIER RELATIVE_OP query_element */ |
| 1727 | 91, /* (8) query_element ::= BRACEL expression BRACER */ |
| 1728 | 91, /* (9) query_element ::= EVAL primary_expression */ |
| 1729 | 86, /* (10) expression ::= expression COMMA assignment_expression */ |
| 1730 | 93, /* (11) assignment_expression ::= lefthand_side_expression ASSIGN assignment_expression */ |
| 1731 | 93, /* (12) assignment_expression ::= lefthand_side_expression STAR_ASSIGN assignment_expression */ |
| 1732 | 93, /* (13) assignment_expression ::= lefthand_side_expression SLASH_ASSIGN assignment_expression */ |
| 1733 | 93, /* (14) assignment_expression ::= lefthand_side_expression MOD_ASSIGN assignment_expression */ |
| 1734 | 93, /* (15) assignment_expression ::= lefthand_side_expression PLUS_ASSIGN assignment_expression */ |
| 1735 | 93, /* (16) assignment_expression ::= lefthand_side_expression MINUS_ASSIGN assignment_expression */ |
| 1736 | 93, /* (17) assignment_expression ::= lefthand_side_expression SHIFTL_ASSIGN assignment_expression */ |
| 1737 | 93, /* (18) assignment_expression ::= lefthand_side_expression SHIFTR_ASSIGN assignment_expression */ |
| 1738 | 93, /* (19) assignment_expression ::= lefthand_side_expression SHIFTRR_ASSIGN assignment_expression */ |
| 1739 | 93, /* (20) assignment_expression ::= lefthand_side_expression AND_ASSIGN assignment_expression */ |
| 1740 | 93, /* (21) assignment_expression ::= lefthand_side_expression XOR_ASSIGN assignment_expression */ |
| 1741 | 93, /* (22) assignment_expression ::= lefthand_side_expression OR_ASSIGN assignment_expression */ |
| 1742 | 94, /* (23) conditional_expression ::= logical_or_expression QUESTION assignment_expression COLON assignment_expression */ |
| 1743 | 96, /* (24) logical_or_expression ::= logical_or_expression LOGICAL_OR logical_and_expression */ |
| 1744 | 97, /* (25) logical_and_expression ::= logical_and_expression LOGICAL_AND bitwise_or_expression */ |
| 1745 | 97, /* (26) logical_and_expression ::= logical_and_expression LOGICAL_AND_NOT bitwise_or_expression */ |
| 1746 | 97, /* (27) logical_and_expression ::= logical_and_expression ADJUST bitwise_or_expression */ |
| 1747 | 97, /* (28) logical_and_expression ::= logical_and_expression NEGATIVE bitwise_or_expression */ |
| 1748 | 98, /* (29) bitwise_or_expression ::= bitwise_or_expression BITWISE_OR bitwise_xor_expression */ |
| 1749 | 99, /* (30) bitwise_xor_expression ::= bitwise_xor_expression BITWISE_XOR bitwise_and_expression */ |
| 1750 | 100, /* (31) bitwise_and_expression ::= bitwise_and_expression BITWISE_AND equality_expression */ |
| 1751 | 101, /* (32) equality_expression ::= equality_expression EQUAL relational_expression */ |
| 1752 | 101, /* (33) equality_expression ::= equality_expression NOT_EQUAL relational_expression */ |
| 1753 | 102, /* (34) relational_expression ::= relational_expression LESS shift_expression */ |
| 1754 | 102, /* (35) relational_expression ::= relational_expression GREATER shift_expression */ |
| 1755 | 102, /* (36) relational_expression ::= relational_expression LESS_EQUAL shift_expression */ |
| 1756 | 102, /* (37) relational_expression ::= relational_expression GREATER_EQUAL shift_expression */ |
| 1757 | 102, /* (38) relational_expression ::= relational_expression IN shift_expression */ |
| 1758 | 102, /* (39) relational_expression ::= relational_expression MATCH shift_expression */ |
| 1759 | 102, /* (40) relational_expression ::= relational_expression NEAR shift_expression */ |
| 1760 | 102, /* (41) relational_expression ::= relational_expression NEAR_NO_OFFSET shift_expression */ |
| 1761 | 102, /* (42) relational_expression ::= relational_expression NEAR_PHRASE shift_expression */ |
| 1762 | 102, /* (43) relational_expression ::= relational_expression ORDERED_NEAR_PHRASE shift_expression */ |
| 1763 | 102, /* (44) relational_expression ::= relational_expression NEAR_PHRASE_PRODUCT shift_expression */ |
| 1764 | 102, /* (45) relational_expression ::= relational_expression ORDERED_NEAR_PHRASE_PRODUCT shift_expression */ |
| 1765 | 102, /* (46) relational_expression ::= relational_expression SIMILAR shift_expression */ |
| 1766 | 102, /* (47) relational_expression ::= relational_expression TERM_EXTRACT shift_expression */ |
| 1767 | 102, /* (48) relational_expression ::= relational_expression QUORUM shift_expression */ |
| 1768 | 102, /* (49) relational_expression ::= relational_expression LCP shift_expression */ |
| 1769 | 102, /* (50) relational_expression ::= relational_expression PREFIX shift_expression */ |
| 1770 | 102, /* (51) relational_expression ::= relational_expression SUFFIX shift_expression */ |
| 1771 | 102, /* (52) relational_expression ::= relational_expression REGEXP shift_expression */ |
| 1772 | 103, /* (53) shift_expression ::= shift_expression SHIFTL additive_expression */ |
| 1773 | 103, /* (54) shift_expression ::= shift_expression SHIFTR additive_expression */ |
| 1774 | 103, /* (55) shift_expression ::= shift_expression SHIFTRR additive_expression */ |
| 1775 | 104, /* (56) additive_expression ::= additive_expression PLUS multiplicative_expression */ |
| 1776 | 104, /* (57) additive_expression ::= additive_expression MINUS multiplicative_expression */ |
| 1777 | 105, /* (58) multiplicative_expression ::= multiplicative_expression STAR unary_expression */ |
| 1778 | 105, /* (59) multiplicative_expression ::= multiplicative_expression SLASH unary_expression */ |
| 1779 | 105, /* (60) multiplicative_expression ::= multiplicative_expression MOD unary_expression */ |
| 1780 | 106, /* (61) unary_expression ::= DELETE unary_expression */ |
| 1781 | 106, /* (62) unary_expression ::= INCR unary_expression */ |
| 1782 | 106, /* (63) unary_expression ::= DECR unary_expression */ |
| 1783 | 106, /* (64) unary_expression ::= PLUS unary_expression */ |
| 1784 | 106, /* (65) unary_expression ::= MINUS unary_expression */ |
| 1785 | 106, /* (66) unary_expression ::= NOT unary_expression */ |
| 1786 | 106, /* (67) unary_expression ::= BITWISE_NOT unary_expression */ |
| 1787 | 106, /* (68) unary_expression ::= ADJUST unary_expression */ |
| 1788 | 106, /* (69) unary_expression ::= EXACT unary_expression */ |
| 1789 | 106, /* (70) unary_expression ::= PARTIAL unary_expression */ |
| 1790 | 106, /* (71) unary_expression ::= UNSPLIT unary_expression */ |
| 1791 | 107, /* (72) postfix_expression ::= lefthand_side_expression INCR */ |
| 1792 | 107, /* (73) postfix_expression ::= lefthand_side_expression DECR */ |
| 1793 | 108, /* (74) call_expression ::= member_expression arguments */ |
| 1794 | 112, /* (75) array_literal ::= BRACKETL element_list BRACKETR */ |
| 1795 | 113, /* (76) element_list ::= */ |
| 1796 | 113, /* (77) element_list ::= assignment_expression */ |
| 1797 | 113, /* (78) element_list ::= element_list COMMA assignment_expression */ |
| 1798 | 90, /* (79) object_literal ::= BRACEL property_list BRACER */ |
| 1799 | 114, /* (80) property_list ::= */ |
| 1800 | 114, /* (81) property_list ::= property */ |
| 1801 | 114, /* (82) property_list ::= property_list COMMA property */ |
| 1802 | 111, /* (83) member_expression_part ::= BRACKETL expression BRACKETR */ |
| 1803 | 110, /* (84) arguments ::= PARENL argument_list PARENR */ |
| 1804 | 117, /* (85) argument_list ::= */ |
| 1805 | 117, /* (86) argument_list ::= assignment_expression */ |
| 1806 | 117, /* (87) argument_list ::= argument_list COMMA assignment_expression */ |
| 1807 | 87, /* (88) output_columns ::= */ |
| 1808 | 87, /* (89) output_columns ::= output_column */ |
| 1809 | 87, /* (90) output_columns ::= output_columns COMMA */ |
| 1810 | 87, /* (91) output_columns ::= output_columns COMMA output_column */ |
| 1811 | 118, /* (92) output_column ::= STAR */ |
| 1812 | 118, /* (93) output_column ::= NONEXISTENT_COLUMN */ |
| 1813 | 118, /* (94) output_column ::= assignment_expression */ |
| 1814 | 88, /* (95) adjuster ::= adjuster PLUS adjust_expression */ |
| 1815 | 119, /* (96) adjust_expression ::= adjust_match_expression STAR DECIMAL */ |
| 1816 | 120, /* (97) adjust_match_expression ::= IDENTIFIER MATCH STRING */ |
| 1817 | 89, /* (98) sort_keys ::= */ |
| 1818 | 89, /* (99) sort_keys ::= sort_key */ |
| 1819 | 89, /* (100) sort_keys ::= sort_keys COMMA sort_key */ |
| 1820 | 121, /* (101) sort_key ::= NONEXISTENT_COLUMN */ |
| 1821 | 121, /* (102) sort_key ::= MINUS NONEXISTENT_COLUMN */ |
| 1822 | 121, /* (103) sort_key ::= assignment_expression */ |
| 1823 | 84, /* (104) input ::= query */ |
| 1824 | 84, /* (105) input ::= expression */ |
| 1825 | 84, /* (106) input ::= START_OUTPUT_COLUMNS output_columns */ |
| 1826 | 84, /* (107) input ::= START_ADJUSTER adjuster */ |
| 1827 | 84, /* (108) input ::= START_SORT_KEYS sort_keys */ |
| 1828 | 84, /* (109) input ::= START_OPTIONS object_literal */ |
| 1829 | 84, /* (110) input ::= START_QUERY_NO_SYNTAX_ERROR */ |
| 1830 | 84, /* (111) input ::= START_QUERY_NO_SYNTAX_ERROR query */ |
| 1831 | 85, /* (112) query ::= query_element */ |
| 1832 | 91, /* (113) query_element ::= QSTRING */ |
| 1833 | 91, /* (114) query_element ::= PARENL query PARENR */ |
| 1834 | 86, /* (115) expression ::= assignment_expression */ |
| 1835 | 93, /* (116) assignment_expression ::= conditional_expression */ |
| 1836 | 94, /* (117) conditional_expression ::= logical_or_expression */ |
| 1837 | 96, /* (118) logical_or_expression ::= logical_and_expression */ |
| 1838 | 97, /* (119) logical_and_expression ::= bitwise_or_expression */ |
| 1839 | 98, /* (120) bitwise_or_expression ::= bitwise_xor_expression */ |
| 1840 | 99, /* (121) bitwise_xor_expression ::= bitwise_and_expression */ |
| 1841 | 100, /* (122) bitwise_and_expression ::= equality_expression */ |
| 1842 | 101, /* (123) equality_expression ::= relational_expression */ |
| 1843 | 102, /* (124) relational_expression ::= shift_expression */ |
| 1844 | 103, /* (125) shift_expression ::= additive_expression */ |
| 1845 | 104, /* (126) additive_expression ::= multiplicative_expression */ |
| 1846 | 105, /* (127) multiplicative_expression ::= unary_expression */ |
| 1847 | 106, /* (128) unary_expression ::= postfix_expression */ |
| 1848 | 107, /* (129) postfix_expression ::= lefthand_side_expression */ |
| 1849 | 95, /* (130) lefthand_side_expression ::= call_expression */ |
| 1850 | 95, /* (131) lefthand_side_expression ::= member_expression */ |
| 1851 | 109, /* (132) member_expression ::= primary_expression */ |
| 1852 | 109, /* (133) member_expression ::= member_expression member_expression_part */ |
| 1853 | 92, /* (134) primary_expression ::= object_literal */ |
| 1854 | 92, /* (135) primary_expression ::= PARENL expression PARENR */ |
| 1855 | 92, /* (136) primary_expression ::= IDENTIFIER */ |
| 1856 | 92, /* (137) primary_expression ::= array_literal */ |
| 1857 | 92, /* (138) primary_expression ::= DECIMAL */ |
| 1858 | 92, /* (139) primary_expression ::= HEX_INTEGER */ |
| 1859 | 92, /* (140) primary_expression ::= STRING */ |
| 1860 | 92, /* (141) primary_expression ::= BOOLEAN */ |
| 1861 | 92, /* (142) primary_expression ::= NULL */ |
| 1862 | 115, /* (143) property ::= property_name COLON assignment_expression */ |
| 1863 | 116, /* (144) property_name ::= STRING */ |
| 1864 | 111, /* (145) member_expression_part ::= DOT IDENTIFIER */ |
| 1865 | 88, /* (146) adjuster ::= */ |
| 1866 | 88, /* (147) adjuster ::= adjust_expression */ |
| 1867 | 119, /* (148) adjust_expression ::= adjust_match_expression */ |
| 1868 | }; |
| 1869 | |
| 1870 | /* For rule J, yyRuleInfoNRhs[J] contains the negative of the number |
| 1871 | ** of symbols on the right-hand side ofcxx . . $ yyRuleInfoNRhs. that rule. */ |
| 1872 | static const signed char yyRuleInfoNRhs[] = { |
| 1873 | -2, /* (0) query ::= query query_element */ |
| 1874 | -3, /* (1) query ::= query LOGICAL_AND query_element */ |
| 1875 | -3, /* (2) query ::= query LOGICAL_AND_NOT query_element */ |
| 1876 | -3, /* (3) query ::= query LOGICAL_OR query_element */ |
| 1877 | -3, /* (4) query ::= query NEGATIVE query_element */ |
| 1878 | -2, /* (5) query_element ::= ADJUST query_element */ |
| 1879 | -2, /* (6) query_element ::= RELATIVE_OP query_element */ |
| 1880 | -3, /* (7) query_element ::= IDENTIFIER RELATIVE_OP query_element */ |
| 1881 | -3, /* (8) query_element ::= BRACEL expression BRACER */ |
| 1882 | -2, /* (9) query_element ::= EVAL primary_expression */ |
| 1883 | -3, /* (10) expression ::= expression COMMA assignment_expression */ |
| 1884 | -3, /* (11) assignment_expression ::= lefthand_side_expression ASSIGN assignment_expression */ |
| 1885 | -3, /* (12) assignment_expression ::= lefthand_side_expression STAR_ASSIGN assignment_expression */ |
| 1886 | -3, /* (13) assignment_expression ::= lefthand_side_expression SLASH_ASSIGN assignment_expression */ |
| 1887 | -3, /* (14) assignment_expression ::= lefthand_side_expression MOD_ASSIGN assignment_expression */ |
| 1888 | -3, /* (15) assignment_expression ::= lefthand_side_expression PLUS_ASSIGN assignment_expression */ |
| 1889 | -3, /* (16) assignment_expression ::= lefthand_side_expression MINUS_ASSIGN assignment_expression */ |
| 1890 | -3, /* (17) assignment_expression ::= lefthand_side_expression SHIFTL_ASSIGN assignment_expression */ |
| 1891 | -3, /* (18) assignment_expression ::= lefthand_side_expression SHIFTR_ASSIGN assignment_expression */ |
| 1892 | -3, /* (19) assignment_expression ::= lefthand_side_expression SHIFTRR_ASSIGN assignment_expression */ |
| 1893 | -3, /* (20) assignment_expression ::= lefthand_side_expression AND_ASSIGN assignment_expression */ |
| 1894 | -3, /* (21) assignment_expression ::= lefthand_side_expression XOR_ASSIGN assignment_expression */ |
| 1895 | -3, /* (22) assignment_expression ::= lefthand_side_expression OR_ASSIGN assignment_expression */ |
| 1896 | -5, /* (23) conditional_expression ::= logical_or_expression QUESTION assignment_expression COLON assignment_expression */ |
| 1897 | -3, /* (24) logical_or_expression ::= logical_or_expression LOGICAL_OR logical_and_expression */ |
| 1898 | -3, /* (25) logical_and_expression ::= logical_and_expression LOGICAL_AND bitwise_or_expression */ |
| 1899 | -3, /* (26) logical_and_expression ::= logical_and_expression LOGICAL_AND_NOT bitwise_or_expression */ |
| 1900 | -3, /* (27) logical_and_expression ::= logical_and_expression ADJUST bitwise_or_expression */ |
| 1901 | -3, /* (28) logical_and_expression ::= logical_and_expression NEGATIVE bitwise_or_expression */ |
| 1902 | -3, /* (29) bitwise_or_expression ::= bitwise_or_expression BITWISE_OR bitwise_xor_expression */ |
| 1903 | -3, /* (30) bitwise_xor_expression ::= bitwise_xor_expression BITWISE_XOR bitwise_and_expression */ |
| 1904 | -3, /* (31) bitwise_and_expression ::= bitwise_and_expression BITWISE_AND equality_expression */ |
| 1905 | -3, /* (32) equality_expression ::= equality_expression EQUAL relational_expression */ |
| 1906 | -3, /* (33) equality_expression ::= equality_expression NOT_EQUAL relational_expression */ |
| 1907 | -3, /* (34) relational_expression ::= relational_expression LESS shift_expression */ |
| 1908 | -3, /* (35) relational_expression ::= relational_expression GREATER shift_expression */ |
| 1909 | -3, /* (36) relational_expression ::= relational_expression LESS_EQUAL shift_expression */ |
| 1910 | -3, /* (37) relational_expression ::= relational_expression GREATER_EQUAL shift_expression */ |
| 1911 | -3, /* (38) relational_expression ::= relational_expression IN shift_expression */ |
| 1912 | -3, /* (39) relational_expression ::= relational_expression MATCH shift_expression */ |
| 1913 | -3, /* (40) relational_expression ::= relational_expression NEAR shift_expression */ |
| 1914 | -3, /* (41) relational_expression ::= relational_expression NEAR_NO_OFFSET shift_expression */ |
| 1915 | -3, /* (42) relational_expression ::= relational_expression NEAR_PHRASE shift_expression */ |
| 1916 | -3, /* (43) relational_expression ::= relational_expression ORDERED_NEAR_PHRASE shift_expression */ |
| 1917 | -3, /* (44) relational_expression ::= relational_expression NEAR_PHRASE_PRODUCT shift_expression */ |
| 1918 | -3, /* (45) relational_expression ::= relational_expression ORDERED_NEAR_PHRASE_PRODUCT shift_expression */ |
| 1919 | -3, /* (46) relational_expression ::= relational_expression SIMILAR shift_expression */ |
| 1920 | -3, /* (47) relational_expression ::= relational_expression TERM_EXTRACT shift_expression */ |
| 1921 | -3, /* (48) relational_expression ::= relational_expression QUORUM shift_expression */ |
| 1922 | -3, /* (49) relational_expression ::= relational_expression LCP shift_expression */ |
| 1923 | -3, /* (50) relational_expression ::= relational_expression PREFIX shift_expression */ |
| 1924 | -3, /* (51) relational_expression ::= relational_expression SUFFIX shift_expression */ |
| 1925 | -3, /* (52) relational_expression ::= relational_expression REGEXP shift_expression */ |
| 1926 | -3, /* (53) shift_expression ::= shift_expression SHIFTL additive_expression */ |
| 1927 | -3, /* (54) shift_expression ::= shift_expression SHIFTR additive_expression */ |
| 1928 | -3, /* (55) shift_expression ::= shift_expression SHIFTRR additive_expression */ |
| 1929 | -3, /* (56) additive_expression ::= additive_expression PLUS multiplicative_expression */ |
| 1930 | -3, /* (57) additive_expression ::= additive_expression MINUS multiplicative_expression */ |
| 1931 | -3, /* (58) multiplicative_expression ::= multiplicative_expression STAR unary_expression */ |
| 1932 | -3, /* (59) multiplicative_expression ::= multiplicative_expression SLASH unary_expression */ |
| 1933 | -3, /* (60) multiplicative_expression ::= multiplicative_expression MOD unary_expression */ |
| 1934 | -2, /* (61) unary_expression ::= DELETE unary_expression */ |
| 1935 | -2, /* (62) unary_expression ::= INCR unary_expression */ |
| 1936 | -2, /* (63) unary_expression ::= DECR unary_expression */ |
| 1937 | -2, /* (64) unary_expression ::= PLUS unary_expression */ |
| 1938 | -2, /* (65) unary_expression ::= MINUS unary_expression */ |
| 1939 | -2, /* (66) unary_expression ::= NOT unary_expression */ |
| 1940 | -2, /* (67) unary_expression ::= BITWISE_NOT unary_expression */ |
| 1941 | -2, /* (68) unary_expression ::= ADJUST unary_expression */ |
| 1942 | -2, /* (69) unary_expression ::= EXACT unary_expression */ |
| 1943 | -2, /* (70) unary_expression ::= PARTIAL unary_expression */ |
| 1944 | -2, /* (71) unary_expression ::= UNSPLIT unary_expression */ |
| 1945 | -2, /* (72) postfix_expression ::= lefthand_side_expression INCR */ |
| 1946 | -2, /* (73) postfix_expression ::= lefthand_side_expression DECR */ |
| 1947 | -2, /* (74) call_expression ::= member_expression arguments */ |
| 1948 | -3, /* (75) array_literal ::= BRACKETL element_list BRACKETR */ |
| 1949 | 0, /* (76) element_list ::= */ |
| 1950 | -1, /* (77) element_list ::= assignment_expression */ |
| 1951 | -3, /* (78) element_list ::= element_list COMMA assignment_expression */ |
| 1952 | -3, /* (79) object_literal ::= BRACEL property_list BRACER */ |
| 1953 | 0, /* (80) property_list ::= */ |
| 1954 | -1, /* (81) property_list ::= property */ |
| 1955 | -3, /* (82) property_list ::= property_list COMMA property */ |
| 1956 | -3, /* (83) member_expression_part ::= BRACKETL expression BRACKETR */ |
| 1957 | -3, /* (84) arguments ::= PARENL argument_list PARENR */ |
| 1958 | 0, /* (85) argument_list ::= */ |
| 1959 | -1, /* (86) argument_list ::= assignment_expression */ |
| 1960 | -3, /* (87) argument_list ::= argument_list COMMA assignment_expression */ |
| 1961 | 0, /* (88) output_columns ::= */ |
| 1962 | -1, /* (89) output_columns ::= output_column */ |
| 1963 | -2, /* (90) output_columns ::= output_columns COMMA */ |
| 1964 | -3, /* (91) output_columns ::= output_columns COMMA output_column */ |
| 1965 | -1, /* (92) output_column ::= STAR */ |
| 1966 | -1, /* (93) output_column ::= NONEXISTENT_COLUMN */ |
| 1967 | -1, /* (94) output_column ::= assignment_expression */ |
| 1968 | -3, /* (95) adjuster ::= adjuster PLUS adjust_expression */ |
| 1969 | -3, /* (96) adjust_expression ::= adjust_match_expression STAR DECIMAL */ |
| 1970 | -3, /* (97) adjust_match_expression ::= IDENTIFIER MATCH STRING */ |
| 1971 | 0, /* (98) sort_keys ::= */ |
| 1972 | -1, /* (99) sort_keys ::= sort_key */ |
| 1973 | -3, /* (100) sort_keys ::= sort_keys COMMA sort_key */ |
| 1974 | -1, /* (101) sort_key ::= NONEXISTENT_COLUMN */ |
| 1975 | -2, /* (102) sort_key ::= MINUS NONEXISTENT_COLUMN */ |
| 1976 | -1, /* (103) sort_key ::= assignment_expression */ |
| 1977 | -1, /* (104) input ::= query */ |
| 1978 | -1, /* (105) input ::= expression */ |
| 1979 | -2, /* (106) input ::= START_OUTPUT_COLUMNS output_columns */ |
| 1980 | -2, /* (107) input ::= START_ADJUSTER adjuster */ |
| 1981 | -2, /* (108) input ::= START_SORT_KEYS sort_keys */ |
| 1982 | -2, /* (109) input ::= START_OPTIONS object_literal */ |
| 1983 | -1, /* (110) input ::= START_QUERY_NO_SYNTAX_ERROR */ |
| 1984 | -2, /* (111) input ::= START_QUERY_NO_SYNTAX_ERROR query */ |
| 1985 | -1, /* (112) query ::= query_element */ |
| 1986 | -1, /* (113) query_element ::= QSTRING */ |
| 1987 | -3, /* (114) query_element ::= PARENL query PARENR */ |
| 1988 | -1, /* (115) expression ::= assignment_expression */ |
| 1989 | -1, /* (116) assignment_expression ::= conditional_expression */ |
| 1990 | -1, /* (117) conditional_expression ::= logical_or_expression */ |
| 1991 | -1, /* (118) logical_or_expression ::= logical_and_expression */ |
| 1992 | -1, /* (119) logical_and_expression ::= bitwise_or_expression */ |
| 1993 | -1, /* (120) bitwise_or_expression ::= bitwise_xor_expression */ |
| 1994 | -1, /* (121) bitwise_xor_expression ::= bitwise_and_expression */ |
| 1995 | -1, /* (122) bitwise_and_expression ::= equality_expression */ |
| 1996 | -1, /* (123) equality_expression ::= relational_expression */ |
| 1997 | -1, /* (124) relational_expression ::= shift_expression */ |
| 1998 | -1, /* (125) shift_expression ::= additive_expression */ |
| 1999 | -1, /* (126) additive_expression ::= multiplicative_expression */ |
| 2000 | -1, /* (127) multiplicative_expression ::= unary_expression */ |
| 2001 | -1, /* (128) unary_expression ::= postfix_expression */ |
| 2002 | -1, /* (129) postfix_expression ::= lefthand_side_expression */ |
| 2003 | -1, /* (130) lefthand_side_expression ::= call_expression */ |
| 2004 | -1, /* (131) lefthand_side_expression ::= member_expression */ |
| 2005 | -1, /* (132) member_expression ::= primary_expression */ |
| 2006 | -2, /* (133) member_expression ::= member_expression member_expression_part */ |
| 2007 | -1, /* (134) primary_expression ::= object_literal */ |
| 2008 | -3, /* (135) primary_expression ::= PARENL expression PARENR */ |
| 2009 | -1, /* (136) primary_expression ::= IDENTIFIER */ |
| 2010 | -1, /* (137) primary_expression ::= array_literal */ |
| 2011 | -1, /* (138) primary_expression ::= DECIMAL */ |
| 2012 | -1, /* (139) primary_expression ::= HEX_INTEGER */ |
| 2013 | -1, /* (140) primary_expression ::= STRING */ |
| 2014 | -1, /* (141) primary_expression ::= BOOLEAN */ |
| 2015 | -1, /* (142) primary_expression ::= NULL */ |
| 2016 | -3, /* (143) property ::= property_name COLON assignment_expression */ |
| 2017 | -1, /* (144) property_name ::= STRING */ |
| 2018 | -2, /* (145) member_expression_part ::= DOT IDENTIFIER */ |
| 2019 | 0, /* (146) adjuster ::= */ |
| 2020 | -1, /* (147) adjuster ::= adjust_expression */ |
| 2021 | -1, /* (148) adjust_expression ::= adjust_match_expression */ |
| 2022 | }; |
| 2023 | |
| 2024 | static void yy_accept(yyParser*); /* Forward Declaration */ |
| 2025 | |
| 2026 | /* |
| 2027 | ** Perform a reduce action and the shift that must immediately |
| 2028 | ** follow the reduce. |
| 2029 | ** |
| 2030 | ** The yyLookahead and yyLookaheadToken parameters provide reduce actions |
| 2031 | ** access to the lookahead token (if any). The yyLookahead will be YYNOCODE |
| 2032 | ** if the lookahead token has already been consumed. As this procedure is |
| 2033 | ** only called from one place, optimizing compilers will in-line it, which |
| 2034 | ** means that the extra parameters have no performance impact. |
| 2035 | */ |
| 2036 | static YYAcxx . . $ yyParser#CTIONTYPE yy_reduce( |
| 2037 | yyParser *yypParser, /* The parser */ |
| 2038 | unsigned int yyruleno, /* Number of the rule by which to reduce */ |
| 2039 | int yyLookahead, cxx . . $ `lib/grn_ecmascript.c:343:9`! /* Lookahead token, or YYNOCODE if none */ |
| 2040 | grn_expr_parserTOKENTYPEcxx . . $ `lib/grn_ecmascript.c:358:9`! yyLookaheadToken /* Value of the lookahead token */ |
| 2041 | grn_expr_parserCTX_PDECL /* %extra_context */ |
| 2042 | ){ |
| 2043 | int yygoto; cxx . . $ `lib/grn_ecmascript.c:342:9`! /* The next state */ |
| 2044 | YYACTIONTYPEcxx . . $ yyStackEntry# yyact; /* The next action */ |
| 2045 | yyStackEntry *yymsp; /* The top of the parser's stack */ |
| 2046 | int yysize; cxx . . $ `lib/grn_ecmascript.c:355:9`! /* Amount to pop the stack */ |
| 2047 | grn_expr_parserARG_FETCH |
| 2048 | (void)yyLookahead; |
| 2049 | (void)yyLookaheadToken;cxx . . $ yyParser#yytos. |
| 2050 | yymsp = yypParser->yytos; |
| 2051 | |
| 2052 | switch( yyruleno ){ |
| 2053 | /* Beginning here are the reduction cases. A typical example |
| 2054 | ** follows: |
| 2055 | ** case 0: |
| 2056 | ** #line <lineno> <grammarfile> |
| 2057 | ** { ... } // User supplied code |
| 2058 | ** #line <lineno> <thisfile> |
| 2059 | ** break; |
| 2060 | */ |
| 2061 | /********** Begin rcxx . . $ YYMINORTYPE#educe actions **********************************************/ |
| 2062 | YYMINORTYPE yylhsminor; |
| 2063 | case 0: /* query ::= query query_element */ |
| 2064 | #line 220 "grn_ecmascript.lemon" |
| 2065 | { |
| 2066 | grn_expr_append_op(efsi->ctx, efsi->e, grn_int32_value_at(&efsi->op_stack, -1), 2); |
| 2067 | } |
| 2068 | #line 2068 "grn_ecmascript.c" |
| 2069 | break; |
| 2070 | case 1: /* query ::= query LOGICAL_AND query_element */ |
| 2071 | case 25: /* logical_and_expression ::= logical_and_expression LOGICAL_AND bitwise_or_expression */ yytestcase(yyruleno==25); |
| 2072 | #line 223 "grn_ecmascript.lemon" |
| 2073 | { |
| 2074 | grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_AND, 2); |
| 2075 | } |
| 2076 | #line 2076 "grn_ecmascript.c" |
| 2077 | break; |
| 2078 | case 2: /* query ::= query LOGICAL_AND_NOT query_element */ |
| 2079 | case 26: /* logical_and_expression ::= logical_and_expression LOGICAL_AND_NOT bitwise_or_expression */ yytestcase(yyruleno==26); |
| 2080 | #line 226 "grn_ecmascript.lemon" |
| 2081 | { |
| 2082 | grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_AND_NOT, 2); |
| 2083 | } |
| 2084 | #line 2084 "grn_ecmascript.c" |
| 2085 | break; |
| 2086 | case 3: /* query ::= query LOGICAL_OR query_element */ |
| 2087 | case 24: /* logical_or_expression ::= logical_or_expression LOGICAL_OR logical_and_expression */ yytestcase(yyruleno==24); |
| 2088 | #line 229 "grn_ecmascript.lemon" |
| 2089 | { |
| 2090 | grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_OR, 2); |
| 2091 | } |
| 2092 | #line 2092 "grn_ecmascript.c" |
| 2093 | break; |
| 2094 | case 4: /* query ::= query NEGATIVE query_element */ |
| 2095 | #line 232 "grn_ecmascript.lemon" |
| 2096 | { |
| 2097 | float weight; |
| 2098 | GRN_FLOAT32_POP(&efsi->weight_stack, weight); |
| 2099 | grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_ADJUST, 2); |
| 2100 | } |
| 2101 | #line 2101 "grn_ecmascript.c" |
| 2102 | break; |
| 2103 | case 5: /* query_element ::= ADJUST query_element */ |
| 2104 | #line 241 "grn_ecmascript.lemon" |
| 2105 | { |
| 2106 | float weight; |
| 2107 | GRN_FLOAT32_POP(&efsi->weight_stack, weight); |
| 2108 | } |
| 2109 | #line 2109 "grn_ecmascript.c" |
| 2110 | break; |
| 2111 | case 6: /* query_element ::= RELATIVE_OP query_element */ |
| 2112 | #line 245 "grn_ecmascript.lemon" |
| 2113 | { |
| 2114 | int mode; |
| 2115 | GRN_INT32_POP(&efsi->mode_stack, mode); |
| 2116 | } |
| 2117 | #line 2117 "grn_ecmascript.c" |
| 2118 | break; |
| 2119 | case 7: /* query_element ::= IDENTIFIER RELATIVE_OP query_element */ |
| 2120 | #line 249 "grn_ecmascript.lemon" |
| 2121 | { |
| 2122 | int mode; |
| 2123 | grn_obj *c; |
| 2124 | GRN_PTR_POP(&efsi->column_stack, c); |
| 2125 | GRN_INT32_POP(&efsi->mode_stack, mode); |
| 2126 | switch (mode) { |
| 2127 | case GRN_OP_NEAR : |
| 2128 | case GRN_OP_NEAR_NO_OFFSET : |
| 2129 | { |
| 2130 | int max_interval; |
| 2131 | GRN_INT32_POP(&efsi->max_interval_stack, max_interval); |
| 2132 | grn_obj *max_element_intervals; |
| 2133 | GRN_PTR_POP(&efsi->max_element_intervals_stack, |
| 2134 | max_element_intervals); |
| 2135 | int min_interval; |
| 2136 | GRN_INT32_POP(&efsi->min_interval_stack, min_interval); |
| 2137 | } |
| 2138 | break; |
| 2139 | case GRN_OP_NEAR_PHRASE : |
| 2140 | case GRN_OP_ORDERED_NEAR_PHRASE : |
| 2141 | case GRN_OP_NEAR_PHRASE_PRODUCT : |
| 2142 | case GRN_OP_ORDERED_NEAR_PHRASE_PRODUCT : |
| 2143 | { |
| 2144 | int max_interval; |
| 2145 | GRN_INT32_POP(&efsi->max_interval_stack, max_interval); |
| 2146 | int additional_last_interval; |
| 2147 | GRN_INT32_POP(&efsi->additional_last_interval_stack, |
| 2148 | additional_last_interval); |
| 2149 | grn_obj *max_element_intervals; |
| 2150 | GRN_PTR_POP(&efsi->max_element_intervals_stack, |
| 2151 | max_element_intervals); |
| 2152 | int min_interval; |
| 2153 | GRN_INT32_POP(&efsi->min_interval_stack, min_interval); |
| 2154 | } |
| 2155 | break; |
| 2156 | case GRN_OP_SIMILAR : |
| 2157 | { |
| 2158 | int similarity_threshold; |
| 2159 | GRN_INT32_POP(&efsi->similarity_threshold_stack, similarity_threshold); |
| 2160 | } |
| 2161 | break; |
| 2162 | case GRN_OP_QUORUM : |
| 2163 | { |
| 2164 | int quorum_threshold; |
| 2165 | GRN_INT32_POP(&efsi->quorum_threshold_stack, quorum_threshold); |
| 2166 | } |
| 2167 | break; |
| 2168 | default : |
| 2169 | break; |
| 2170 | } |
| 2171 | } |
| 2172 | #line 2172 "grn_ecmascript.c" |
| 2173 | break; |
| 2174 | case 8: /* query_element ::= BRACEL expression BRACER */ |
| 2175 | case 9: /* query_element ::= EVAL primary_expression */ yytestcase(yyruleno==9); |
| 2176 | #line 300 "grn_ecmascript.lemon" |
| 2177 | { |
| 2178 | efsi->flags = efsi->default_flags; |
| 2179 | } |
| 2180 | #line 2180 "grn_ecmascript.c" |
| 2181 | break; |
| 2182 | case 10: /* expression ::= expression COMMA assignment_expression */ |
| 2183 | #line 308 "grn_ecmascript.lemon" |
| 2184 | { |
| 2185 | grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_COMMA, 2); |
| 2186 | } |
| 2187 | #line 2187 "grn_ecmascript.c" |
| 2188 | break; |
| 2189 | case 11: /* assignment_expression ::= lefthand_side_expression ASSIGN assignment_expression */ |
| 2190 | #line 313 "grn_ecmascript.lemon" |
| 2191 | { |
| 2192 | grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_ASSIGN, 2); |
| 2193 | } |
| 2194 | #line 2194 "grn_ecmascript.c" |
| 2195 | break; |
| 2196 | case 12: /* assignment_expression ::= lefthand_side_expression STAR_ASSIGN assignment_expression */ |
| 2197 | #line 316 "grn_ecmascript.lemon" |
| 2198 | { |
| 2199 | grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_STAR_ASSIGN, 2); |
| 2200 | } |
| 2201 | #line 2201 "grn_ecmascript.c" |
| 2202 | break; |
| 2203 | case 13: /* assignment_expression ::= lefthand_side_expression SLASH_ASSIGN assignment_expression */ |
| 2204 | #line 319 "grn_ecmascript.lemon" |
| 2205 | { |
| 2206 | grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_SLASH_ASSIGN, 2); |
| 2207 | } |
| 2208 | #line 2208 "grn_ecmascript.c" |
| 2209 | break; |
| 2210 | case 14: /* assignment_expression ::= lefthand_side_expression MOD_ASSIGN assignment_expression */ |
| 2211 | #line 322 "grn_ecmascript.lemon" |
| 2212 | { |
| 2213 | grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_MOD_ASSIGN, 2); |
| 2214 | } |
| 2215 | #line 2215 "grn_ecmascript.c" |
| 2216 | break; |
| 2217 | case 15: /* assignment_expression ::= lefthand_side_expression PLUS_ASSIGN assignment_expression */ |
| 2218 | #line 325 "grn_ecmascript.lemon" |
| 2219 | { |
| 2220 | grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_PLUS_ASSIGN, 2); |
| 2221 | } |
| 2222 | #line 2222 "grn_ecmascript.c" |
| 2223 | break; |
| 2224 | case 16: /* assignment_expression ::= lefthand_side_expression MINUS_ASSIGN assignment_expression */ |
| 2225 | #line 328 "grn_ecmascript.lemon" |
| 2226 | { |
| 2227 | grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_MINUS_ASSIGN, 2); |
| 2228 | } |
| 2229 | #line 2229 "grn_ecmascript.c" |
| 2230 | break; |
| 2231 | case 17: /* assignment_expression ::= lefthand_side_expression SHIFTL_ASSIGN assignment_expression */ |
| 2232 | #line 331 "grn_ecmascript.lemon" |
| 2233 | { |
| 2234 | grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_SHIFTL_ASSIGN, 2); |
| 2235 | } |
| 2236 | #line 2236 "grn_ecmascript.c" |
| 2237 | break; |
| 2238 | case 18: /* assignment_expression ::= lefthand_side_expression SHIFTR_ASSIGN assignment_expression */ |
| 2239 | #line 334 "grn_ecmascript.lemon" |
| 2240 | { |
| 2241 | grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_SHIFTR_ASSIGN, 2); |
| 2242 | } |
| 2243 | #line 2243 "grn_ecmascript.c" |
| 2244 | break; |
| 2245 | case 19: /* assignment_expression ::= lefthand_side_expression SHIFTRR_ASSIGN assignment_expression */ |
| 2246 | #line 337 "grn_ecmascript.lemon" |
| 2247 | { |
| 2248 | grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_SHIFTRR_ASSIGN, 2); |
| 2249 | } |
| 2250 | #line 2250 "grn_ecmascript.c" |
| 2251 | break; |
| 2252 | case 20: /* assignment_expression ::= lefthand_side_expression AND_ASSIGN assignment_expression */ |
| 2253 | #line 340 "grn_ecmascript.lemon" |
| 2254 | { |
| 2255 | grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_AND_ASSIGN, 2); |
| 2256 | } |
| 2257 | #line 2257 "grn_ecmascript.c" |
| 2258 | break; |
| 2259 | case 21: /* assignment_expression ::= lefthand_side_expression XOR_ASSIGN assignment_expression */ |
| 2260 | #line 343 "grn_ecmascript.lemon" |
| 2261 | { |
| 2262 | grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_XOR_ASSIGN, 2); |
| 2263 | } |
| 2264 | #line 2264 "grn_ecmascript.c" |
| 2265 | break; |
| 2266 | case 22: /* assignment_expression ::= lefthand_side_expression OR_ASSIGN assignment_expression */ |
| 2267 | #line 346 "grn_ecmascript.lemon" |
| 2268 | { |
| 2269 | grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_OR_ASSIGN, 2); |
| 2270 | } |
| 2271 | #line 2271 "grn_ecmascript.c" |
| 2272 | break; |
| 2273 | case 23: /* conditional_expression ::= logical_or_expression QUESTION assignment_expression COLON assignment_expression */ |
| 2274 | #line 351 "grn_ecmascript.lemon" |
| 2275 | { |
| 2276 | grn_expr *e = (grn_expr *)efsi->e; |
| 2277 | e->codes[yymsp[-3].minor.yy0].nargs = yymsp[-1].minor.yy0 - yymsp[-3].minor.yy0; |
| 2278 | e->codes[yymsp[-1].minor.yy0].nargs = e->codes_curr - yymsp[-1].minor.yy0 - 1; |
| 2279 | } |
| 2280 | #line 2280 "grn_ecmascript.c" |
| 2281 | break; |
| 2282 | case 27: /* logical_and_expression ::= logical_and_expression ADJUST bitwise_or_expression */ |
| 2283 | #line 369 "grn_ecmascript.lemon" |
| 2284 | { |
| 2285 | float weight; |
| 2286 | GRN_FLOAT32_POP(&efsi->weight_stack, weight); |
| 2287 | grn_expr_append_const_float32(efsi->ctx, efsi->e, weight, GRN_OP_AND, 2); |
| 2288 | } |
| 2289 | #line 2289 "grn_ecmascript.c" |
| 2290 | break; |
| 2291 | case 28: /* logical_and_expression ::= logical_and_expression NEGATIVE bitwise_or_expression */ |
| 2292 | #line 374 "grn_ecmascript.lemon" |
| 2293 | { |
| 2294 | float weight; |
| 2295 | GRN_FLOAT32_POP(&efsi->weight_stack, weight); |
| 2296 | grn_expr_append_const_float32(efsi->ctx, efsi->e, weight, GRN_OP_ADJUST, 2); |
| 2297 | } |
| 2298 | #line 2298 "grn_ecmascript.c" |
| 2299 | break; |
| 2300 | case 29: /* bitwise_or_expression ::= bitwise_or_expression BITWISE_OR bitwise_xor_expression */ |
| 2301 | #line 381 "grn_ecmascript.lemon" |
| 2302 | { |
| 2303 | grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_BITWISE_OR, 2); |
| 2304 | } |
| 2305 | #line 2305 "grn_ecmascript.c" |
| 2306 | break; |
| 2307 | case 30: /* bitwise_xor_expression ::= bitwise_xor_expression BITWISE_XOR bitwise_and_expression */ |
| 2308 | #line 386 "grn_ecmascript.lemon" |
| 2309 | { |
| 2310 | grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_BITWISE_XOR, 2); |
| 2311 | } |
| 2312 | #line 2312 "grn_ecmascript.c" |
| 2313 | break; |
| 2314 | case 31: /* bitwise_and_expression ::= bitwise_and_expression BITWISE_AND equality_expression */ |
| 2315 | #line 391 "grn_ecmascript.lemon" |
| 2316 | { |
| 2317 | grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_BITWISE_AND, 2); |
| 2318 | } |
| 2319 | #line 2319 "grn_ecmascript.c" |
| 2320 | break; |
| 2321 | case 32: /* equality_expression ::= equality_expression EQUAL relational_expression */ |
| 2322 | #line 396 "grn_ecmascript.lemon" |
| 2323 | { |
| 2324 | grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_EQUAL, 2); |
| 2325 | } |
| 2326 | #line 2326 "grn_ecmascript.c" |
| 2327 | break; |
| 2328 | case 33: /* equality_expression ::= equality_expression NOT_EQUAL relational_expression */ |
| 2329 | #line 399 "grn_ecmascript.lemon" |
| 2330 | { |
| 2331 | grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_NOT_EQUAL, 2); |
| 2332 | } |
| 2333 | #line 2333 "grn_ecmascript.c" |
| 2334 | break; |
| 2335 | case 34: /* relational_expression ::= relational_expression LESS shift_expression */ |
| 2336 | #line 404 "grn_ecmascript.lemon" |
| 2337 | { |
| 2338 | grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_LESS, 2); |
| 2339 | } |
| 2340 | #line 2340 "grn_ecmascript.c" |
| 2341 | break; |
| 2342 | case 35: /* relational_expression ::= relational_expression GREATER shift_expression */ |
| 2343 | #line 407 "grn_ecmascript.lemon" |
| 2344 | { |
| 2345 | grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_GREATER, 2); |
| 2346 | } |
| 2347 | #line 2347 "grn_ecmascript.c" |
| 2348 | break; |
| 2349 | case 36: /* relational_expression ::= relational_expression LESS_EQUAL shift_expression */ |
| 2350 | #line 410 "grn_ecmascript.lemon" |
| 2351 | { |
| 2352 | grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_LESS_EQUAL, 2); |
| 2353 | } |
| 2354 | #line 2354 "grn_ecmascript.c" |
| 2355 | break; |
| 2356 | case 37: /* relational_expression ::= relational_expression GREATER_EQUAL shift_expression */ |
| 2357 | #line 413 "grn_ecmascript.lemon" |
| 2358 | { |
| 2359 | grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_GREATER_EQUAL, 2); |
| 2360 | } |
| 2361 | #line 2361 "grn_ecmascript.c" |
| 2362 | break; |
| 2363 | case 38: /* relational_expression ::= relational_expression IN shift_expression */ |
| 2364 | #line 416 "grn_ecmascript.lemon" |
| 2365 | { |
| 2366 | grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_IN, 2); |
| 2367 | } |
| 2368 | #line 2368 "grn_ecmascript.c" |
| 2369 | break; |
| 2370 | case 39: /* relational_expression ::= relational_expression MATCH shift_exprecxx . . $ `lib/grn_ecmascript.c:386:10`!ssion */ |
| 2371 | case 97: /* adjust_match_expression ::= IDENTIFIER MATCH STRING */ yytestcase(yyruleno==97); |
| 2372 | #line 419 "grn_ecmascript.lemon" |
| 2373 | { |
| 2374 | grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_MATCH, 2); |
| 2375 | } |
| 2376 | #line 2376 "grn_ecmascript.c" |
| 2377 | break; |
| 2378 | case 40: /* relational_expression ::= relational_expression NEAR shift_expression */ |
| 2379 | #line 422 "grn_ecmascript.lemon" |
| 2380 | { |
| 2381 | int n_args = 2; |
| 2382 | do { |
| 2383 | int max_interval; |
| 2384 | GRN_INT32_POP(&efsi->max_interval_stack, max_interval); |
| 2385 | grn_expr_append_const_int(efsi->ctx, efsi->e, max_interval, |
| 2386 | GRN_OP_PUSH, 1); |
| 2387 | n_args++; |
| 2388 | grn_obj *max_element_intervals; |
| 2389 | GRN_PTR_POP(&efsi->max_element_intervals_stack, |
| 2390 | max_element_intervals); |
| 2391 | int min_interval; |
| 2392 | GRN_INT32_POP(&efsi->min_interval_stack, min_interval); |
| 2393 | if (!max_element_intervals) { |
| 2394 | break; |
| 2395 | } |
| 2396 | grn_expr_append_obj(efsi->ctx, efsi->e, max_element_intervals, |
| 2397 | GRN_OP_PUSH, 1); |
| 2398 | grn_expr_take_obj(efsi->ctx, efsi->e, max_element_intervals); |
| 2399 | n_args++; |
| 2400 | grn_expr_append_const_int(efsi->ctx, efsi->e, min_interval, |
| 2401 | GRN_OP_PUSH, 1); |
| 2402 | n_args++; |
| 2403 | } while (false); |
| 2404 | grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_NEAR, n_args); |
| 2405 | } |
| 2406 | #line 2406 "grn_ecmascript.c" |
| 2407 | break; |
| 2408 | case 41: /* relational_expression ::= relational_expression NEAR_NO_OFFSET shift_expression */ |
| 2409 | #line 448 "grn_ecmascript.lemon" |
| 2410 | { |
| 2411 | grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_NEAR_NO_OFFSET, 2); |
| 2412 | } |
| 2413 | #line 2413 "grn_ecmascript.c" |
| 2414 | break; |
| 2415 | case 42: /* relational_expression ::= relational_expression NEAR_PHRASE shift_expression */ |
| 2416 | #line 451 "grn_ecmascript.lemon" |
| 2417 | { |
| 2418 | int n_args = 2; |
| 2419 | do { |
| 2420 | int max_interval; |
| 2421 | GRN_INT32_POP(&efsi->max_interval_stack, max_interval); |
| 2422 | grn_expr_append_const_int(efsi->ctx, efsi->e, max_interval, |
| 2423 | GRN_OP_PUSH, 1); |
| 2424 | n_args++; |
| 2425 | int additional_last_interval; |
| 2426 | GRN_INT32_POP(&efsi->additional_last_interval_stack, |
| 2427 | additional_last_interval); |
| 2428 | grn_expr_append_const_int(efsi->ctx, efsi->e, additional_last_interval, |
| 2429 | GRN_OP_PUSH, 1); |
| 2430 | n_args++; |
| 2431 | grn_obj *max_element_intervals; |
| 2432 | GRN_PTR_POP(&efsi->max_element_intervals_stack, |
| 2433 | max_element_intervals); |
| 2434 | int min_interval; |
| 2435 | GRN_INT32_POP(&efsi->min_interval_stack, min_interval); |
| 2436 | if (!max_element_intervals) { |
| 2437 | break; |
| 2438 | } |
| 2439 | grn_expr_append_obj(efsi->ctx, efsi->e, max_element_intervals, |
| 2440 | GRN_OP_PUSH, 1); |
| 2441 | grn_expr_take_obj(efsi->ctx, efsi->e, max_element_intervals); |
| 2442 | n_args++; |
| 2443 | grn_expr_append_const_int(efsi->ctx, efsi->e, min_interval, |
| 2444 | GRN_OP_PUSH, 1); |
| 2445 | n_args++; |
| 2446 | } while (false); |
| 2447 | grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_NEAR_PHRASE, n_args); |
| 2448 | } |
| 2449 | #line 2449 "grn_ecmascript.c" |
| 2450 | break; |
| 2451 | case 43: /* relational_expression ::= relational_expression ORDERED_NEAR_PHRASE shift_expression */ |
| 2452 | #line 483 "grn_ecmascript.lemon" |
| 2453 | { |
| 2454 | int n_args = 2; |
| 2455 | do { |
| 2456 | int max_interval; |
| 2457 | GRN_INT32_POP(&efsi->max_interval_stack, max_interval); |
| 2458 | grn_expr_append_const_int(efsi->ctx, efsi->e, max_interval, |
| 2459 | GRN_OP_PUSH, 1); |
| 2460 | n_args++; |
| 2461 | int additional_last_interval; |
| 2462 | GRN_INT32_POP(&efsi->additional_last_interval_stack, |
| 2463 | additional_last_interval); |
| 2464 | grn_expr_append_const_int(efsi->ctx, efsi->e, additional_last_interval, |
| 2465 | GRN_OP_PUSH, 1); |
| 2466 | n_args++; |
| 2467 | grn_obj *max_element_intervals; |
| 2468 | GRN_PTR_POP(&efsi->max_element_intervals_stack, |
| 2469 | max_element_intervals); |
| 2470 | int min_interval; |
| 2471 | GRN_INT32_POP(&efsi->min_interval_stack, min_interval); |
| 2472 | if (!max_element_intervals) { |
| 2473 | break; |
| 2474 | } |
| 2475 | grn_expr_append_obj(efsi->ctx, efsi->e, max_element_intervals, |
| 2476 | GRN_OP_PUSH, 1); |
| 2477 | grn_expr_take_obj(efsi->ctx, efsi->e, max_element_intervals); |
| 2478 | n_args++; |
| 2479 | grn_expr_append_const_int(efsi->ctx, efsi->e, min_interval, |
| 2480 | GRN_OP_PUSH, 1); |
| 2481 | n_args++; |
| 2482 | } while (false); |
| 2483 | grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_ORDERED_NEAR_PHRASE, n_args); |
| 2484 | } |
| 2485 | #line 2485 "grn_ecmascript.c" |
| 2486 | break; |
| 2487 | case 44: /* relational_expression ::= relational_expression NEAR_PHRASE_PRODUCT shift_expression */ |
| 2488 | #line 515 "grn_ecmascript.lemon" |
| 2489 | { |
| 2490 | int n_args = 2; |
| 2491 | do { |
| 2492 | int max_interval; |
| 2493 | GRN_INT32_POP(&efsi->max_interval_stack, max_interval); |
| 2494 | grn_expr_append_const_int(efsi->ctx, efsi->e, max_interval, |
| 2495 | GRN_OP_PUSH, 1); |
| 2496 | n_args++; |
| 2497 | int additional_last_interval; |
| 2498 | GRN_INT32_POP(&efsi->additional_last_interval_stack, |
| 2499 | additional_last_interval); |
| 2500 | grn_expr_append_const_int(efsi->ctx, efsi->e, additional_last_interval, |
| 2501 | GRN_OP_PUSH, 1); |
| 2502 | n_args++; |
| 2503 | grn_obj *max_element_intervals; |
| 2504 | GRN_PTR_POP(&efsi->max_element_intervals_stack, |
| 2505 | max_element_intervals); |
| 2506 | int min_interval; |
| 2507 | GRN_INT32_POP(&efsi->min_interval_stack, min_interval); |
| 2508 | if (!max_element_intervals) { |
| 2509 | break; |
| 2510 | } |
| 2511 | grn_expr_append_obj(efsi->ctx, efsi->e, max_element_intervals, |
| 2512 | GRN_OP_PUSH, 1); |
| 2513 | grn_expr_take_obj(efsi->ctx, efsi->e, max_element_intervals); |
| 2514 | n_args++; |
| 2515 | grn_expr_append_const_int(efsi->ctx, efsi->e, min_interval, |
| 2516 | GRN_OP_PUSH, 1); |
| 2517 | n_args++; |
| 2518 | } while (false); |
| 2519 | grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_NEAR_PHRASE_PRODUCT, n_args); |
| 2520 | } |
| 2521 | #line 2521 "grn_ecmascript.c" |
| 2522 | break; |
| 2523 | case 45: /* relational_expression ::= relational_expression ORDERED_NEAR_PHRASE_PRODUCT shift_expression */ |
| 2524 | #line 547 "grn_ecmascript.lemon" |
| 2525 | { |
| 2526 | int n_args = 2; |
| 2527 | do { |
| 2528 | int max_interval; |
| 2529 | GRN_INT32_POP(&efsi->max_interval_stack, max_interval); |
| 2530 | grn_expr_append_const_int(efsi->ctx, efsi->e, max_interval, |
| 2531 | GRN_OP_PUSH, 1); |
| 2532 | n_args++; |
| 2533 | int additional_last_interval; |
| 2534 | GRN_INT32_POP(&efsi->additional_last_interval_stack, |
| 2535 | additional_last_interval); |
| 2536 | grn_expr_append_const_int(efsi->ctx, efsi->e, additional_last_interval, |
| 2537 | GRN_OP_PUSH, 1); |
| 2538 | n_args++; |
| 2539 | grn_obj *max_element_intervals; |
| 2540 | GRN_PTR_POP(&efsi->max_element_intervals_stack, |
| 2541 | max_element_intervals); |
| 2542 | int min_interval; |
| 2543 | GRN_INT32_POP(&efsi->min_interval_stack, min_interval); |
| 2544 | if (!max_element_intervals) { |
| 2545 | break; |
| 2546 | } |
| 2547 | grn_expr_append_obj(efsi->ctx, efsi->e, max_element_intervals, |
| 2548 | GRN_OP_PUSH, 1); |
| 2549 | grn_expr_take_obj(efsi->ctx, efsi->e, max_element_intervals); |
| 2550 | n_args++; |
| 2551 | grn_expr_append_const_int(efsi->ctx, efsi->e, min_interval, |
| 2552 | GRN_OP_PUSH, 1); |
| 2553 | n_args++; |
| 2554 | } while (false); |
| 2555 | grn_expr_append_op(efsi->ctx, |
| 2556 | efsi->e, |
| 2557 | GRN_OP_ORDERED_NEAR_PHRASE_PRODUCT, |
| 2558 | n_args); |
| 2559 | } |
| 2560 | #line 2560 "grn_ecmascript.c" |
| 2561 | break; |
| 2562 | case 46: /* relational_expression ::= relational_expression SIMILAR shift_expression */ |
| 2563 | #line 582 "grn_ecmascript.lemon" |
| 2564 | { |
| 2565 | { |
| 2566 | int similarity_threshold; |
| 2567 | GRN_INT32_POP(&efsi->similarity_threshold_stack, similarity_threshold); |
| 2568 | grn_expr_append_const_int(efsi->ctx, efsi->e, similarity_threshold, |
| 2569 | GRN_OP_PUSH, 1); |
| 2570 | } |
| 2571 | grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_SIMILAR, 3); |
| 2572 | } |
| 2573 | #line 2573 "grn_ecmascript.c" |
| 2574 | break; |
| 2575 | case 47: /* relational_expression ::= relational_expression TERM_EXTRACT shift_expression */ |
| 2576 | #line 591 "grn_ecmascript.lemon" |
| 2577 | { |
| 2578 | grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_TERM_EXTRACT, 2); |
| 2579 | } |
| 2580 | #line 2580 "grn_ecmascript.c" |
| 2581 | break; |
| 2582 | case 48: /* relational_expression ::= relational_expression QUORUM shift_expression */ |
| 2583 | #line 594 "grn_ecmascript.lemon" |
| 2584 | { |
| 2585 | { |
| 2586 | int quorum_threshold; |
| 2587 | GRN_INT32_POP(&efsi->quorum_threshold_stack, quorum_threshold); |
| 2588 | grn_expr_append_const_int(efsi->ctx, efsi->e, quorum_threshold, |
| 2589 | GRN_OP_PUSH, 1); |
| 2590 | } |
| 2591 | grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_QUORUM, 3); |
| 2592 | } |
| 2593 | #line 2593 "grn_ecmascript.c" |
| 2594 | break; |
| 2595 | case 49: /* relational_expression ::= relational_expression LCP shift_expression */ |
| 2596 | #line 603 "grn_ecmascript.lemon" |
| 2597 | { |
| 2598 | grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_LCP, 2); |
| 2599 | } |
| 2600 | #line 2600 "grn_ecmascript.c" |
| 2601 | break; |
| 2602 | case 50: /* relational_expression ::= relational_expression PREFIX shift_expression */ |
| 2603 | #line 606 "grn_ecmascript.lemon" |
| 2604 | { |
| 2605 | grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_PREFIX, 2); |
| 2606 | } |
| 2607 | #line 2607 "grn_ecmascript.c" |
| 2608 | break; |
| 2609 | case 51: /* relational_expression ::= relational_expression SUFFIX shift_expression */ |
| 2610 | #line 609 "grn_ecmascript.lemon" |
| 2611 | { |
| 2612 | grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_SUFFIX, 2); |
| 2613 | } |
| 2614 | #line 2614 "grn_ecmascript.c" |
| 2615 | break; |
| 2616 | case 52: /* relational_expression ::= relational_expression REGEXP shift_expression */ |
| 2617 | #line 612 "grn_ecmascript.lemon" |
| 2618 | { |
| 2619 | grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_REGEXP, 2); |
| 2620 | } |
| 2621 | #line 2621 "grn_ecmascript.c" |
| 2622 | break; |
| 2623 | case 53: /* shift_expression ::= shift_expression SHIFTL additive_expression */ |
| 2624 | #line 617 "grn_ecmascript.lemon" |
| 2625 | { |
| 2626 | grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_SHIFTL, 2); |
| 2627 | } |
| 2628 | #line 2628 "grn_ecmascript.c" |
| 2629 | break; |
| 2630 | case 54: /* shift_expression ::= shift_expression SHIFTR additive_expression */ |
| 2631 | #line 620 "grn_ecmascript.lemon" |
| 2632 | { |
| 2633 | grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_SHIFTR, 2); |
| 2634 | } |
| 2635 | #line 2635 "grn_ecmascript.c" |
| 2636 | break; |
| 2637 | case 55: /* shift_expression ::= shift_expression SHIFTRR additive_expression */ |
| 2638 | #line 623 "grn_ecmascript.lemon" |
| 2639 | { |
| 2640 | grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_SHIFTRR, 2); |
| 2641 | } |
| 2642 | #line 2642 "grn_ecmascript.c" |
| 2643 | break; |
| 2644 | case 56: /* additive_expression ::= additive_expression PLUS multipliccxx . . $ `lib/grn_ecmascript.c:386:10`!ative_expression */ |
| 2645 | case 95: /* adjuster ::= adjuster PLUS adjust_expression */ yytestcase(yyruleno==95); |
| 2646 | #line 628 "grn_ecmascript.lemon" |
| 2647 | { |
| 2648 | grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_PLUS, 2); |
| 2649 | } |
| 2650 | #line 2650 "grn_ecmascript.c" |
| 2651 | break; |
| 2652 | case 57: /* additive_expression ::= additive_expression MINUS multiplicative_expression */ |
| 2653 | #line 631 "grn_ecmascript.lemon" |
| 2654 | { |
| 2655 | grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_MINUS, 2); |
| 2656 | } |
| 2657 | #line 2657 "grn_ecmascript.c" |
| 2658 | break; |
| 2659 | case 58: /* multiplicative_expression ::= multiplicative_expression STAR unary_exprecxx . . $ `lib/grn_ecmascript.c:386:10`!ssion */ |
| 2660 | case 96: /* adjust_expression ::= adjust_match_expression STAR DECIMAL */ yytestcase(yyruleno==96); |
| 2661 | #line 636 "grn_ecmascript.lemon" |
| 2662 | { |
| 2663 | grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_STAR, 2); |
| 2664 | } |
| 2665 | #line 2665 "grn_ecmascript.c" |
| 2666 | break; |
| 2667 | case 59: /* multiplicative_expression ::= multiplicative_expression SLASH unary_expression */ |
| 2668 | #line 639 "grn_ecmascript.lemon" |
| 2669 | { |
| 2670 | grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_SLASH, 2); |
| 2671 | } |
| 2672 | #line 2672 "grn_ecmascript.c" |
| 2673 | break; |
| 2674 | case 60: /* multiplicative_expression ::= multiplicative_expression MOD unary_expression */ |
| 2675 | #line 642 "grn_ecmascript.lemon" |
| 2676 | { |
| 2677 | grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_MOD, 2); |
| 2678 | } |
| 2679 | #line 2679 "grn_ecmascript.c" |
| 2680 | break; |
| 2681 | case 61: /* unary_expression ::= DELETE unary_expression */ |
| 2682 | #line 647 "grn_ecmascript.lemon" |
| 2683 | { |
| 2684 | grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_DELETE, 1); |
| 2685 | } |
| 2686 | #line 2686 "grn_ecmascript.c" |
| 2687 | break; |
| 2688 | case 62: /* unary_expression ::= INCR unary_expression */ |
| 2689 | #line 650 "grn_ecmascript.lemon" |
| 2690 | { |
| 2691 | grn_ctx *ctx = efsi->ctx; |
| 2692 | grn_expr *e = (grn_expr *)(efsi->e); |
| 2693 | grn_expr_dfi *dfi_; |
| 2694 | unsigned int const_p; |
| 2695 | |
| 2696 | dfi_ = grn_expr_dfi_pop(e); |
| 2697 | const_p = CONSTP(dfi_->code->value); |
| 2698 | grn_expr_dfi_put(ctx, e, dfi_->type, dfi_->domain, dfi_->code); |
| 2699 | if (const_p) { |
| 2700 | ERR(GRN_SYNTAX_ERROR, |
| 2701 | "constant can't be incremented: <%.*s>", |
| 2702 | (int)(efsi->str_end - efsi->str), efsi->str); |
| 2703 | } else { |
| 2704 | grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_INCR, 1); |
| 2705 | } |
| 2706 | } |
| 2707 | #line 2707 "grn_ecmascript.c" |
| 2708 | break; |
| 2709 | case 63: /* unary_expression ::= DECR unary_expression */ |
| 2710 | #line 667 "grn_ecmascript.lemon" |
| 2711 | { |
| 2712 | grn_ctx *ctx = efsi->ctx; |
| 2713 | grn_expr *e = (grn_expr *)(efsi->e); |
| 2714 | grn_expr_dfi *dfi_; |
| 2715 | unsigned int const_p; |
| 2716 | |
| 2717 | dfi_ = grn_expr_dfi_pop(e); |
| 2718 | const_p = CONSTP(dfi_->code->value); |
| 2719 | grn_expr_dfi_put(ctx, e, dfi_->type, dfi_->domain, dfi_->code); |
| 2720 | if (const_p) { |
| 2721 | ERR(GRN_SYNTAX_ERROR, |
| 2722 | "constant can't be decremented: <%.*s>", |
| 2723 | (int)(efsi->str_end - efsi->str), efsi->str); |
| 2724 | } else { |
| 2725 | grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_DECR, 1); |
| 2726 | } |
| 2727 | } |
| 2728 | #line 2728 "grn_ecmascript.c" |
| 2729 | break; |
| 2730 | case 64: /* unary_expression ::= PLUS unary_expression */ |
| 2731 | #line 684 "grn_ecmascript.lemon" |
| 2732 | { |
| 2733 | grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_PLUS, 1); |
| 2734 | } |
| 2735 | #line 2735 "grn_ecmascript.c" |
| 2736 | break; |
| 2737 | case 65: /* unary_expression ::= MINUS unary_expression */ |
| 2738 | #line 687 "grn_ecmascript.lemon" |
| 2739 | { |
| 2740 | grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_MINUS, 1); |
| 2741 | } |
| 2742 | #line 2742 "grn_ecmascript.c" |
| 2743 | break; |
| 2744 | case 66: /* unary_expression ::= NOT unary_expression */ |
| 2745 | #line 690 "grn_ecmascript.lemon" |
| 2746 | { |
| 2747 | grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_NOT, 1); |
| 2748 | } |
| 2749 | #line 2749 "grn_ecmascript.c" |
| 2750 | break; |
| 2751 | case 67: /* unary_expression ::= BITWISE_NOT unary_expression */ |
| 2752 | #line 693 "grn_ecmascript.lemon" |
| 2753 | { |
| 2754 | grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_BITWISE_NOT, 1); |
| 2755 | } |
| 2756 | #line 2756 "grn_ecmascript.c" |
| 2757 | break; |
| 2758 | case 68: /* unary_expression ::= ADJUST unary_expression */ |
| 2759 | #line 696 "grn_ecmascript.lemon" |
| 2760 | { |
| 2761 | grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_ADJUST, 1); |
| 2762 | } |
| 2763 | #line 2763 "grn_ecmascript.c" |
| 2764 | break; |
| 2765 | case 69: /* unary_expression ::= EXACT unary_expression */ |
| 2766 | #line 699 "grn_ecmascript.lemon" |
| 2767 | { |
| 2768 | grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_EXACT, 1); |
| 2769 | } |
| 2770 | #line 2770 "grn_ecmascript.c" |
| 2771 | break; |
| 2772 | case 70: /* unary_expression ::= PARTIAL unary_expression */ |
| 2773 | #line 702 "grn_ecmascript.lemon" |
| 2774 | { |
| 2775 | grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_PARTIAL, 1); |
| 2776 | } |
| 2777 | #line 2777 "grn_ecmascript.c" |
| 2778 | break; |
| 2779 | case 71: /* unary_expression ::= UNSPLIT unary_expression */ |
| 2780 | #line 705 "grn_ecmascript.lemon" |
| 2781 | { |
| 2782 | grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_UNSPLIT, 1); |
| 2783 | } |
| 2784 | #line 2784 "grn_ecmascript.c" |
| 2785 | break; |
| 2786 | case 72: /* postfix_expression ::= lefthand_side_expression INCR */ |
| 2787 | #line 710 "grn_ecmascript.lemon" |
| 2788 | { |
| 2789 | grn_ctx *ctx = efsi->ctx; |
| 2790 | grn_expr *e = (grn_expr *)(efsi->e); |
| 2791 | grn_expr_dfi *dfi_; |
| 2792 | unsigned int const_p; |
| 2793 | |
| 2794 | dfi_ = grn_expr_dfi_pop(e); |
| 2795 | const_p = CONSTP(dfi_->code->value); |
| 2796 | grn_expr_dfi_put(ctx, e, dfi_->type, dfi_->domain, dfi_->code); |
| 2797 | if (const_p) { |
| 2798 | ERR(GRN_SYNTAX_ERROR, |
| 2799 | "constant can't be incremented: <%.*s>", |
| 2800 | (int)(efsi->str_end - efsi->str), efsi->str); |
| 2801 | } else { |
| 2802 | grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_INCR_POST, 1); |
| 2803 | } |
| 2804 | } |
| 2805 | #line 2805 "grn_ecmascript.c" |
| 2806 | break; |
| 2807 | case 73: /* postfix_expression ::= lefthand_side_expression DECR */ |
| 2808 | #line 727 "grn_ecmascript.lemon" |
| 2809 | { |
| 2810 | grn_ctx *ctx = efsi->ctx; |
| 2811 | grn_expr *e = (grn_expr *)(efsi->e); |
| 2812 | grn_expr_dfi *dfi_; |
| 2813 | unsigned int const_p; |
| 2814 | |
| 2815 | dfi_ = grn_expr_dfi_pop(e); |
| 2816 | const_p = CONSTP(dfi_->code->value); |
| 2817 | grn_expr_dfi_put(ctx, e, dfi_->type, dfi_->domain, dfi_->code); |
| 2818 | if (const_p) { |
| 2819 | ERR(GRN_SYNTAX_ERROR, |
| 2820 | "constant can't be decremented: <%.*s>", |
| 2821 | (int)(efsi->str_end - efsi->str), efsi->str); |
| 2822 | } else { |
| 2823 | grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_DECR_POST, 1); |
| 2824 | } |
| 2825 | } |
| 2826 | #line 2826 "grn_ecmascript.c" |
| 2827 | break; |
| 2828 | case 74: /* call_expression ::= member_expression arguments */ |
| 2829 | #line 748 "grn_ecmascript.lemon" |
| 2830 | { |
| 2831 | grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_CALL, yymsp[0].minor.yy0); |
| 2832 | } |
| 2833 | #line 2833 "grn_ecmascript.c" |
| 2834 | break; |
| 2835 | case 75: /* array_literal ::= BRACKETL element_list BRACKETR */ |
| 2836 | #line 765 "grn_ecmascript.lemon" |
| 2837 | { |
| 2838 | array_literal_end(efsi, yymsp[-1].minor.yy0); |
| 2839 | } |
| 2840 | #line 2840 "grn_ecmascript.c" |
| 2841 | break; |
| 2842 | case 76: /* element_list ::= */ |
| 2843 | case 80: /* property_list ::= */ yytestcase(cxx . . $ `lib/grn_ecmascript.c:386:10`!yyruleno==80); |
| 2844 | case 88: /* output_columns ::= */ yytescxx . . $ `lib/grn_ecmascript.c:386:10`!tcase(yyruleno==88); |
| 2845 | case 98: /* sort_keys ::= */ yytestcase(yyruleno==98); |
| 2846 | #line 769 "grn_ecmascript.lemon" |
| 2847 | { |
| 2848 | yymsp[1].minor.yy0 = 0; |
| 2849 | } |
| 2850 | #line 2850 "grn_ecmascript.c" |
| 2851 | break; |
| 2852 | case 77: /* element_list ::= assignment_expression *cxx . . $ `lib/grn_ecmascript.c:386:10`!/ |
| 2853 | case 81: /* property_list ::= property */ yytestcase(yyruleno==81cxx . . $ `lib/grn_ecmascript.c:386:10`!); |
| 2854 | case 94: /* output_column ::= assignment_expression */ yytestcxx . . $ `lib/grn_ecmascript.c:386:10`!case(yyruleno==94); |
| 2855 | case 103: /* sort_key ::= assignment_expression */ yytestcase(yyruleno==103); |
| 2856 | #line 772 "grn_ecmascript.lemon" |
| 2857 | { |
| 2858 | yymsp[0].minor.yy0 = 1; |
| 2859 | } |
| 2860 | #line 2860 "grn_ecmascript.c" |
| 2861 | break; |
| 2862 | case 78: /* element_list ::= element_list COMMA assignment_expression */cxx . . $ `lib/grn_ecmascript.c:386:10`! |
| 2863 | case 82: /* property_list ::= property_list COMMA property */ yytestcase(yyruleno==82); |
| 2864 | #line 775 "grn_ecmascript.lemon" |
| 2865 | { |
| 2866 | yylhsminor.yy0 = yymsp[-2].minor.yy0 + 1; |
| 2867 | } |
| 2868 | #line 2868 "grn_ecxx . . $ yyStackEntry#minor.cmascxx . . $ $anonymous_type_d3a40ffe8691b635_0#yy0.cript.c" |
| 2869 | yymsp[-2].minor.yy0 = yylhsminor.yy0; |
| 2870 | break; |
| 2871 | case 79: /* object_literal ::= BRACEL property_list BRACER */ |
| 2872 | #line 779 "grn_ecmascript.lemon" |
| 2873 | { |
| 2874 | object_literal_end(efsi, yymsp[-1].minor.yy0); |
| 2875 | } |
| 2876 | #line 2876 "grn_ecmascript.c" |
| 2877 | break; |
| 2878 | case 83: /* member_expression_part ::= BRACKETL expression BRACKETR */ |
| 2879 | #line 796 "grn_ecmascript.lemon" |
| 2880 | { |
| 2881 | grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_GET_MEMBER, 2); |
| 2882 | } |
| 2883 | #line 2883 "grn_ecmascript.c" |
| 2884 | break; |
| 2885 | case 84: /* arguments ::= PARENL argument_list PARENR */ |
| 2886 | #line 801 "grn_ecmascript.lemon" |
| 2887 | { yymsp[-2].minor.yy0 = yymsp[-1].minor.yy0; } |
| 2888 | #line 2888 "grn_ecmascript.c" |
| 2889 | break; |
| 2890 | case 85: /* argument_list ::= */ |
| 2891 | #line 802 "grn_ecmascript.lemon" |
| 2892 | { yymsp[1].minor.yy0 = 0; } |
| 2893 | #line 2893 "grn_ecmascript.c" |
| 2894 | break; |
| 2895 | case 86: /* argument_list ::= assignment_expression */ |
| 2896 | #line 803 "grn_ecmascript.lemon" |
| 2897 | { yymsp[0].minor.yy0 = 1; } |
| 2898 | #line 2898 "grn_ecmascript.c" |
| 2899 | break; |
| 2900 | case 87: /* argument_list ::= argument_list COMMA assignment_expression */ |
| 2901 | #line 804 "grn_ecmascript.lemon" |
| 2902 | { yylhsminor.yy0 = yymsp[-2].minor.yy0 + 1; } |
| 2903 | #line 2903 "grn_ecxx . . $ yyStackEntry#minor.cmascxx . . $ $anonymous_type_d3a40ffe8691b635_0#yy0.cript.c" |
| 2904 | yymsp[-2].minor.yy0 = yylhsminor.yy0; |
| 2905 | break; |
| 2906 | case 89: /* output_columns ::= output_column */cxx . . $ `lib/grn_ecmascript.c:386:10`! |
| 2907 | case 99: /* sort_keys ::= sort_key */ yytestcase(yyruleno==99); |
| 2908 | #line 809 "grn_ecmascript.lemon" |
| 2909 | { |
| 2910 | yylhsminor.yy0 = yymsp[0].minor.yy0; |
| 2911 | } |
| 2912 | #line 2912 "grn_cxx . . $ yyStackEntry#minor.ecmacxx . . $ $anonymous_type_d3a40ffe8691b635_0#yy0.script.c" |
| 2913 | yymsp[0].minor.yy0 = yylhsminor.yy0; |
| 2914 | break; |
| 2915 | case 90: /* output_columns ::= output_columns COMMA */ |
| 2916 | #line 814 "grn_ecmascript.lemon" |
| 2917 | { |
| 2918 | yylhsminor.yy0 = yymsp[-1].minor.yy0; |
| 2919 | } |
| 2920 | #line 2920 "grn_ecxx . . $ yyStackEntry#minor.cmascxx . . $ $anonymous_type_d3a40ffe8691b635_0#yy0.cript.c" |
| 2921 | yymsp[-1].minor.yy0 = yylhsminor.yy0; |
| 2922 | break; |
| 2923 | case 91: /* output_columns ::= output_columns COMMA output_columncxx . . $ `lib/grn_ecmascript.c:386:10`! */ |
| 2924 | case 100: /* sort_keys ::= sort_keys COMMA sort_key */ yytestcase(yyruleno==100); |
| 2925 | #line 819 "grn_ecmascript.lemon" |
| 2926 | { |
| 2927 | if (yymsp[-2].minor.yy0 == 0) { |
| 2928 | yylhsminor.yy0 = yymsp[0].minor.yy0; |
| 2929 | } else if (yymsp[0].minor.yy0 == 0) { |
| 2930 | yylhsminor.yy0 = yymsp[-2].minor.yy0; |
| 2931 | } else { |
| 2932 | if (yymsp[0].minor.yy0 == 1) { |
| 2933 | grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_COMMA, 2); |
| 2934 | } |
| 2935 | yylhsminor.yy0 = 1; |
| 2936 | } |
| 2937 | } |
| 2938 | #line 2938 "grn_ecxx . . $ yyStackEntry#minor.cmascxx . . $ $anonymous_type_d3a40ffe8691b635_0#yy0.cript.c" |
| 2939 | yymsp[-2].minor.yy0 = yylhsminor.yy0; |
| 2940 | break; |
| 2941 | case 92: /* output_column ::= STAR */ |
| 2942 | #line 832 "grn_ecmascript.lemon" |
| 2943 | { |
| 2944 | grn_ctx *ctx = efsi->ctx; |
| 2945 | grn_obj *expr = efsi->e; |
| 2946 | grn_obj *variable = grn_expr_get_var_by_offset(ctx, expr, 0); |
| 2947 | if (variable) { |
| 2948 | grn_id table_id = GRN_OBJ_GET_DOMAIN(variable); |
| 2949 | grn_obj *table = grn_ctx_at(ctx, table_id); |
| 2950 | grn_obj columns_buffer; |
| 2951 | int n_columns; |
| 2952 | grn_obj **columns; |
| 2953 | |
| 2954 | GRN_PTR_INIT(&columns_buffer, GRN_OBJ_VECTOR, GRN_ID_NIL); |
| 2955 | grn_obj_columns(ctx, table, "*", strlen("*"), &columns_buffer); |
| 2956 | n_columns = GRN_BULK_VSIZE(&columns_buffer) / sizeof(grn_obj *); |
| 2957 | columns = (grn_obj **)GRN_BULK_HEAD(&columns_buffer); |
| 2958 | |
| 2959 | if (n_columns == 0) { |
| 2960 | /* do nothing */ |
| 2961 | } else if (n_columns == 1) { |
| 2962 | grn_obj *column = columns[0]; |
| 2963 | grn_expr_append_const(ctx, expr, column, GRN_OP_GET_VALUE, 1); |
| 2964 | grn_expr_take_obj(ctx, expr, column); |
| 2965 | } else { |
| 2966 | grn_expr *e = (grn_expr *)expr; |
| 2967 | bool have_column; |
| 2968 | int i; |
| 2969 | |
| 2970 | have_column = (e->codes_curr > 0); |
| 2971 | for (i = 0; i < n_columns; i++) { |
| 2972 | grn_obj *column = columns[i]; |
| 2973 | grn_expr_append_const(ctx, expr, column, GRN_OP_GET_VALUE, 1); |
| 2974 | if (have_column || i > 0) { |
| 2975 | grn_expr_append_op(ctx, expr, GRN_OP_COMMA, 2); |
| 2976 | } |
| 2977 | grn_expr_take_obj(ctx, expr, column); |
| 2978 | } |
| 2979 | } |
| 2980 | |
| 2981 | grn_obj_unref(ctx, table); |
| 2982 | GRN_OBJ_FIN(ctx, &columns_buffer); |
| 2983 | |
| 2984 | yymsp[0].minor.yy0 = n_columns; |
| 2985 | } else { |
| 2986 | /* TODO: report error */ |
| 2987 | yymsp[0].minor.yy0 = 0; |
| 2988 | } |
| 2989 | } |
| 2990 | #line 2990 "grn_ecmascript.c" |
| 2991 | break; |
| 2992 | case 93: /* output_column ::= NONEXISTENT_COLUMN */cxx . . $ `lib/grn_ecmascript.c:386:10`! |
| 2993 | case 101: /* sort_key ::= NONEXISTENT_COLUMN */ yytestcase(yyruleno==101); |
| 2994 | #line 879 "grn_ecmascript.lemon" |
| 2995 | { |
| 2996 | yymsp[0].minor.yy0 = 0; |
| 2997 | } |
| 2998 | #line 2998 "grn_ecmascript.c" |
| 2999 | break; |
| 3000 | case 102: /* sort_key ::= MINUS NONEXISTENT_COLUMN */ |
| 3001 | #line 925 "grn_ecmascript.lemon" |
| 3002 | { |
| 3003 | yymsp[-1].minor.yy0 = 0; |
| 3004 | } |
| 3005 | #line 3005 "grn_ecmascript.c" |
| 3006 | break; |
| 3007 | default: |
| 3008 | /* (104) input ::= query */ yytestcase(yyrucxx . . $ `lib/grn_ecmascript.c:386:10`!leno==104); |
| 3009 | /* (105) input ::= expression */ yytestcase(yyruleno==105);cxx . . $ `lib/grn_ecmascript.c:386:10`! |
| 3010 | /* (106) input ::= START_OUTPUT_COLUMNS output_columns *cxx . . $ `lib/grn_ecmascript.c:386:10`!/ yytestcase(yyruleno==106); |
| 3011 | /* (107) input ::= START_ADJUSTER adjuster */ yytestcase(ycxx . . $ `lib/grn_ecmascript.c:386:10`!yruleno==107); |
| 3012 | /* (108) input ::= START_SORT_KEYS sort_keys */ yytestcase(yycxx . . $ `lib/grn_ecmascript.c:386:10`!ruleno==108); |
| 3013 | /* (109) input ::= START_OPTIONS object_literal */ yytestcascxx . . $ `lib/grn_ecmascript.c:386:10`!e(yyruleno==109); |
| 3014 | /* (110) input ::= START_QUERY_NO_SYNTAX_ERROR */ yytestcase(yyrulcxx . . $ `lib/grn_ecmascript.c:386:10`!eno==110); |
| 3015 | /* (111) input ::= START_QUERY_NO_SYNTAX_ERROR query */ yycxx . . $ `/usr/include/assert.h:75:11`!testcase(yyruleno==111); |
| 3016 | /* (112) query ::= query_element (OPTIMIZED OUT)cxx . . $ `lib/grn_ecmascript.c:386:10`! */ assert(yyruleno!=112); |
| 3017 | /* (113) query_element ::= QSTRING */ yytestcase(yyruleno==1cxx . . $ `lib/grn_ecmascript.c:386:10`!13); |
| 3018 | /* (114) query_element ::= PARENL query PARENR */ yytestcase(yyruleno==cxx . . $ `/usr/include/assert.h:75:11`!114); |
| 3019 | /* (115) expression ::= assignment_expression (OPTIMIZED OUT) */ assert(yyruleno!=1cxx . . $ `/usr/include/assert.h:75:11`!15); |
| 3020 | /* (116) assignment_expression ::= conditional_expression (OPTIMIZED OUcxx . . $ `lib/grn_ecmascript.c:386:10`!T) */ assert(yyruleno!=116); |
| 3021 | /* (117) conditional_expression ::= logical_or_expression */ yytestcasecxx . . $ `lib/grn_ecmascript.c:386:10`!(yyruleno==117); |
| 3022 | /* (118) logical_or_expression ::= logical_and_expression */ yytestcasecxx . . $ `lib/grn_ecmascript.c:386:10`!(yyruleno==118); |
| 3023 | /* (119) logical_and_expression ::= bitwise_or_expression */ yytestcasecxx . . $ `lib/grn_ecmascript.c:386:10`!(yyruleno==119); |
| 3024 | /* (120) bitwise_or_expression ::= bitwise_xor_expression */ yytestcase(cxx . . $ `lib/grn_ecmascript.c:386:10`!yyruleno==120); |
| 3025 | /* (121) bitwise_xor_expression ::= bitwise_and_expression */ yytestccxx . . $ `lib/grn_ecmascript.c:386:10`!ase(yyruleno==121); |
| 3026 | /* (122) bitwise_and_expression ::= equality_expression */ yytestcascxx . . $ `lib/grn_ecmascript.c:386:10`!e(yyruleno==122); |
| 3027 | /* (123) equality_expression ::= relational_expression */ yytestccxx . . $ `lib/grn_ecmascript.c:386:10`!ase(yyruleno==123); |
| 3028 | /* (124) relational_expression ::= shift_expression */ yytestcacxx . . $ `lib/grn_ecmascript.c:386:10`!se(yyruleno==124); |
| 3029 | /* (125) shift_expression ::= additive_expression */ yytestcase(yyrulenocxx . . $ `lib/grn_ecmascript.c:386:10`!==125); |
| 3030 | /* (126) additive_expression ::= multiplicative_expression */ yytestcase(yyrulenocxx . . $ `/usr/include/assert.h:75:11`!==126); |
| 3031 | /* (127) multiplicative_expression ::= unary_expression (OPTIMIZED OUT) */cxx . . $ `/usr/include/assert.h:75:11`! assert(yyruleno!=127); |
| 3032 | /* (128) unary_expression ::= postfix_expression (OPTIMIZED OUT) */ ascxx . . $ `lib/grn_ecmascript.c:386:10`!sert(yyruleno!=128); |
| 3033 | /* (129) postfix_expression ::= lefthand_side_expression */ yytestcase(yyrulenocxx . . $ `/usr/include/assert.h:75:11`!==129); |
| 3034 | /* (130) lefthand_side_expression ::= call_expression (OPTIMIZED OUT)cxx . . $ `lib/grn_ecmascript.c:386:10`! */ assert(yyruleno!=130); |
| 3035 | /* (131) lefthand_side_expression ::= member_expression */ yytestcase(yyrulcxx . . $ `/usr/include/assert.h:75:11`!eno==131); |
| 3036 | /* (132) member_expression ::= primary_expression (OPTIMIZED OUT) */ assert(yyruleno!cxx . . $ `lib/grn_ecmascript.c:386:10`!=132); |
| 3037 | /* (133) member_expression ::= member_expression member_expression_part cxx . . $ `/usr/include/assert.h:75:11`!*/ yytestcase(yyruleno==133); |
| 3038 | /* (134) primary_expression ::= object_literal (OPTIMIZED OUT) */ assecxx . . $ `lib/grn_ecmascript.c:386:10`!rt(yyruleno!=134); |
| 3039 | /* (135) primary_expression ::= PARENL expression PARENRcxx . . $ `lib/grn_ecmascript.c:386:10`! */ yytestcase(yyruleno==135); |
| 3040 | /* (136) primary_expression ::= IDENTIFIER */ yytestcase(yyruleno==136)cxx . . $ `/usr/include/assert.h:75:11`!; |
| 3041 | /* (137) primary_expression ::= array_literal (OPTIMIcxx . . $ `lib/grn_ecmascript.c:386:10`!ZED OUT) */ assert(yyruleno!=137); |
| 3042 | /* (138) primary_expression ::= DECIMAL */ yytestcase(yyrcxx . . $ `lib/grn_ecmascript.c:386:10`!uleno==138); |
| 3043 | /* (139) primary_expression ::= HEX_INTEGER */ yytescxx . . $ `lib/grn_ecmascript.c:386:10`!tcase(yyruleno==139); |
| 3044 | /* (140) primary_expression ::= STRING */ yytestcase(cxx . . $ `lib/grn_ecmascript.c:386:10`!yyruleno==140); |
| 3045 | /* (141) primary_expression ::= BOOLEAN */ yytestccxx . . $ `lib/grn_ecmascript.c:386:10`!ase(yyruleno==141); |
| 3046 | /* (142) primary_expression ::= NULL */ yytestcase(yyruleno==142); |
| 3047 | /* (143) property ::= property_name COLON assigcxx . . $ `lib/grn_ecmascript.c:386:10`!nment_expression */ yytestcase(yyruleno==143); |
| 3048 | /* (144) property_name ::= STRING */ yytestcase(yyruleno==144);cxx . . $ `lib/grn_ecmascript.c:386:10`! |
| 3049 | /* (145) member_expression_part ::=cxx . . $ `lib/grn_ecmascript.c:386:10`! DOT IDENTIFIER */ yytestcase(yyruleno==145); |
| 3050 | /* (146) adjuster ::= */ yytestcase(yyruleno==146); |
| 3051 | /* (147) adjuster ::= adjust_expression (OPTIMIZED OUT) */ assert(yycxx . . $ `lib/grn_ecmascript.c:386:10`!ruleno!=147); |
| 3052 | /* (148) adjust_expression ::= adjust_match_expression */ yytestcase(yyruleno==148); |
| 3053 | break; |
| 3054 | /********** End reduce actions ************************************************/ |
| 3055 | };cxx . . $ `/usr/include/assert.h:75:11`! |
| 3056 | assert( yyruleno<sizeocxx . . $ yyRuleInfoLhs.f(yyRuleInfoLhs)/sizeof(yyRuleInfoLhs[0]) ); |
| 3057 | yygoto = yyRuleInfoLhs[cxx . . $ yyRuleInfoNRhs.yyruleno]; |
| 3058 | yysize = yyRuleInfoNRhs[yyrulcxx . . $ yy_find_reduce_action(1a7d91f4cbaa336c).eno]; |
| 3059 | yyact = yy_find_reduce_action(yymsp[yysize].stateno,(YYCODETYPE)yygoto); |
| 3060 | |
| 3061 | /* There are no SHIFTREDUCE actions on nonterminals because the table |
| 3062 | ** gencxx . . $ `/usr/include/assert.h:75:11`!erator has simplified them to pure REDUCE actions. */ |
| 3063 | assert( !(yyact>YY_MAX_SHIFT && yyact<=YY_MAX_SHIFTREDUCE) ); |
| 3064 | |
| 3065 | /* It cxx . . $ `/usr/include/assert.h:75:11`!is not possible for a REDUCE to be followed by an error */ |
| 3066 | assert( yyact!=YY_ERROR_ACTION ); |
| 3067 | |
| 3068 | yymsp += yysize+cxx . . $ yyParser#yytos.1; |
| 3069 | yypParser->yytcxx . . $ yyStackEntry#stateno.os = yymsp;cxx . . $ `lib/grn_ecmascript.c:342:9`! |
| 3070 | yymsp->statecxx . . $ yyStackEntry#major.no = (YYACTIONcxx . . $ `lib/grn_ecmascript.c:340:9`!TYPE)yyact; |
| 3071 | yymsp->majorcxx . . $ `lib/grn_ecmascript.c:1671:10`! = (YYCODETYPE)yygoto; |
| 3072 | yyTraceShift(yypParser, yyact, "... then shift"); |
| 3073 | return yyact; |
| 3074 | } |
| 3075 | |
| 3076 | /* |
| 3077 | ** The following code executes when the parse fails |
| 3078 | */ |
| 3079 | #ifndef YYNOERRORRECOVERYcxx . . $ yy_parse_failed(47c25509c24d587d). |
| 3080 | static voicxx . . $ yyParser#d yy_parse_failed( |
| 3081 | yyParser *yypParser /* The parser */ |
| 3082 | ){ |
| 3083 | grn_expr_parserARG_FETCHcxx . . $ `lib/grn_ecmascript.c:360:9`! |
| 3084 | grn_expr_parcxx . . $ `<built-in>:418:9`!serCTX_FETCH |
| 3085 | #ifndef NDEBUG |
| 3086 | if( yyTraceFILE ){ |
| 3087 | fprintf(yyTraceFILE,"%sFail!\n",yyTracePrompt); |
| 3088 | } |
| 3089 | #endif |
| 3090 | while( yypParser->yytos>yypParser->yystack ) yy_pop_parser_stack(yypParser); |
| 3091 | /* Here code is inserted which will be executed whenever the |
| 3092 | ** parser fails */ |
| 3093 | /************ Begin %parse_failure code ***************************************/ |
| 3094 | /************ End %parse_fcxx . . $ `lib/grn_ecmascript.c:356:9`!ailure code *****************************************/ |
| 3095 | grn_expr_parserARG_STOREcxx . . $ `lib/grn_ecmascript.c:361:9`! /* Suppress warning about unused %extra_argument variable */ |
| 3096 | grn_expr_parserCTX_STORE |
| 3097 | } |
| 3098 | #endif /* YYNOERRORRECOVERY */ |
| 3099 | |
| 3100 | /* |
| 3101 | ** The following code executes when a syntax error first occurs. |
| 3102 | */ |
| 3103 | static voicxx . . $ yyParser#d yy_syntax_error( |
| 3104 | yyParser *yypParser, /* The parser */ |
| 3105 | int yymajor, cxx . . $ `lib/grn_ecmascript.c:343:9`! /* The major type of the error token */ |
| 3106 | grn_expr_parserTOKENTYPE yyminor /* The minor type of the error token */ |
| 3107 | ){ |
| 3108 | grn_expr_parserARG_FETCHcxx . . $ `lib/grn_ecmascript.c:360:9`! |
| 3109 | grn_expr_pacxx . . $ `lib/grn_ecmascript.c:3110:9`!rserCTX_FETCH |
| 3110 | #define TOKEN yyminor |
| 3111 | /************ Begin %syntax_error code ****************************************/ |
| 3112 | #line 180 "grn_ecmascript.lemon" |
| 3113 | |
| 3114 | { |
| 3115 | grn_ctx *ctx = efsi->ctx; |
| 3116 | grn_obj message; |
| 3117 | GRN_TEXT_INIT(&message, 0); |
| 3118 | GRN_TEXT_PUT(ctx, &message, efsi->str, efsi->cur - efsi->str); |
| 3119 | GRN_TEXT_PUTC(ctx, &message, '|'); |
| 3120 | if (efsi->cur < efsi->str_end) { |
| 3121 | GRN_TEXT_PUTC(ctx, &message, efsi->cur[0]); |
| 3122 | GRN_TEXT_PUTC(ctx, &message, '|'); |
| 3123 | GRN_TEXT_PUT(ctx, &message, |
| 3124 | efsi->cur + 1, efsi->str_end - (efsi->cur + 1)); |
| 3125 | } else { |
| 3126 | GRN_TEXT_PUTC(ctx, &message, '|'); |
| 3127 | } |
| 3128 | if (ctx->rc == GRN_SUCCESS) { |
| 3129 | ERR(GRN_SYNTAX_ERROR, "Syntax error: <%.*s>", |
| 3130 | (int)GRN_TEXT_LEN(&message), GRN_TEXT_VALUE(&message)); |
| 3131 | } else { |
| 3132 | char errbuf[GRN_CTX_MSGSIZE]; |
| 3133 | grn_strcpy(errbuf, GRN_CTX_MSGSIZE, ctx->errbuf); |
| 3134 | ERR(ctx->rc, "Syntax error: <%.*s>: %s", |
| 3135 | (int)GRN_TEXT_LEN(&message), GRN_TEXT_VALUE(&message), |
| 3136 | errbuf); |
| 3137 | } |
| 3138 | GRN_OBJ_FIN(ctx, &message); |
| 3139 | } |
| 3140 | #line 3140 "grn_ecmascript.c" |
| 3141 | /************ End %syntax_cxx . . $ `lib/grn_ecmascript.c:356:9`!error code ******************************************/ |
| 3142 | grn_expr_parserARG_STOREcxx . . $ `lib/grn_ecmascript.c:361:9`! /* Suppress warning about unused %extra_argument variable */ |
| 3143 | grn_expr_parserCTX_STORE |
| 3144 | } |
| 3145 | |
| 3146 | /* |
| 3147 | ** The following is executed when the parser accepts |
| 3148 | */ |
| 3149 | static voicxx . . $ yyParser#d yy_accept( |
| 3150 | yyParser *yypParser /* The parser */ |
| 3151 | ){ |
| 3152 | grn_expr_parserARG_FETCHcxx . . $ `lib/grn_ecmascript.c:360:9`! |
| 3153 | grn_expr_parcxx . . $ `<built-in>:418:9`!serCTX_FETCH |
| 3154 | #ifndef NDEBUG |
| 3155 | if( yyTraceFILE ){ |
| 3156 | fprintf(yyTraceFILE,"%sAccept!\n",yyTracePrompt); |
| 3157 | } |
| 3158 | #endif |
| 3159 | #ifndef YYNOERRORRECOcxx . . $ yyParser#yyerrcnt.VERY |
| 3160 | yypParser->yyerrcnt = -1; |
| 3161 | #endifcxx . . $ `/usr/include/assert.h:75:11`! |
| 3162 | assert( yypParser->yytos==yypParser->yystack ); |
| 3163 | /* Here code is inserted which will be executed whenever the |
| 3164 | ** parser accepts */ |
| 3165 | /*********** Begin %parse_accept code *****************************************/ |
| 3166 | /*********** End %parse_accxx . . $ `lib/grn_ecmascript.c:356:9`!cept code *******************************************/ |
| 3167 | grn_expr_parserARG_STOREcxx . . $ `lib/grn_ecmascript.c:361:9`! /* Suppress warning about unused %extra_argument variable */ |
| 3168 | grn_expr_parserCTX_STORE |
| 3169 | } |
| 3170 | |
| 3171 | /* The main parser program. |
| 3172 | ** The first argument is a pointer to a structure obtained from |
| 3173 | ** "grn_expr_parserAlloc" which describes the current state of the parser. |
| 3174 | ** The second argument is the major token number. The third is |
| 3175 | ** the minor token. The fourth optional argument is whatever the |
| 3176 | ** user wants (and specified in the grammar) and is available for |
| 3177 | ** use by the action routines. |
| 3178 | ** |
| 3179 | ** Inputs: |
| 3180 | ** <ul> |
| 3181 | ** <li> A pointer to the parser (an opaque structure.) |
| 3182 | ** <li> The major token number. |
| 3183 | ** <li> The minor token number. |
| 3184 | ** <li> An option argument of a grammar-specified type. |
| 3185 | ** </ul> |
| 3186 | ** |
| 3187 | ** Outputs: |
| 3188 | ** None. |
| 3189 | */ |
| 3190 | void grn_expr_parser( |
| 3191 | void *yyp, /* The parser */ |
| 3192 | int yymajor, cxx . . $ `lib/grn_ecmascript.c:343:9`! /* The major token code number */ |
| 3193 | grn_expr_parserTOKENTYPEcxx . . $ `lib/grn_ecmascript.c:353:9`! yyminor /* The value for the token */ |
| 3194 | grn_expr_parserARG_PDECL /* Optional %extra_argument parameter */ |
| 3195 | ){ |
| 3196 | YYMINORTYPE cxx . . $ `lib/grn_ecmascript.c:342:9`!yyminorunion; |
| 3197 | YYACTIONTYPE yyact; /* The parser action. */ |
| 3198 | #if !defined(YYERRORSYMBOL) && !defined(YYNOERRORRECOVERY) |
| 3199 | int yyendofinput; /* True if we are at the end of input */ |
| 3200 | #endif |
| 3201 | #ifdef YYERRORSYMBOL |
| 3202 | int yyerrorhit = 0; /* True if yymajor has invoked an error */ |
| 3203 | #endifcxx . . $ yyParser# |
| 3204 | yyParser *yypParser = (ycxx . . $ `lib/grn_ecmascript.c:360:9`!yParser*)yyp; /* The parser */ |
| 3205 | grn_expr_parserCTX_FETCHcxx . . $ `lib/grn_ecmascript.c:356:9`! |
| 3206 | grn_expr_parserARG_STORE |
| 3207 | |
| 3208 | assert( yypParser->yytos!=0 ); |
| 3209 | #if !defined(YYERRORSYMBOL) && !defined(YYNOERRORRECOVERY) |
| 3210 | yyendofinput = (yymajor==0); |
| 3211 | #endif |
| 3212 | |
| 3213 | yyact = yypPcxx . . $ `<built-in>:418:9`!arser->yytos->stateno; |
| 3214 | #ifndef NDEBUG |
| 3215 | if( yyTraceFILE ){ |
| 3216 | if( yyact < YY_MIN_REDUCE ){ |
| 3217 | fprintf(yyTraceFILE,"%sInput '%s' in state %d\n", |
| 3218 | yyTracePrompt,yyTokenName[yymajor],yyact); |
| 3219 | }else{ |
| 3220 | fprintf(yyTraceFILE,"%sInput '%s' with pending reduce %d\n", |
| 3221 | yyTracePrompt,yyTokenName[yymajor],yyact-YY_MIN_REDUCE); |
| 3222 | } |
| 3223 | } |
| 3224 | #endif |
| 3225 | |
| 3226 | while(1)cxx . . $ `/usr/include/assert.h:75:11`!{ /* Exit by "break" */ |
| 3227 | assertcxx . . $ `/usr/include/assert.h:75:11`!( yypParser->yytos>=yypParser->yystack ); |
| 3228 | assert( yyact==yypParser->yycxx . . $ yy_find_shift_action(edc5a93a09fd02b2).tos->statenocxx . . $ `lib/grn_ecmascript.c:340:9`! ); |
| 3229 | yyact = yy_find_shift_acticxx . . $ `lib/grn_ecmascript.c:372:9`!on((YYCODETYPE)yymajor,yyact); |
| 3230 | if( yyact >= YY_MIN_REDUCE ){ |
| 3231 | unsignedcxx . . $ `<built-in>:418:9`! int yyruleno = yyact - YY_MIN_REDUCE; /* Reduce by this rule */ |
| 3232 | #ifndef NDEBUG |
| 3233 | assert( yyruleno<(int)(sizeof(yyRuleName)/sizeof(yyRuleName[0])) ); |
| 3234 | if( yyTraceFILE ){ |
| 3235 | int yysize = yyRuleInfoNRhs[yyruleno]; |
| 3236 | if( yysize ){ |
| 3237 | fprintf(yyTraceFILE, "%sReduce %d [%s]%s, pop back to state %d.\n", |
| 3238 | yyTracePrompt, |
| 3239 | yyruleno, yyRuleName[yyruleno], |
| 3240 | yyruleno<YYNRULE_WITH_ACTION ? "" : " without external action", |
| 3241 | yypParser->yytos[yysize].stateno); |
| 3242 | }else{ |
| 3243 | fprintf(yyTraceFILE, "%sReduce %d [%s]%s.\n", |
| 3244 | yyTracePrompt, yyruleno, yyRuleName[yyruleno], |
| 3245 | yyruleno<YYNRULE_WITH_ACTION ? "" : " without external action"); |
| 3246 | } |
| 3247 | } |
| 3248 | #endif /* NDEBUG */ |
| 3249 | |
| 3250 | /* Check that the stack is large enough to grow by a single entry |
| 3251 | ** if the RHS of the rule is empty. This ensures that there is room |
| 3252 | ** enough on the scxx . . $ yyRuleInfoNRhs.tack to push the LHS value */ |
| 3253 | if( yyRuleInfoNRhs[yyruleno]==0 ){ |
| 3254 | #ifdef YYTRACKMAXSTACKDEPTH |
| 3255 | if( (int)(yypParser->yytos - yypParser->yystack)>yypParser->yyhwm ){ |
| 3256 | yypParser->yyhwm++; |
| 3257 | assert( yypParser->yyhwm == |
| 3258 | (int)(yypParser->yytos - yypParser->yystack)); |
| 3259 | } |
| 3260 | #endifcxx . . $ `lib/expr.c:4571:9`! |
| 3261 | #if YYSTACKDEPTH>0 |
| 3262 | if( yypParser->yytos>=yypParser->yystackEnd ){ |
| 3263 | yyStackOverflow(yypParser); |
| 3264 | break; |
| 3265 | } |
| 3266 | #else |
| 3267 | if( yypParser->yycxx . . $ yyGrowStack(d0697efab23a41e).tos>=&yypParser->yystack[yypParser->yystksz-1] ){ |
| 3268 | if( yyGrowStack(ycxx . . $ yyStackOverflow(47c25509c24d587d).ypParser) ){ |
| 3269 | yyStackOverflow(yypParser); |
| 3270 | break; |
| 3271 | } |
| 3272 | } |
| 3273 | #endif |
| 3274 | } |
| 3275 | yyact = yy_reduce(yypParser,yyrulencxx . . $ `lib/grn_ecmascript.c:368:9`!o,yymajor,yyminor grn_expr_parserCTX_PARAM); |
| 3276 | }else if( cxx . . $ yy_shift(90c7ff975b6a66c1).yyact <= YY_MAX_SHIFTREDUCE cxx . . $ `lib/grn_ecmascript.c:340:9`!){ |
| 3277 | yy_shift(yypParser,yyact,(YYCODETYPE)yymajor,yyminor); |
| 3278 | #ifndef YYNOERRORRECOVERYcxx . . $ yyParser#yyerrcnt. |
| 3279 | yypParser->yyerrcnt--; |
| 3280 | #endif |
| 3281 | break; |
| 3282 | }else if( yyact==Ycxx . . $ yyParser#yytos.Y_ACCEPT_ACTION ){ |
| 3283 | yypParsercxx . . $ yy_accept(47c25509c24d587d).->yytos--; |
| 3284 | yy_accept(yypParser); |
| 3285 | return; |
| 3286 | }else{cxx . . $ `/usr/include/assert.h:75:11`! |
| 3287 | assert( yyact ==cxx . . $ $anonymous_type_d3a40ffe8691b635_0#yy0. YY_ERROR_ACTION ); |
| 3288 | yyminorunion.yy0 = yyminor; |
| 3289 | #ifdef YYERRORSYMBOL |
| 3290 | int yymx; |
| 3291 | #endif |
| 3292 | #ifndef NDEBUG |
| 3293 | if( yyTraceFILE ){ |
| 3294 | fprintf(yyTraceFILE,"%sSyntax Error!\n",yyTracePrompt); |
| 3295 | } |
| 3296 | #endif |
| 3297 | #ifdef YYERRORSYMBOL |
| 3298 | /* A syntax error has occurred. |
| 3299 | ** The response to an error depends upon whether or not the |
| 3300 | ** grammar defines an error token "ERROR". |
| 3301 | ** |
| 3302 | ** This is what we do if the grammar does define ERROR: |
| 3303 | ** |
| 3304 | ** * Call the %syntax_error function. |
| 3305 | ** |
| 3306 | ** * Begin popping the stack until we enter a state where |
| 3307 | ** it is legal to shift the error symbol, then shift |
| 3308 | ** the error symbol. |
| 3309 | ** |
| 3310 | ** * Set the error count to three. |
| 3311 | ** |
| 3312 | ** * Begin accepting and shifting new tokens. No new error |
| 3313 | ** processing will occur until three tokens have been |
| 3314 | ** shifted successfully. |
| 3315 | ** |
| 3316 | */ |
| 3317 | if( yypParser->yyerrcnt<0 ){ |
| 3318 | yy_syntax_error(yypParser,yymajor,yyminor); |
| 3319 | } |
| 3320 | yymx = yypParser->yytos->major; |
| 3321 | if( yymx==YYERRORSYMBOL || yyerrorhit ){ |
| 3322 | #ifndef NDEBUG |
| 3323 | if( yyTraceFILE ){ |
| 3324 | fprintf(yyTraceFILE,"%sDiscard input token %s\n", |
| 3325 | yyTracePrompt,yyTokenName[yymajor]); |
| 3326 | } |
| 3327 | #endif |
| 3328 | yy_destructor(yypParser, (YYCODETYPE)yymajor, &yyminorunion); |
| 3329 | yymajor = YYNOCODE; |
| 3330 | }else{ |
| 3331 | while( yypParser->yytos > yypParser->yystack ){ |
| 3332 | yyact = yy_find_reduce_action(yypParser->yytos->stateno, |
| 3333 | YYERRORSYMBOL); |
| 3334 | if( yyact<=YY_MAX_SHIFTREDUCE ) break; |
| 3335 | yy_pop_parser_stack(yypParser); |
| 3336 | } |
| 3337 | if( yypParser->yytos <= yypParser->yystack || yymajor==0 ){ |
| 3338 | yy_destructor(yypParser,(YYCODETYPE)yymajor,&yyminorunion); |
| 3339 | yy_parse_failed(yypParser); |
| 3340 | #ifndef YYNOERRORRECOVERY |
| 3341 | yypParser->yyerrcnt = -1; |
| 3342 | #endif |
| 3343 | yymajor = YYNOCODE; |
| 3344 | }else if( yymx!=YYERRORSYMBOL ){ |
| 3345 | yy_shift(yypParser,yyact,YYERRORSYMBOL,yyminor); |
| 3346 | } |
| 3347 | } |
| 3348 | yypParser->yyerrcnt = 3; |
| 3349 | yyerrorhit = 1; |
| 3350 | if( yymajor==YYNOCODE ) break; |
| 3351 | yyact = yypParser->yytos->stateno; |
| 3352 | #elif defined(YYNOERRORRECOVERY) |
| 3353 | /* If the YYNOERRORRECOVERY macro is defined, then do not attempt to |
| 3354 | ** do any kind of error recovery. Instead, simply invoke the syntax |
| 3355 | ** error routine and continue going as if nothing had happened. |
| 3356 | ** |
| 3357 | ** Applications can set this macro (for example inside %include) if |
| 3358 | ** they intend to abandon the parse upon the first syntax error seen. |
| 3359 | */ |
| 3360 | yy_syntax_error(yypParser,yymajor, yyminor); |
| 3361 | yy_destructor(yypParser,(YYCODETYPE)yymajor,&yyminorunion); |
| 3362 | break; |
| 3363 | #else /* YYERRORSYMBOL is not defined */ |
| 3364 | /* This is what we do if the grammar does not define ERROR: |
| 3365 | ** |
| 3366 | ** * Report an error message, and throw away the input token. |
| 3367 | ** |
| 3368 | ** * If the input token is $, then fail the parse. |
| 3369 | ** |
| 3370 | ** As before, subsequent error messages are suppressed until |
| 3371 | ** three input tokens have been successfully shifted. |
| 3372 | */ |
| 3373 | if( yypParser->yycxx . . $ yy_syntax_error(347fecae51db433f).errcnt<=0 ){ |
| 3374 | yy_syntax_error(yypParser,yymajor, yyminor); |
| 3375 | } |
| 3376 | yypParser->yycxx . . $ yy_destructor(84718a4d7c7a16d5).errcnt = 3; |
| 3377 | yy_destructor(yypParser,(YYCODETYPE)yymajor,&yyminorunion); |
| 3378 | if( yyendofinput cxx . . $ yy_parse_failed(47c25509c24d587d).){ |
| 3379 | yy_parse_failed(yypParser); |
| 3380 | #ifndef YYNOERRORRECOVERYcxx . . $ yyParser#yyerrcnt. |
| 3381 | yypParser->yyerrcnt = -1; |
| 3382 | #endif |
| 3383 | } |
| 3384 | break; |
| 3385 | #endif |
| 3386 | } |
| 3387 | } |
| 3388 | #ifndef NDEBUG |
| 3389 | if( yyTraceFILE ){ |
| 3390 | yyStackEntry *i; |
| 3391 | char cDiv = '['; |
| 3392 | fprintf(yyTraceFILE,"%sReturn. Stack=",yyTracePrompt); |
| 3393 | for(i=&yypParser->yystack[1]; i<=yypParser->yytos; i++){ |
| 3394 | fprintf(yyTraceFILE,"%c%s", cDiv, yyTokenName[i->major]); |
| 3395 | cDiv = ' '; |
| 3396 | } |
| 3397 | fprintf(yyTraceFILE,"]\n"); |
| 3398 | } |
| 3399 | #endif |
| 3400 | return; |
| 3401 | } |
| 3402 | |
| 3403 | /* |
| 3404 | ** Return the fallback token corresponding to canonical token iToken, or |
| 3405 | ** 0 if iToken has no fallback. |
| 3406 | */ |
| 3407 | int grn_expr_parserFallback(int iToken){ |
| 3408 | #ifdef YYFALLBACK |
| 3409 | assert( iToken<(int)(sizeof(yyFallback)/sizeof(yyFallback[0])) ); |
| 3410 | return yyFallback[iToken]; |
| 3411 | #else |
| 3412 | (void)iToken; |
| 3413 | return 0; |
| 3414 | #endif |
| 3415 | } |