commit | 106e289a0e04c95539bba8fc3620e0f365632821 | [log] [tgz] |
---|---|---|
author | Ariya Hidayat <ariya.hidayat@gmail.com> | Sat Feb 25 01:00:39 2017 -0800 |
committer | Ariya Hidayat <ariya.hidayat@gmail.com> | Sun Feb 26 06:41:55 2017 -0800 |
tree | 67907a2698e539896c9b00775f208b044205e1ea | |
parent | 61d120dd9bc840f76c65233eb9d785e5ae73f88b [diff] |
Move object rest/spread tests to test/fixture/es2018 Refs #1588 Closes gh-1763
Esprima (esprima.org, BSD license) is a high performance, standard-compliant ECMAScript parser written in ECMAScript (also popularly known as JavaScript). Esprima is created and maintained by Ariya Hidayat, with the help of many contributors.
Esprima can be used to perform lexical analysis (tokenization) or syntactic analysis (parsing) of a JavaScript program.
A simple example on Node.js REPL:
> var esprima = require('esprima'); > var program = 'const answer = 42'; > esprima.tokenize(program); [ { type: 'Keyword', value: 'const' }, { type: 'Identifier', value: 'answer' }, { type: 'Punctuator', value: '=' }, { type: 'Numeric', value: '42' } ] > esprima.parse(program); { type: 'Program', body: [ { type: 'VariableDeclaration', declarations: [Object], kind: 'const' } ], sourceType: 'script' }
For more information, please read the complete documentation.