mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 09:41:54 +00:00
It is good idea to separate entries in list _somehow_. Adding/deleting
to community lists from filters now works.
This commit is contained in:
parent
991c36b509
commit
4444ed2b26
@ -426,8 +426,8 @@ term:
|
||||
| '+' EMPTY '+' { $$ = f_new_inst(); $$->code = 'E'; $$->aux = T_PATH; }
|
||||
| '-' EMPTY '-' { $$ = f_new_inst(); $$->code = 'E'; $$->aux = T_CLIST; }
|
||||
| PREPEND '(' term ',' term ')' { $$ = f_new_inst(); $$->code = P('A','p'); $$->a1.p = $3; $$->a2.p = $5; }
|
||||
/* | ADD '(' term, ',' term ')' { $$ = f_new_inst(); $$->code = P('C','a'); $$->a1.p = $3; $$->a2.p = $5; $$->aux = 'a'; }
|
||||
| DELETE '(' term, ',' term ')' { $$ = f_new_inst(); $$->code = P('C','a'); $$->a1.p = $3; $$->a2.p = $5; $$->aux = 'd'; } */
|
||||
| ADD '(' term ',' term ')' { $$ = f_new_inst(); $$->code = P('C','a'); $$->a1.p = $3; $$->a2.p = $5; $$->aux = 'a'; }
|
||||
| DELETE '(' term ',' term ')' { $$ = f_new_inst(); $$->code = P('C','a'); $$->a1.p = $3; $$->a2.p = $5; $$->aux = 'd'; }
|
||||
|
||||
|
||||
/* | term '.' LEN { $$->code = P('P','l'); } */
|
||||
|
@ -50,7 +50,10 @@ clist l;
|
||||
|
||||
l = - empty -;
|
||||
l = add( l, (1,2) );
|
||||
print "Community list ", l;
|
||||
l = add( l, (2,3) );
|
||||
print "Community list (1,2) (2,3) ", l;
|
||||
l = delete( l, (2,3) );
|
||||
print "Community list (1,2) ", l;
|
||||
}
|
||||
|
||||
function startup()
|
||||
|
Loading…
Reference in New Issue
Block a user