Canopy A PEG parser compiler for JavaScript

Canopy is a self-hosting PEG parser compiler for JavaScript. It lets you describe the grammar of the language you’re trying to parse using a simple, terse syntax, and it generates a parser for the language from this definition. Its API and the parse tree format it generates are heavily influenced by Treetop.

You can install the command-line tools through npm:

$ npm install -g canopy

Or, download the library:

Download Canopy v0.2.0

The latest version was released 18 July 2012. It is free software, released under the MIT license. The download contains the Canopy library in source and minified form, including a source map. It works on both browser and CommonJS platforms.