A JavaScript parser generator with a Bison-compatible API for creating bottom-up parsers from JSON or Bison-style grammars.
Jison is a parser generator for JavaScript that creates bottom-up parsers from context-free grammars. It takes JSON-encoded or Bison-style grammar definitions and outputs JavaScript code capable of parsing languages described by those grammars. This enables developers to build custom parsers for domain-specific languages, configuration formats, or expression evaluators directly in their JavaScript projects.
JavaScript developers who need to create custom parsers for domain-specific languages, configuration files, or expression evaluation. It's particularly useful for those familiar with traditional parser generators like Bison who want similar functionality in JavaScript.
Jison provides a familiar Bison-like API in JavaScript, lowering the barrier to parser creation while maintaining compatibility with established parsing concepts. Its dual grammar format support and flexible output options make it versatile for both educational purposes and production use.
Bison in JavaScript.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Provides a familiar interface for developers experienced with traditional parser generators like Bison, easing the transition to JavaScript parsing, as highlighted in the README.
Accepts both JSON-encoded and Bison-style grammar formats, offering flexibility in how grammars are defined and maintained, as mentioned in the key features.
Supports multiple parsing algorithms (LR(0), SLR, LALR, LR), allowing users to optimize for different grammar complexities via command-line or API options.
Generates parsers as standalone JavaScript files or enables programmatic use, catering to various integration needs, with module formats like CommonJS and AMD.
Requires prior knowledge of parser generator concepts and grammar syntax, making it inaccessible for developers new to the field, as the README directs users to Bison manuals for basics.
The project's last significant update was around 2014, which may lead to compatibility issues with modern JavaScript environments and lack of new features or security patches.
Has a smaller community and fewer examples compared to newer tools, as indicated by the wiki list of projects, potentially slowing down troubleshooting and adoption.