Nested Parenthetical Madness
    Wondering what’s next for npm?Check out our public roadmap! »

    ohm-grammar-ecmascript

    0.5.0 • Public • Published

    ohm-grammar-ecmascript

    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.

    Usage (NPM)

    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 = require('ohm-grammar-ecmascript');
    var result = es5.grammar.match('var x = 3; console.log(x);');
    assert(result.succeeded());

    Install

    npm i ohm-grammar-ecmascript

    DownloadsWeekly Downloads

    2

    Version

    0.5.0

    License

    MIT

    Last publish

    Collaborators

    • avatar