Namek / js_expr

Parser for simple JavaScript expressions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

js_expr

Parser for simple JavaScript expressions based on PEG.js.

Build the parser

  1. npm install
  2. gulp build
  3. dist/js_expr.js is the output

Use the parser

The parser builds in nodejs' module manner. It exports function parse(expr) which returns an AST.

The AST can be rendered back to JS code, look into src/renderer.js.

About

Parser for simple JavaScript expressions


Languages

Language:JavaScript 100.0%