0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-22 09:41:54 +00:00
bird/filter
Ondrej Zajicek (work) 1ac8e11bba Filter: Implement mixed declarations of local variables
Allow variable declarations mixed with code, also in nested blocks with
proper scoping, and with variable initializers. E.g:

function fn(int a)
{
  int b;
  int c = 10;

  if a > 20 then
  {
    b = 30;
    int d = c * 2;
    print a, b, c, d;
  }

  string s = "Hello";
}
2022-06-27 21:13:32 +02:00
..
config.Y Filter: Implement mixed declarations of local variables 2022-06-27 21:13:32 +02:00
data.c Filter: Apply constant promotion for FI_EQ / FI_NEQ 2022-06-27 21:13:31 +02:00
data.h Filter: Add literal for empty set 2022-06-27 21:13:31 +02:00
decl.m4 Filter: Improve handling of stack frames in filter bytecode 2022-06-27 21:13:32 +02:00
Doc Doc: Rename code documentation files back to Doc 2018-12-14 02:03:42 +01:00
f-inst.c Filter: Implement mixed declarations of local variables 2022-06-27 21:13:32 +02:00
f-inst.h Filter: Improve handling of stack frames in filter bytecode 2022-06-27 21:13:32 +02:00
f-util.c Filter: Improve handling of stack frames in filter bytecode 2022-06-27 21:13:32 +02:00
filter_test.c Test: Improve filter_test 2019-12-17 00:01:53 +01:00
filter.c Filter: Improve handling of stack frames in filter bytecode 2022-06-27 21:13:32 +02:00
filter.h Filter: Remove quitbird command 2020-05-02 02:47:18 +02:00
Makefile Filter: Pre-evaluation of constant expressions 2019-07-02 10:45:53 +02:00
test-reconf-begin.conf Filters: comparison of functions and filters caching 2019-02-26 16:44:24 +01:00
test-reconf-end.conf Filters: comparison of functions and filters caching 2019-02-26 16:44:24 +01:00
test.conf Filter: Implement mixed declarations of local variables 2022-06-27 21:13:32 +02:00
test.conf2 Filter: Remove quitbird command 2020-05-02 02:47:18 +02:00
test.conf.inc filter/test.conf: Replace print func with assert and format 2016-11-16 12:22:01 +01:00
tree_test.c Filter: merged filter instruction constructors, counting line size on instruction construct 2019-02-20 22:30:54 +01:00
tree.c Filter: Recursive filter iteration code 2021-02-07 19:21:42 +01:00
trie_test.c Merge branch 'oz-trie-table' 2022-02-06 23:42:10 +01:00
trie.c Trie: Fix trie format 2022-02-06 23:27:13 +01:00