idyll-grammar
v1.0.1
Published
A nearley.js generated grammar for Idyll
Downloads
6
Readme
idyll-grammar
A nearley.js generated grammar for Idyll
Install
npm install idyll-grammar
Usage
const grammar = require('idyll-grammar');
const nearley = require("nearley");
// Create a Parser object from our grammar.
const p = new nearley.Parser(grammar.ParserRules, grammar.ParserStart);
// Parse something
p.feed(inputString);
const results = p.results;