From afc54517db6946e9cfb62bbdc855954316152c62 Mon Sep 17 00:00:00 2001 From: Pavel Machek Date: Mon, 17 Apr 2000 10:16:47 +0000 Subject: Prepend and creation of empty path should work, but it has strange syntax for now. --- filter/config.Y | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'filter/config.Y') diff --git a/filter/config.Y b/filter/config.Y index ebb2e4b..a4c1392 100644 --- a/filter/config.Y +++ b/filter/config.Y @@ -73,6 +73,7 @@ CF_KEYWORDS(FUNCTION, PRINT, PRINTN, UNSET, RETURN, DEFINED, ADD, DELETE, CONTAINS, RESET, APPEND, MATCH, + EMPTY, FILTER, WHERE) %nonassoc THEN @@ -418,6 +419,9 @@ term: /* Paths */ | term '.' APPEND '(' term ')' { } | term '.' RESET { } + + | EMPTY { $$ = f_new_inst(); $$->code = 'E'; $$->aux = T_PATH; } + /* | term '.' LEN { $$->code = P('P','l'); } */ /* function_call is inlined here */ -- cgit v1.2.3