Skip to content
/ bifcl Public

Built-In-Function (BIF) Compiler/Generator for Zeek

License

Notifications You must be signed in to change notification settings

zeek/bifcl

Folders and files

NameName
Last commit message
Last commit date
Nov 29, 2022
Jun 5, 2024
Dec 13, 2024
Oct 30, 2023
Oct 30, 2023
Oct 30, 2023
Jul 12, 2018
Oct 26, 2022
Oct 30, 2023
Mar 7, 2025
Oct 30, 2023
Jul 12, 2018
Jun 22, 2022
May 17, 2019
Mar 7, 2025
Oct 30, 2023
Mar 7, 2025
Jan 17, 2024
Oct 18, 2022
Oct 30, 2023

Repository files navigation

.. _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.