estree

The ESTree Spec

Github星跟蹤圖

The ESTree Spec

Once upon a time, an unsuspecting Mozilla engineer created an API in Firefox that exposed the SpiderMonkey engine's JavaScript parser as a JavaScript API. Said engineer documented the format it produced, and this format caught on as a lingua franca for tools that manipulate JavaScript source code.

Meanwhile JavaScript is evolving. This site will serve as a community standard for people involved in building and using these tools to help evolve this format to keep up with the evolution of the JavaScript language.

Discussion

We've started the process of bringing together various communities using this format to move it forward into the ES2015 era and beyond. Feel free to join us! We'll be discussing in the issue tracker and in #esprima on Freenode.

AST Descriptor Syntax

The spec uses a custom syntax to describe its structures. For example, at the
time of writing, 'es2015.md' contained a description of Program as seen below

extend interface Program {
    sourceType: "script", "module";
    body: [ Statement, ModuleDeclaration ];
}

Participating Members

Inactive Members

Philosophy

Suggested additions and modifications must follow these guidelines:

  1. Backwards compatible: Non-additive modifications to existing constructs will not be considered unless immense support is in favor of such changes. (eg. #65)
  2. Contextless: Nodes should not retain any information about their parent. ie. a FunctionExpression should not be aware of if it's a concise method. (eg. #5)
  3. Unique: Information should not be duplicated. ie. a kind property should not be present on Literal if the type can be discerned from the value. (eg. #61)
  4. Extensible: New nodes should be specced to easily allow future spec additions. This means expanding the coverage of node types. ie. MetaProperty over NewTarget to cover future meta properties. (eg. #32)

主要指標

概覽
名稱與所有者estree/estree
主編程語言
編程語言 (語言數: 0)
平台
許可證Other
所有者活动
創建於2015-02-12 01:09:18
推送於2025-06-06 18:24:43
最后一次提交2025-06-06 14:24:42
發布數0
用户参与
星數5.3k
關注者數141
派生數363
提交數254
已啟用問題?
問題數142
打開的問題數37
拉請求數147
打開的拉請求數8
關閉的拉請求數29
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?