在计算FOLLOW集时,对于文法的开始符号S,应置()于FOLLOW(S)中。A.SB.εC.aD.#
在计算FOLLOW集时,对于文法的开始符号S,应置()于FOLLOW(S)中。
A.S
B.ε
C.a
D.#
参考答案和解析
#
相关考题:
From the end of the first paragraph we know that ________.A. children are more friendly to strangersB. American schools are not safe for kidsC. children often follow their parents’ behaviorD. fighting each other is part of children’s nature
Susan: Let's go to the restaurant and have dinner right now!Marilyn: OK. Let's get in.Susan: Thanks. _________.A. After youB. You go firstC. I'll follow youD. Have fun
● 程序语言的大多数语法现象可用上下文无关文法描述。对于一个上下文无关文法G=(N,T,P,S),其中 N ● 程序语言的大多数语法现象可用上下文无关文法描述。对于一个上下文无关文法G=(N,T,P,S),其中 N是非终结符号的集合,T 是终结符号的集合,P是产生式集合,S 是开始符号。令集合 V= N∪T,那么 G 所描述的语言是 (50) 的集合。(50)A. 从 S出发推导出的包含 V中所有符号的串B. 从 S出发推导出的仅包含 T 中符号的串C. N中所有符号组成的串D. T 中所有符号组成的串
● 对给定文法G=(VN,VT, P,S),VT={a,Λ,(,)},VN={S,T},S是开始符号,P:S→a|Λ|(T)T→T,S|S则(1)不是它的句子。该文法是(2)型文法。(1)A. (a,(a,a)) B. (((a,a), Λ,(a)),a) C. ((a,a), Λ) D. ((a,a),(T))(2)A.0型文法 B.1型文法 C.2型文法 D.正规文法
Racial harmony in the U.S.is essential because the rest of the world will likely follow such a model.() 此题为判断题(对,错)。
McDonald’s will follow the example of Starbucks in serving coffee of different sizes such as “venti” and “grande”.() 此题为判断题(对,错)。
考虑下述文法,S为开始符号 G1[S]:S→A A→aAb | ab G2[S] S→AA→aA |a| 下列结论中为真的是(28)。A.G1是LR(0)文法,G2不是LR(1)文法B.G2是LR(0)文法,G1不是LR(1)文法C.G2是LR(1)文法,G1不是LR(1)文法D.G1和G2都是LR(1)文法
假设某程序语言的文法如下:S→SaT|TT→TbR|RR→PdR|PP→fSg|e其中Vr={a,b,d,e,f,g};Vn={S,T,R,P};S是开始符号,那么,此文法是(43)文法。这种文法的语法分析通常采用优先矩阵。优先矩阵给出了该文法中各个终结符之间的优先关系(大于、小于、等于和无关系)。在上述文法中,某些终结符之间的优先关系如下:b{(44)}a;f{(45)}g;a{(46)}a;d{(47)}d。A.五则文法B.算符文法C.二义文法D.属性文法
假设某程序语言的文法如下:S→a|b|(T)T→TdS|S其中:VT={a,b,d,(,)},VN{S,T},S是开始符号。考查该文法,称句型(Sd(T)db)是S的一个(33),其中,(34)是句柄:(35)是素短语;(36)是该句型的直接短语;(37)是短语。A.最左推导B.最右推导C.规范推导D.推导
已知G4=(VT{a,',',(,)},VN={S,L,L'},S,P),其中P为, S→(L)|a|ξ L→SL' L'→,SL'|ξ FOLLOW(S)是(29)。A.{',',ξ,}}B.{','#,}}C.{a,','ξ,}}D.{a,',',#}
程序语言的大多数语法现象可用上下文无关文法描述。对于一个上下文无关文法 G=(N,T,P,S),其中N是非终结符号的集合,T是终结符号的集合,P是产生式集合,S是开始符号。令集合V=N∪T,那么G所描述的语言是(50)的集合。A.从S出发推导出的包含尸中所有符号的串B.从S出发推导出的仅包含厂中符号的串C.N中所有符号组成的串D.T中所有符号组成的串
假设某程序语言的文法如下:S→a|b|(T)T→TdS|S其中,VT={a,b,d,(,));VN={S,T},S是开始符号。考察该文法,句型(Sd(T)db)是S的一个(28)。其中(29)是最左素短语,(30)是该句型的直接短语。(74)A.最左推导B.最右摊导C.规范推导D.推导
假设某程序语言的文法如下:S→SaT|TT→TbR|RT→PdR|P P→fSg|e其中:VT={a,b,d,e,f,g},VN{S,T,R,P},S是开始符号。那么,此方法是(38 方法。这种文法的语法分析通常采用优先矩阵,优先矩阵给出了该文法中各个终结符之间的优先关系 (大于,小于,等于,无关系)。在上述文法中,某些终结符之间的优先关系如下:b(39)a:f(40)g;a(41)a;d(42)d。A.正规文法B.算符文法C.二义文法D.属性文法
若项目集IK含有A→α.,则在状态k时,仅当面临的输入符号a∈FOLLOW(A)时,才采取“A→α.”动作的一定是(19)。A.LALR 文法B.LR(0)文法C.CLR(1)文法D.SLR(1)文法
Women’s clothes still button from the left today because______.A.abouting men’s style. is improper for womenB.manufacturers should follow standardsC.modern women dress themselvesD.customs are hard to change
在客房楼层见到外国客人要让路时,我们可以说()。A、Afte rme,pleaseB、After you,pleaseC、Follow you,pleaseD、Follow me,please.
Which of the following would an administrator follow when disposing of equipment for a financial institution?()A、Local laws and regulationsB、Escalation procedure regulationsC、Manufacturer's regulationsD、Server OEM regulations
单选题Which of the following would an administrator follow when disposing of equipment for a financial institution?()A Local laws and regulationsB Escalation procedure regulationsC Manufacturer’s regulationsD Server OEM regulations
多选题Which two statements about MPLS label-switched paths (LSPs) are true? ()ALSPs are bidirectional.BLSPs are unidirectional.CLSPs must follow the IGP's shortest path.DLSPs can follow paths other than the IGP's shortest path.
单选题What’s the advantage when using the satellites?()AThe message can be directed to the desired locationBThe message can follow the earth’s curvatureCThe quality of message can not be affected by climaticDThe range of the message extend and the quality of reception is improved
单选题设有文法G[S]为S→AB|bC,A→ε|b,B→ε|aD,C→AD|b,D→aS|c则FOLLOW与A的函数为()A{a,c,#}B{c,#}C{a,#}D{#}