项目作者: usablica

项目描述 :
Javascript AST parser
高级语言: JavaScript
项目地址: git://github.com/usablica/parserjs.git
创建时间: 2016-12-16T20:50:50Z
项目社区:https://github.com/usablica/parserjs

开源协议:GNU General Public License v3.0

下载


parser.js

Build Status

Javascript AST parser

Under development

This is an attempt to extract the Parser service of Angluar.js and use it externally with other libararies
or even in Vanillajs.

Installing

Make sure you have the latest version of NPM installed on your machine, then run:

  1. npm install parserjs

Example

  1. var parserjs = require('./parser.js').parserjs;
  2. var fn = parserjs.parse('1 == 1');
  3. fn(); // true

Authors

  • Angular.js 1.6 contributors for writing Parser
  • Afshin Mehrabani to extract the Parser service

License

Please see the Angular.js license. This repository released under GPL v3.0.