What is JavaScript AST, how to play with it?

后端 未结 4 482
陌清茗
陌清茗 2020-12-02 07:06

Abstract Syntax Tree.. I always heard that compile to SpiderMonkey AST on Github.
So, is that a actual standard of JS syntax tree? And there\'s V8, is V8 using the same

4条回答
  •  旧时难觅i
    2020-12-02 07:37

    I know only of one specification of Javascript AST: https://github.com/estree/estree

    It originated from publication of Dave Herman from Mozilla and since then evolved as community standard. So it should match SpiderMonkey at some degree but I'm not sure about V8 and JSC.

    Would appreciate if someone could provide more information on the matter.

提交回复
热议问题