eg

expressionjs-grammar

Start to a JavaScript parsing expression grammar.

Showing:

Popularity

Downloads/wk

1

Maintenance

No Maintenance Data Available

Package

Dependencies

1

Size (min+gzip)

2.9KB

License

Type Definitions

Tree-Shakeable

No?

Categories

Readme

JavaScript PEG

Start to a JavaScript parsing expression grammar.

Installation

node.js:

$ npm install expressionjs-grammar

browser:

$ component install expressionjs/grammar

Example

var Parser = require('grammarjs-recursive-parser');
var js = require('expressionjs-grammar');

var parser = new Parser(js);
var ast = parser.parse('isLoggedIn ? "Logged in" : "Log in"');

Overview

The general hierarchy for the grammar is this:

  • interpolated-object
  • interpolation
  • iterator
  • object
  • assignment
  • ternary
  • binary
  • unary
  • call
  • member
  • identifier
  • literal

Licence

MIT

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100