commit | e2e87cedeb17b4184bee9c1a0386074614dabf56 | [log] [tgz] |
---|---|---|
author | Ariya Hidayat <ariya.hidayat@gmail.com> | Wed Dec 14 08:26:23 2016 -0800 |
committer | Ariya Hidayat <ariya.hidayat@gmail.com> | Wed Dec 14 08:41:09 2016 -0800 |
tree | 68f63c78de323d5b685e400399beb8ad3c331fcc | |
parent | 26833ed7630da7e087d6ee1ead40f9af4bb0a58d [diff] |
Remove .gitattributes since it modifies test fixtures Fix #1672 Closes gh-1673
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' }