编译原理编译原理编译原理 (37).ppt
《编译原理编译原理编译原理 (37).ppt》由会员分享,可在线阅读,更多相关《编译原理编译原理编译原理 (37).ppt(5页珍藏版)》请在得力文库 - 分享文档赚钱的网站上搜索。
1、CompilerS1Follow Sets Given a nonterminal A,the set Follow(A),consisting of terminals and$,is defined as follows.1.If A is the start symbol,then$is in Follow(A).2.If there is a production B A,then First()is in Follow(A).3.If there is a production B A such that is in the First(),then Follow(A)contain
2、s Follow(B).oIf B A,Follow(A)contains Follow(B)CompilerS2Example 4.9First(exp)=(,numberFirst(addop)=+,-First(term)=(,numberFirst(mulop)=*First(factor)=(,number(1)exp exp addop term(2)exp term(3)addop +(4)addop -(5)term term mulop factor(6)term factor(7)mulop *(8)factor (exp)(9)factor numberFollow(ex
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 编译原理编译原理编译原理 37 编译 原理 37
限制150内