diff options
author | Pavel Machek <pavel@ucw.cz> | 2000-04-17 12:16:47 +0200 |
---|---|---|
committer | Pavel Machek <pavel@ucw.cz> | 2000-04-17 12:16:47 +0200 |
commit | afc54517db6946e9cfb62bbdc855954316152c62 (patch) | |
tree | f3c52757df7f273f77a6493617860f7d0a160d15 /filter/config.Y | |
parent | f421cfdd80cfce7d1ec4759c603e47071eb028f8 (diff) | |
download | bird-afc54517db6946e9cfb62bbdc855954316152c62.tar bird-afc54517db6946e9cfb62bbdc855954316152c62.zip |
Prepend and creation of empty path should work, but it has strange
syntax for now.
Diffstat (limited to 'filter/config.Y')
-rw-r--r-- | filter/config.Y | 4 |
1 files changed, 4 insertions, 0 deletions
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 */ |