Skip to content

Latest commit

 

History

History
14 lines (11 loc) · 539 Bytes

README.md

File metadata and controls

14 lines (11 loc) · 539 Bytes

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: