{"library":"bnf","type":"library","category":null,"description":"BNF is a JavaScript library for compiling, parsing, and interpreting BNF and ABNF grammars. Version 1.0.1 uses ECMAScript 6+ and supports inline compilation of grammars, predefined rules (e.g., DIGIT, CRLF, LITERAL), rule events, and multi-language scripts (planned). It runs on Node.js. Unlike other parser generators (e.g., PEG.js, ANTLR), BNF focuses on simplicity and direct embedding of BNF/ABNF syntax without a separate generation step. The library is in early development, with custom rule APIs subject to change.","language":"javascript","status":"active","version":"1.0.1","tags":["javascript","parser","interpreter","compiler","bnf","lexical"],"last_verified":"Fri May 01","install":[{"cmd":"npm install bnf","imports":["import { Compiler } from 'bnf'","import { BNF } from 'bnf'","import { ABNF } from 'bnf'"]},{"cmd":"yarn add bnf","imports":[]},{"cmd":"pnpm add bnf","imports":[]}],"homepage":null,"github":"https://github.com/navstev0/nodebnf","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/bnf","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}