Description

ECMAScript 6 + JSX PEGGED Grammar

Package Information

Version0.9.3 (2016-Apr-24)
Repository https://bitbucket.org/skoppe/es6-grammar
LicenseMIT
CopyrightCopyright © 2015, Bas
AuthorsBas
Registered byKoppe
Dependencies

pegged

Installation

To use this package, put the following dependency into your project's dependencies section:

dub.json
dub.sdl

Readme

ES6 Grammar

This library contains an ECMAScript6 + JSX Parser written in D.

The Parser is generated using Pegged.

Future

The idea is to write a ES6 -> ES5 transpiler, a linter and a minifier on top of it.

Regenerating the Parser

The package has a pre-build parser, but in case you want to fork and modify, the complete grammar can be found in the source/es6/grammar-generator.d file. Run dub --config=generate to generate the source/es6/grammar.d file.

Available versions

0.9.3 0.9.2 0.9.1 0.9.0 0.8.0 0.7.0 0.6.9 0.6.8 0.6.7 0.6.6 0.6.5 0.6.4 0.6.3 0.6.2 0.6.1 0.6.0 0.5.0 0.0.9 ~master