File tree 4 files changed +13
-13
lines changed
4 files changed +13
-13
lines changed Original file line number Diff line number Diff line change 1
- .. _Bro : https://bro .org
1
+ .. _Zeek : https://www.zeek .org
2
2
3
- ================
4
- Bro BIF Compiler
5
- ================
3
+ =================
4
+ Zeek BIF Compiler
5
+ =================
6
6
7
7
The ``bifcl`` program simply takes a ``.bif`` file as input and
8
8
generates C++ header/source files along with a ``.zeek`` script
9
- that all-together provide the declaration and implementation of Bro_
9
+ that all-together provide the declaration and implementation of Zeek_
10
10
Built-In-Functions (BIFs), which can then be compiled and shipped
11
- as part of a Bro plugin.
11
+ as part of a Zeek plugin.
12
12
13
13
A BIF allows one to write arbitrary C++ code and access it via a
14
- function call inside a Bro script. In this way, they can also be
15
- used to access parts of Bro 's internal C++ API that aren't already
14
+ function call inside a Zeek script. In this way, they can also be
15
+ used to access parts of Zeek 's internal C++ API that aren't already
16
16
exposed via their own BIFs.
17
17
18
18
At the moment, learning the format of a ``.bif`` file is likely easiest
19
- by just taking a look at the ``.bif`` files inside the Bro source-tree.
19
+ by just taking a look at the ``.bif`` files inside the Zeek source-tree.
Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ HEX [0-9a-fA-F]+
105
105
106
106
/*
107
107
Hacky way to pass along arbitrary attribute expressions since the BIF parser
108
- has little understanding of valid Bro expressions. With this pattern, the
108
+ has little understanding of valid Zeek expressions. With this pattern, the
109
109
attribute expression should stop when it reaches another attribute, another
110
110
function argument, or the end of the function declaration.
111
111
*/
Original file line number Diff line number Diff line change @@ -337,7 +337,7 @@ module_def: TOK_MODULE opt_ws TOK_ID opt_ws ';'
337
337
// the type. One still has to define the type in bro.init.
338
338
// Would be nice , if we could just define the record type here
339
339
// and then copy to the .bif.zeek file , but type declarations in
340
- // Bro can be quite powerful. Don ' t know whether it' s worth it
340
+ // Zeek can be quite powerful. Don ' t know whether it' s worth it
341
341
// extend the bif-language to be able to handle that all....
342
342
// Or we just support a simple form of record type definitions
343
343
// TODO : add other types (tables , sets )
@@ -596,7 +596,7 @@ args_1: args_1 ',' opt_ws arg opt_ws opt_attr_list
596
596
;
597
597
598
598
// TODO: Migrate all other compound types to this rule. Once the BiF language
599
- // can parse all regular Bro types, we can throw out the unnecessary
599
+ // can parse all regular Zeek types, we can throw out the unnecessary
600
600
// boilerplate typedefs for addr_set, string_set, etc.
601
601
type :
602
602
TOK_OPAQUE opt_ws TOK_OF opt_ws TOK_ID
Original file line number Diff line number Diff line change 1
1
//
2
- // These functions are used by both Bro and bifcl.
2
+ // These functions are used by both Zeek and bifcl.
3
3
//
4
4
5
5
#include < string>
You can’t perform that action at this time.
0 commit comments