idyll-grammar
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "idyll-grammar", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "A nearley.js generated grammar for Idyll", | ||
@@ -5,0 +5,0 @@ "main": "grammar.js", |
# idyll-grammar | ||
A nearley.js generated grammar for Idyll | ||
## Install | ||
``` | ||
npm install idyll-grammar | ||
``` | ||
## Usage | ||
```js | ||
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; | ||
``` |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
17640
23
1