@formal-language/grammar

Grammar compilation toolkit for JavaScript

Usage no npm install needed!

<script type="module">
  import formalLanguageGrammar from 'https://cdn.skypack.dev/@formal-language/grammar';
</script>

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);

License Version Tests Dependencies GitHub issues Downloads

Code issues Code maintainability Code coverage (cov) Code technical debt Documentation Package size