// data is a pointer to a 'SParserParam' structure
//#define YYPARSE_PARAM parser_ctx
-// the argument for the 'yylex' function
-#define YYLEX_PARAM ((struct filter_parser_ctx *) parser_ctx)->scanner
-
#ifndef YY_TYPEDEF_YY_SCANNER_T
#define YY_TYPEDEF_YY_SCANNER_T
typedef void* yyscan_t;
AST_LINK_UNKNOWN = 0,
AST_LINK_DOT,
AST_LINK_RARROW,
+ AST_LINK_BRACKET,
};
struct filter_node {
*/
struct filter_node *child;
} u;
- /* linked dot/arrow chain */
+ /* prev: linked dot/arrow chain (postfix expression) */
struct filter_node *prev;
+ /* next: linked bracket chain (prefix expression) */
struct filter_node *next;
} expression;
struct {
void filter_bytecode_free(struct filter_parser_ctx *ctx);
int filter_visitor_ir_check_binary_op_nesting(struct filter_parser_ctx *ctx);
int filter_visitor_ir_check_binary_comparator(struct filter_parser_ctx *ctx);
+int filter_visitor_ir_validate_string(struct filter_parser_ctx *ctx);
+int filter_visitor_ir_normalize_glob_patterns(struct filter_parser_ctx *ctx);
+int filter_visitor_ir_validate_globbing(struct filter_parser_ctx *ctx);
#endif /* _FILTER_AST_H */