Preparing for system design interviews?  Try bugzed.com →

BNF Parser

JSON →
library 4.1.3 ·javascript
verified Jun 17, 2026

bnf-parser is a deterministic compiler/parser library for Backus-Naur Form (BNF) grammars, currently at version 4.1.3. It differentiates itself by compiling BNF definitions directly into WebAssembly modules, enabling high-performance parsing. This compilation process also generates TypeScript type definitions for the resulting Abstract Syntax Tree (AST), making it easier to work with parsed outputs in type-safe environments. The compiled WebAssembly artifacts are platform-agnostic, capable of running wherever `WebAssembly.Instance()` is supported, and are bundled into a single JavaScript file for easy integration with bundlers. The library primarily functions as a `devDependency`, with its `bnf-compile` CLI tool generating standalone parser artifacts that do not require `bnf-parser` as a runtime dependency. Releases appear to be frequent, with several patch versions addressing memory management, compatibility, and bug fixes since the major v4.0.0 release.

total hits 16
actors 4 distinct systems
last hit 18d ago ByteDance
ByteDance
7
GPTBot
4
Script
1

top countries 🇸🇬 Singapore · 🇨🇦 Canada · 🇺🇸 United States · 🇩🇪 Germany