Skip to content

Commit dae554c

Browse files
committed
Add exponential operator
1 parent 003bcf5 commit dae554c

File tree

4 files changed

+19
-15
lines changed

4 files changed

+19
-15
lines changed

CHANGELOG.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# v2.4.0
2+
* Enhancements:
3+
* Added exponential operators from ES2016
4+
15
# v2.3.0
26
* Enhancements:
37
* Added AssignmentProperty for use with ObjectPattern
@@ -10,7 +14,7 @@
1014
# v2.1.2
1115

1216
* Bug fixes
13-
* ESTree.Tools.Generator: updated UnaryExpression to put space in when operator is :typeof
17+
* ESTree.Tools.Generator: updated UnaryExpression to put space in when operator is :typeof
1418

1519
# v2.1.1
1620

@@ -47,5 +51,5 @@
4751
# v1.0.0
4852

4953
* Enhancements
50-
* Has the Node definitions from the [ESTree Spec](https://github.com/estree/estree)
54+
* Has the Node definitions from the [ESTree Spec](https://github.com/estree/estree)
5155
* Fills in ES6 Node definitions from [ast-types](https://github.com/benjamn/ast-types) and some from testing with [acorn](https://github.com/marijnh/acorn)

lib/es_tree.ex

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
defmodule ESTree do
22
@moduledoc """
3-
Defines structs that represent the JavaScript AST nodes from the ESTree spec.
3+
Defines structs that represent the JavaScript AST nodes from the ESTree spec.
44
55
[ESTree Spec](https://github.com/estree/estree)
66
@@ -20,15 +20,15 @@ defmodule ESTree do
2020

2121
@type unary_operator :: :- | :+ | :! | :"~" | :typeof | :void | :delete
2222

23-
@type binary_operator :: :== | :!= | :=== | :!== | :< | :<= | :> | :>= |
24-
:"<<" | :">>" | :>>> | :+ | :- | :* | :/ | :% | :| |
25-
:^ | :& | :in | :instanceof
23+
@type binary_operator :: :== | :!= | :=== | :!== | :< | :<= | :> | :>= |
24+
:"<<" | :">>" | :>>> | :+ | :- | :* | :/ | :% | :| |
25+
:^ | :& | :in | :instanceof | :"**"
2626

2727
@type logical_operator :: :|| | :&&
2828

29-
@type assignment_operator :: := | :"+=" | :"-=" | :"*=" | :"/=" | :"%=" |
30-
:"<<=" | :">>=" | :">>>=" |
31-
:"|=" | :"^=" | :"&="
29+
@type assignment_operator :: := | :"+=" | :"-=" | :"*=" | :"/=" | :"%=" |
30+
:"<<=" | :">>=" | :">>>=" |
31+
:"|=" | :"^=" | :"&=" | :"**="
3232

3333
@type update_operator :: :++ | :--
3434

mix.exs

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ defmodule ESTree.Mixfile do
33

44
def project do
55
[app: :estree,
6-
version: "2.3.0",
6+
version: "2.4.0",
77
elixir: "~> 1.0",
88
deps: deps,
99
description: description,
@@ -18,7 +18,7 @@ defmodule ESTree.Mixfile do
1818
defp deps do
1919
[
2020
{:earmark, "~> 0.2", only: :dev},
21-
{:ex_doc, "~> 0.11", only: :dev},
21+
{:ex_doc, "~> 0.12", only: :dev},
2222
{:dialyze, "~> 0.2", only: :dev},
2323
{:shouldi, only: :test}
2424
]

mix.lock

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
%{"dialyze": {:hex, :dialyze, "0.2.0"},
2-
"earmark": {:hex, :earmark, "0.2.0"},
3-
"ex_doc": {:hex, :ex_doc, "0.11.3"},
4-
"shouldi": {:hex, :shouldi, "0.3.0"}}
1+
%{"dialyze": {:hex, :dialyze, "0.2.1", "9fb71767f96649020d769db7cbd7290059daff23707d6e851e206b1fdfa92f9d", [:mix], []},
2+
"earmark": {:hex, :earmark, "0.2.1", "ba6d26ceb16106d069b289df66751734802777a3cbb6787026dd800ffeb850f3", [:mix], []},
3+
"ex_doc": {:hex, :ex_doc, "0.12.0", "b774aabfede4af31c0301aece12371cbd25995a21bb3d71d66f5c2fe074c603f", [:mix], [{:earmark, "~> 0.2", [hex: :earmark, optional: false]}]},
4+
"shouldi": {:hex, :shouldi, "0.3.0", "ae3fb3cec3328057377a0aa750aa1bb9f8b321ba054e1e2c7211512c383fb6ff", [:mix], []}}

0 commit comments

Comments
 (0)