0.13.4 • Published 3 years ago

lezer-generator v0.13.4

Weekly downloads
1,074
License
MIT
Repository
github
Last release
3 years ago

lezer-generator

[ WEBSITE | ISSUES | FORUM | CHANGELOG ]

This is an LR(1) (more precisely pseudo-LALR,with opt-in GLR) parser generator which outputs grammars that can be used by the Lezer parser.

This package exports both a command-line parser generator tool called lezer-generator and a programming interface.

The grammar format that the tool accepts is documented in the system guide.

See test/cases/ for some simple example grammars, or lezer-javascript for a real grammar.

You can import "lezer-generator/rollup" to get a Rollup plugin that will transform files ending in .grammar or .grammar.terms (a pseudo-source referring to the terms produced by the .grammar file) as part of the rollup build process.

import {lezer} from "lezer-generator/rollup"

export default {
  input: "./in.js",
  output: {file: "out.js", format: "cjs"},
  plugins: [lezer()]
}

The code is licensed under an MIT license.

0.13.4

3 years ago

0.13.3

3 years ago

0.13.2

3 years ago

0.13.0

3 years ago

0.13.1

3 years ago

0.12.0

4 years ago

0.11.2

4 years ago

0.11.1

4 years ago

0.11.0

4 years ago

0.10.5

4 years ago

0.10.4

4 years ago

0.10.3

4 years ago

0.10.2

4 years ago

0.10.1

4 years ago

0.10.0

4 years ago

0.9.1

4 years ago

0.9.0

4 years ago

0.8.5

4 years ago

0.8.4

4 years ago

0.8.3

4 years ago

0.8.1

4 years ago

0.8.2

4 years ago

0.8.0

4 years ago

0.7.1

4 years ago

0.7.0

4 years ago

0.5.2

4 years ago

0.5.1

5 years ago

0.5.0

5 years ago

0.4.0

5 years ago

0.3.0

5 years ago

0.2.0

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago