相关文档

《编译原理》课程教学资源:第二章(2-4-1)One parse tree only

One parse tree only a The role of the grammar a distinguish between syntactically legal and illegal programs a But that's not enough: it must also define a parse tree a the parse tree conveys the meaning of the program What if a string can be parsed with multiple parse trees? a we say the grammar is ambiguous a must fix the grammar(the problem is not in the parser) a Note: often a string can be derived in more than one way D ie, with more than one derivation sequence o this does not mean the grammar is ambiguous
团购合买资源类别:文库,文档格式:PPT,文档页数:19,文件大小:258KB
点击进入文档下载页(PPT格式)
共19页,试读已结束,阅读完整版请下载
点击下载(PPT格式)

浏览记录