@formal-language/grammar
v9.1.1
Published
Grammar compilation toolkit for JavaScript
Downloads
302
Readme
:fountain_pen: @formal-language/grammar
Grammar compilation toolkit for JavaScript. Served with asynchronous goodness. See docs.
:warning: Depending on your environment, the code may require
regeneratorRuntime
to be defined, for instance by importing regenerator-runtime/runtime.
const G = grammar.from( { root , start , eof , productions } ) ;
const parser = ll1.from(G);