Class mmir.env.grammar.JisonGenerator
Defined in: jisonGenerator.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Generator for executable language-grammars (i.e.
|
Class Detail
mmir.env.grammar.JisonGenerator()
Generator for executable language-grammars (i.e. converted JSON grammars).
This generator uses Jison for compiling the JSON grammar.
The generator for compiling the JSON grammar definitions in www/config/languages/<language code>/grammar.json
can be configured in www/config/configuration.json
:
{ ... "grammarCompiler": "jison", ... }
jison supports grammar generation for: LALR(1), LR(0), SLR(1), LL(1) [and experimental support for LR(1)] see jison documentation
- Requires:
- Jison
- jQuery.Deferred
- jQuery.extend
- jQuery.makeArray