cli: gather all found items through a callback function
[project/jsonpath.git] / parser.y
index acca9e1..75c3340 100644 (file)
--- a/parser.y
+++ b/parser.y
@@ -41,7 +41,7 @@ void yyerror(struct jp_state *s, const char *msg);
 %parse-param { struct jp_state *s }
 %lex-param { struct jp_state *s }
 
-%code provides {
+%code requires {
 
 #ifndef __PARSER_H_
 #define __PARSER_H_
@@ -59,6 +59,7 @@ struct jp_state {
        struct jp_opcode *pool;
        struct jp_opcode *path;
        const char *error;
+       char str_quote;
        char str_buf[128];
        char *str_ptr;
 };