ESTree中的抽象语法树是用什么语言描述的?
What language is used to describe an Abstract Syntax Tree in ESTree?
我指的是 ECMAScript 2015 的 ESTree 文档 here。
例如,它使用以下语法:
extend interface Program {
sourceType: "script" | "module";
body: [ Statement | ModuleDeclaration ];
}
interface ForOfStatement <: ForInStatement {
type: "ForOfStatement";
}
这种 AST 表示是什么语言?我们在哪里可以阅读用于描述 AST 的规范或所用自定义格式的解释?
我指的是 ECMAScript 2015 的 ESTree 文档 here。
例如,它使用以下语法:
extend interface Program {
sourceType: "script" | "module";
body: [ Statement | ModuleDeclaration ];
}
interface ForOfStatement <: ForInStatement {
type: "ForOfStatement";
}
这种 AST 表示是什么语言?我们在哪里可以阅读用于描述 AST 的规范或所用自定义格式的解释?