This directory contains Ohm grammars for various versions of the ECMAScript spec. Currently, only the ES5 grammar is reasonably complete, but we are working on ES6.
You can install these grammars as an NPM package:
npm install ohm-grammar-ecmascript
After installing, you can use the ES5 grammar like this:
var es5 = ;var result = es5grammar;;