Skip to content

Commit

Permalink
ra: fix bison warnings
Browse files Browse the repository at this point in the history
Signed-off-by: Jesse Rittner <[email protected]>
  • Loading branch information
rittneje authored and edsiper committed Nov 22, 2021
1 parent 3b9a2e7 commit 766c63f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
1 change: 0 additions & 1 deletion src/record_accessor/ra.l
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ static inline char *remove_dup_quotes(const char *s, size_t n)
"." |
"," |
";" { return yytext[0]; }
\' return QUOTE;
\n
[ \t]+ /* ignore whitespace */;

Expand Down
10 changes: 4 additions & 6 deletions src/record_accessor/ra.y
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
%define api.pure full
%name-prefix="flb_ra_"
%name-prefix "flb_ra_"

%parse-param { struct flb_ra_parser *rp };
%parse-param { const char *str };
Expand Down Expand Up @@ -33,8 +33,7 @@ void flb_ra_error(struct flb_ra_parser *rp, const char *query, void *scanner,
/* Known Tokens (refer to sql.l) */

/* Keywords */
%token IDENTIFIER QUOTE QUOTED
%token STRING INTEGER
%token IDENTIFIER STRING INTEGER

%define parse.error verbose

Expand Down Expand Up @@ -85,7 +84,8 @@ record_accessor: record_key
}
flb_free($2);
}
record_subkey:
record_subkey: record_subkey record_subkey_index | record_subkey_index
record_subkey_index:
'[' STRING ']'
{
flb_ra_parser_subentry_add_string(rp, $2);
Expand All @@ -96,6 +96,4 @@ record_accessor: record_key
{
flb_ra_parser_subentry_add_array_id(rp, $2);
}
|
record_subkey record_subkey
;

0 comments on commit 766c63f

Please sign in to comment.