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
2 changed files with 6 additions and 3 deletions
|
@ -426,8 +426,8 @@ term:
|
||||||
| '+' EMPTY '+' { $$ = f_new_inst(); $$->code = 'E'; $$->aux = T_PATH; }
|
| '+' EMPTY '+' { $$ = f_new_inst(); $$->code = 'E'; $$->aux = T_PATH; }
|
||||||
| '-' EMPTY '-' { $$ = f_new_inst(); $$->code = 'E'; $$->aux = T_CLIST; }
|
| '-' 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; }
|
| 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'; }
|
| 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'; } */
|
| DELETE '(' term ',' term ')' { $$ = f_new_inst(); $$->code = P('C','a'); $$->a1.p = $3; $$->a2.p = $5; $$->aux = 'd'; }
|
||||||
|
|
||||||
|
|
||||||
/* | term '.' LEN { $$->code = P('P','l'); } */
|
/* | term '.' LEN { $$->code = P('P','l'); } */
|
||||||
|
|
|
@ -50,7 +50,10 @@ clist l;
|
||||||
|
|
||||||
l = - empty -;
|
l = - empty -;
|
||||||
l = add( l, (1,2) );
|
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()
|
function startup()
|
||||||
|
|
Loading…
Reference in a new issue