commit | 5f26447c7fd32a24bcf3d69152e305a89818a25a | [log] [tgz] |
---|---|---|
author | Ariya Hidayat <ariya.hidayat@gmail.com> | Wed Dec 21 19:49:57 2016 -0800 |
committer | Ariya Hidayat <ariya.hidayat@gmail.com> | Wed Dec 21 20:11:28 2016 -0800 |
tree | e699a8b1a6eb9a6b6c254ae6af30aa2e8c0d0ac8 | |
parent | 915f961887edebbdbc808883152deee024b6956f [diff] |
Update ChangeLog for 3.1.3 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' }