{"library":"ebnf","type":"library","category":null,"description":"The `ebnf` package provides a JavaScript and TypeScript-compatible library for generating Abstract Syntax Tree (AST) parsers from formal grammars defined in either Backus-Naur Form (BNF) or W3C Extended Backus-Naur Form (EBNF). It is currently at version 1.9.1. The library differentiates itself by offering direct AST generation, browser compatibility, and built-in TypeScript type definitions, making it suitable for both Node.js and client-side applications. Releases appear to be driven by bug fixes and minor improvements, without a strict time-based cadence. It's particularly useful for projects requiring custom language parsing or syntax highlighting, such as Domain Specific Languages (DSLs) or code analysis tools.","language":"javascript","status":"active","version":"1.9.1","tags":["javascript","EBNF","AST","Parser","Grammar","Lexer","Syntax","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install ebnf","imports":["import { Grammars } from 'ebnf';","import { Grammars } from 'ebnf';\nconst bnfParser = new Grammars.BNF.Parser(bnfGrammar);","import { Grammars } from 'ebnf';\nconst w3cParser = new Grammars.W3C.Parser(w3cGrammar);"]},{"cmd":"yarn add ebnf","imports":[]},{"cmd":"pnpm add ebnf","imports":[]}],"homepage":null,"github":"https://github.com/menduz/node-ebnf","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/ebnf","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/ebnf/compatibility"}}