mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
![]() This is based on commit 5947749f7850b075f11d6a2aaefe7dad4f63cb62f from the bifcl repository. |
||
---|---|---|
.. | ||
include | ||
bif_arg.cc | ||
builtin-func.l | ||
builtin-func.y | ||
CMakeLists.txt | ||
module_util.cc | ||
README |
.. _Zeek: https://www.zeek.org ================= Zeek BIF Compiler ================= The ``bifcl`` program simply takes a ``.bif`` file as input and generates C++ header/source files along with a ``.zeek`` script that all-together provide the declaration and implementation of Zeek_ Built-In-Functions (BIFs), which can then be compiled and shipped as part of a Zeek plugin. A BIF allows one to write arbitrary C++ code and access it via a function call inside a Zeek script. In this way, they can also be used to access parts of Zeek's internal C++ API that aren't already exposed via their own BIFs. At the moment, learning the format of a ``.bif`` file is likely easiest by just taking a look at the ``.bif`` files inside the Zeek source-tree.