commit | 0bcbc5ba2b0bd3ee7119dbfcd027e270f20853ca | [log] [tgz] |
---|---|---|
author | Ariya Hidayat <ariya.hidayat@gmail.com> | Fri Oct 07 07:47:55 2016 -0700 |
committer | Ariya Hidayat <ariya.hidayat@gmail.com> | Fri Oct 07 07:47:55 2016 -0700 |
tree | 04ab611946a62d353b8780936045aa9bd4e734d7 | |
parent | 99d93bc15307fb9edc364960c44b3ea60fc8ffc8 [diff] |
Update ChangeLog for 3.1.0 Refs #1584
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' }