From 2725e5e2024c134f05fd73baccda696572a24335 Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Wed, 8 Oct 2014 22:29:57 +0200 Subject: [PATCH] frontend/grammary.y: Renamed 'op' to 'cmp'. That's a better name ;-) --- src/frontend/grammar.y | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/frontend/grammar.y b/src/frontend/grammar.y index 9cf98ee..3a78d24 100644 --- a/src/frontend/grammar.y +++ b/src/frontend/grammar.y @@ -132,7 +132,7 @@ sdb_fe_yyerror(YYLTYPE *lval, sdb_fe_yyscan_t scanner, const char *msg); %type expression -%type op +%type cmp %type data interval interval_elem @@ -393,26 +393,26 @@ matcher: ; /* - * . + * . * * Parse matchers comparing object attributes with a value. */ compare_matcher: - '.' IDENTIFIER op expression + '.' IDENTIFIER cmp expression { $$ = sdb_store_matcher_parse_field_cmp($2, $3, $4); free($2); $2 = NULL; sdb_object_deref(SDB_OBJ($4)); } | - IDENTIFIER op expression + IDENTIFIER cmp expression { $$ = sdb_store_matcher_parse_cmp($1, NULL, $2, $3); free($1); $1 = NULL; sdb_object_deref(SDB_OBJ($3)); } | - IDENTIFIER '[' IDENTIFIER ']' op expression + IDENTIFIER '[' IDENTIFIER ']' cmp expression { $$ = sdb_store_matcher_parse_cmp($1, $3, $5, $6); free($1); $1 = NULL; @@ -495,7 +495,7 @@ expression: } ; -op: +cmp: CMP_EQUAL { $$ = "="; } | CMP_NEQUAL { $$ = "!="; } -- 2.30.2