ESTree

Defines structs that represent the SpiderMonkey AST definitions. Mostly following the ESTree Spec. Targets ES6 definitions. Some gaps filled in from what acorn produces for ES6 currently.

Parser API docs

ESTree Spec

Source

Types

unary_operator :: :- | :+ | :! | :"~" | :typeof | :void | :delete

binary_operator :: :== | :!= | :=== | :!== | :< | :<= | :> | :>= | :"<<" | :">>" | :>>> | :+ | :- | :* | :/ | :% | :| | :^ | :& | :in | :instanceof

logical_operator :: :|| | :&&

assignment_operator :: := | :"+=" | :"-=" | :"*=" | :"/=" | :"%=" | :"<<=" | :">>=" | :">>>=" | :"|=" | :"^=" | :"&="

update_operator :: :++ | :--