1
0
mirror of https://gitlab.labs.nic.cz/labs/bird.git synced 2024-05-11 16:54:54 +00:00

Filter: The for loop uses the method system for type dispatch

This commit is contained in:
Maria Matejka
2023-06-18 22:50:45 +02:00
committed by Ondrej Zajicek
parent 1d38726c64
commit 21faa54ec3
6 changed files with 85 additions and 72 deletions

View File

@@ -1008,8 +1008,7 @@ cmd:
{ new_config->current_scope->active = 0; } term { new_config->current_scope->active = 1; }
DO cmd {
cf_pop_block_scope(new_config);
$$ = f_new_inst(FI_FOR_INIT, $6, $3);
$$->next = f_new_inst(FI_FOR_NEXT, $3, $9);
$$ = f_for_cycle($3, $6, $9);
}
| symbol_known '=' term ';' {
switch ($1->class) {