What's the difference between parse tree and AST?

后端 未结 5 1413
我在风中等你
我在风中等你 2020-11-30 18:38

Are they generated by different phases of a compiling process? Or are they just different names for the same thing?

5条回答
  •  孤独总比滥情好
    2020-11-30 19:10

    In parse tree interior nodes are non terminal, leaves are terminal. In syntax tree interior nodes are operator, leaves are operands.

提交回复
热议问题