
Product
Introducing Webhook Events for Alert Changes
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.
tree-sitter-zeek
Advanced tools
A Zeek grammar for tree-sitter.
This grammar parses scripts written in the Zeek scripting language.
The goal of this grammar is to facilitate tooling around Zeek
scripts. For that reason, its structure resembles Zeek's grammar but differs in
a number of ways. For example, it tracks newlines explicitly and relies more
strongly on precedence and associativity to resolve ambiguities. Like Zeek's
parser, this one currently doesn't name symbols deeply: for example, the grammar
features an expr rule that covers any kind of expression, but the choices
aren't currently broken down into, say, addition_expr, or_expr, and
similars.
To use the generated parser directly (e.g. via any of tree-sitter's
language bindings),
clone this repository recursively. Generated sources are tracked in the
src directory. You do not need the tree-sitter CLI to use those
sources in your tooling, but you'll likely want it anyway to explore the parser.
For example, tree-sitter parse <script> produces the script's syntax tree, and
tree-sitter highlight <script> shows syntax-highlighted sources.
tree-sitter generate.There's currently no tree-sitter test testsuite. Instead, a test driver runs
the parser on every Zeek script in the Zeek distribution, reporting any
errors. For CI, a Github Action workflow additionally clones the Zeek tree prior
to running this test, to ensure that those Zeek scripts are available.
To release a new version manually update the version number in the following ecosystem-specific files:
package.json: key version
package-lock.json: update package.json and run npm install to update the lock file.pyproject.toml: key project.versionCargo.toml: key package.versiontree-sitter.json: key metadata.versionCMakeLists.txt: VERSION in project callOnce all versions are consistently updated create a version tag vX.Y.Z and
push it. We trigger automatic publishing of releases for all tags.
FAQs
Zeek grammar for tree-sitter
We found that tree-sitter-zeek demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.