0.0.4 • Published 3 years ago

meta-chevrotain v0.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

npm

meta-chevrotain

DSL for generating chevrotain parser code and cst typing

Warning

This is a improvisational project and is NOT TESTED AT ALL. It might be improved in the future.

Examples

Rail Diagram

Bootstrapping Definition

Generated Parser

Generated Typing

Requires

Install

yarn add meta-chevrotain

Usage

Bootstrapping (in this project library)

yarn bootstrapping

Read file and output parser code to console

yarn meta-chev -i input.txt -pl

Read file and output typing code to console

yarn meta-chev -i input.txt -tl

Read file and output to files

yarn meta-chev -i input.txt -p parser.ts -t typing.d.ts

Read file and output to files with extra typing entries

yarn meta-chev -i input.txt -p parser.ts -t typing.d.ts -e index:number
0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago