commit | 881897df64e1772e807715cb79e07b0b132d14be | [log] [tgz] |
---|---|---|
author | Ariya Hidayat <ariya.hidayat@gmail.com> | Thu Feb 23 07:15:13 2017 -0800 |
committer | Ariya Hidayat <ariya.hidayat@gmail.com> | Fri Feb 24 22:45:51 2017 -0800 |
tree | 09eb67c535a0f80b226e57cc20c8738d37fbc456 | |
parent | 27648bdee135f9bc7419429a9c8b067fbb7c64e7 [diff] |
Move dynamic import tests to test/fixtures/es2018 Refs #1728 Closes gh-1759
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.