Sebastian McKenzie
38553a6c42
switch node definitions to a DSL
2015-07-15 13:51:47 +01:00
Sebastian McKenzie
7c6de96ad7
elaborate on babylon readme
2015-07-14 15:14:57 +01:00
Sebastian McKenzie
ff6620c8ea
more architectural changes
2015-07-11 20:56:26 +01:00
Sebastian McKenzie
423d8c510d
Begin transition of Babel to a more scalable architecture, async flow to allow for RPC and better build system for multiple packages
2015-07-11 12:39:54 +01:00
Logan Smyth
01b39d67f0
Merge acorn 1.0.0 (formerly 'update to modular acorn' in original history).
2016-03-14 22:47:51 -07:00
Logan Smyth
16e8224ce6
Merge acorn 0.12.1 and acorn-babel (formerly "embed acorn" in the original git history).
2016-03-14 22:39:24 -07:00
Marijn Haverbeke
1fc1d32e1f
Add some notes on plugins to the README
2015-03-20 21:29:50 +01:00
Marijn Haverbeke
5d7f4d7a23
Update README
2015-03-20 21:01:05 +01:00
Ingvar Stepanyan
0473c368e6
[es6][estree] Add support for sourceType: script|module modes.
...
+ Fix list of keywords and reserved words in ES6.
2015-03-18 13:42:49 +02:00
Marijn Haverbeke
4735ef53ef
Replace the forbidReserved option with an allowReserved option
...
For consistency with similar options
2015-03-12 22:02:41 +01:00
Marijn Haverbeke
ba750b253b
Replace strictSemicolons and allowTrailingCommas with onInsertedSemicolon and onTrailingComma
2015-03-12 22:02:41 +01:00
Marijn Haverbeke
2a0ccb1030
Wording change in readme funding link
2015-02-23 11:49:44 +01:00
Marijn Haverbeke
b6b1bc2bae
[README] Add NPM and funding links
2015-02-19 11:51:27 +01:00
Sebastian McKenzie
36381d1785
rename to acorn-babel
2015-02-15 17:46:45 +11:00
Ingvar Stepanyan
ad9411d2ae
Made tokenize() compliant with ES6 iterables for easier processing.
2015-01-14 12:29:20 +02:00
Marijn Haverbeke
db59bd0296
Remove outdated note about loose parser not supporting ES6
2015-01-06 11:15:34 +01:00
Marijn Haverbeke
5512e26ac0
Note allowHashBang option in README
...
Issue #180
2014-12-18 10:19:22 +01:00
Marijn Haverbeke
c989857aa5
Add allowImportExportEverywhere option
...
Closes #174
2014-12-11 14:48:03 +01:00
Sebastian McKenzie
9e204a7fee
add playground
2014-11-25 23:48:48 +11:00
Sebastian McKenzie
f9c642e2c5
add support for ES7 exponentiation operator
2014-11-23 22:56:24 +11:00
Sebastian McKenzie
25c45a1e8e
add support for es7 object/spread and move acorn-6to5 tests to a separate file
2014-11-23 21:00:15 +11:00
Sebastian McKenzie
fc046bab54
remove build status from readme
2014-11-09 16:09:22 +11:00
Sebastian McKenzie
21900ae2b0
add acorn-jsx shoutout to readme
2014-11-01 23:18:01 +11:00
Sebastian McKenzie
62670e74cb
remove readme
2014-11-01 23:17:25 +11:00
Sebastian McKenzie
7a4715c2de
Merge branch 'master' of https://github.com/marijnh/acorn
...
Conflicts:
acorn.js
package.json
2014-10-22 21:30:58 +11:00
Marijn Haverbeke
51e0b81eea
Note lack of es6 support in parse_dammit in the README
2014-10-21 10:24:57 +02:00
Max Schaefer
d525c45644
Add option for representing parenthesized expressions in the AST.
2014-10-13 12:19:39 +02:00
Marijn Haverbeke
d0497ab212
Add parseExpressionAt function to the API
2014-09-15 21:03:07 +02:00
Marijn Haverbeke
0322beb0aa
Add a prepublish step to package.json
2014-09-12 16:54:28 +02:00
Marijn Haverbeke
91911bcfcd
Add bin/without_eval utility
2014-09-12 14:08:31 +02:00
Ingvar Stepanyan
3086621905
Merge branch 'master' into jsx.
2014-09-08 23:58:19 +03:00
Ingvar Stepanyan
10553cbced
Make token format compatible with Esprima and Mozilla-styled locations.
...
* Tokens are now instances of single exported constructor Token.
* Token objects are compatible with Esprima (only `type` format is different).
* Added token.loc in format of node.loc (Mozilla).
* Deprecated token.startLoc & token.endLoc.
* Updated comment generation example.
Also added ability to pass arrays in `onToken`/`onComment` where
tokens/comments will be collected in Esprima's format so you can
simply pass those arrays to `escodegen.attachComments`.
Updated docs and comment attachment example.
2014-09-08 12:20:08 +02:00
Ingvar Stepanyan
2fbf640e60
Update README.md
2014-09-05 17:15:29 +03:00
Ingvar Stepanyan
35c8f104bd
Spread attribute support and small optimizations.
...
Conflicts:
acorn.js
docs/acorn.html
package.json
test/tests.js
2014-09-05 17:01:42 +03:00
Ingvar Stepanyan
fe6cafa141
Upgrade esprima to esprima-fb and update docs.
...
Conflicts:
test/compare/esprima.js
2014-09-05 16:54:56 +03:00
Ingvar Stepanyan
95a1231c6d
Metadata & docs updates.
...
Conflicts:
.gitignore
README.md
acorn.js
index.html
package.json
2014-09-05 16:54:29 +03:00
Marijn Haverbeke
d1a5db36cc
Fix sentence broken by 11dc953bc67195d978d59d106b48f8c0606c5bc0
2014-08-14 12:48:12 +02:00
Ingvar Stepanyan
11dc953bc6
Fix docs about sourceFile/directSourceFile.
2014-08-14 12:47:26 +02:00
Ingvar Stepanyan
1bf8c1420f
Added example for comments attachment.
...
* Fixed `onToken` & `tokenize` to return `startLoc` & `endLoc`
in token object only when `options.locations` is `true`.
* Fixed `onToken` tests.
* Added example for generating comments with escodegen.
2014-07-31 14:01:39 +03:00
Ingvar Stepanyan
be11e04383
Added onToken support.
2014-07-31 14:01:39 +03:00
Ingvar Stepanyan
3393460ebb
Fix Travis URL for future merge.
2014-07-29 14:41:50 +02:00
Ingvar Stepanyan
4663f6ae95
Update README.md
2014-07-29 14:41:49 +02:00
Ingvar Stepanyan
a061f1f0a6
Updated README and bin utility to be aware of ES6 support.
2014-07-29 14:41:32 +02:00
Ingvar Stepanyan
19696af666
Added computed properties support.
2014-07-29 14:41:09 +02:00
Marijn Haverbeke
55b507b715
Note partial es6 support in docs
2014-06-06 12:11:20 +02:00
Marijn Haverbeke
3a34f7ba8c
Add note about browser compatibility to README
...
Closes #105
2014-06-04 22:51:05 +02:00
Peter Rust
954ddac8b9
[walker] Supply ancestors to visitor functions
2014-02-28 17:53:39 +01:00
Marijn Haverbeke
5bd50cce6f
Don't complain about reserved words in property name position
...
Also add forbidReserved: "everywhere" support.
Issue #85
2014-02-14 11:27:48 +01:00
Marijn Haverbeke
716ade22fb
Add allowReturnOutsideFunction option
...
Issue #86
2014-02-14 09:55:05 +01:00
Marijn Haverbeke
b1623b10c1
Note non-reentrancy of parser in onComment docs
...
Closes #80
2013-11-20 10:59:12 +01:00