npm.io
1.0.0 • Published 3 years ago

gekr

Licence
MIT
Version
1.0.0
Deps
1
Size
89 kB
Vulns
0
Weekly
0

Gekr

Gekr is a generic library for defining parsers, specifically programming or domain specific languages. The included operations are geared towards C-style languages, but by defining custom operations it could be used for other languages.

const grammar = new Gekr.Grammar({
    operations: Gekr.getArithmeticOperators()
})
const doc = new Gekr.Document(path, "1 + 2 / 3")
const result = Gekr.parse(doc, grammar)

This library is being used here: