jison lib is used by mermaid.js
mermaid/flow.jison at develop · mermaid-js/mermaid
mermaid/stateDiagram.jison at develop · mermaid-js/mermaid
mermaid/stateRenderer.js at develop · mermaid-js/mermaid
zaach/jison: Bison in JavaScript. @GitHub
Jison generates bottom-up parsers in JavaScript. Its API is similar to Bison's, hence the name. It supports many of Bison's major features, plus some of its own. If you are new to parser generators such as Bison, and Context-free Grammars in general, a good introduction is found in the Bison manual. If you already know Bison, Jison should be easy to pickup.
Briefly, Jison takes a JSON encoded grammar or Bison style grammar and outputs a JavaScript file capable of parsing the language described by that grammar. You can then use the generated script to parse inputs and accept, reject, or perform actions based on the input.
No comments:
Post a Comment