0.5.0 • Published 2 years ago

easygram v0.5.0

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

This package is a thin wrapper around the ebnf package by menduz.

It locks a version and exposes the usage that I most often use, I got tired of looking up which variant allows {ws=implicit} and other minor details.

const read = require('easygram')(`
    <your grammar>
`)
const ast = read('<string to parse')

This is the same as:

const enbf = require('ebnf')
const rules = ebnf.Grammars.Custom.getRules(`
    <your grammar>
`)
const parser = new ebnf.Parser(rules)
const ast = ser.getAst(s)

The inner package is at _ebnf:

const { _ebnf} = require('easygram')
0.5.0

2 years ago

0.4.0

2 years ago

0.3.0

2 years ago

0.2.0

2 years ago

0.1.0

2 years ago