code-for-vue-3-book icon indicating copy to clipboard operation
code-for-vue-3-book copied to clipboard

【367】逻辑错误,语义分析是在生成AST之前还是之后?

Open yusongh opened this issue 1 year ago • 2 comments

image

第一个箭头的描述是,有了模板AST后,可以进行语义分析

第二个箭头的描述是,在语义分析的基础上,可以得到模板AST

两个描述存在逻辑矛盾

yusongh avatar Oct 14 '22 04:10 yusongh

同疑惑,我理解是在模板AST之后进一步对AST进行语义分析。

hexiaokang avatar Oct 16 '22 13:10 hexiaokang

将 “在语义分析的基础上,我们即可得到模板 AST ” 改为 “在语义分析的基础上,我们即可得到一个新的包含语义信息的模板 AST”

HcySunYang avatar Nov 09 '22 01:11 HcySunYang