【单选题】【消耗次数:1】
有文法G=({S},{a},{S→SaS,S→e},S),该文法是____。
LL(1)文法
二义性文法
算符优先文法
SLR(1)文法
参考答案:
复制
纠错
➡️如需代学继续教育,联系微信:yizhituziang

相关题目
【单选题】 文法G【S】=({b},{S,B},S,{S→b│bB,B→bS}),该文法所描述的语言____。
①  L(G[S])={b2i+1│i≥0}
②  L(G[S])={b2i+1│i≥1}
③  L(G[S])={bi│i≥0}
④  L(G[S])={b2i│i≥0}
【判断题】 无二义性文法。
①  正确
②  错误
【单选题】 算符优先文法G【S】:EàE+T,Tà(E)|i则关于优先级的判断正确的是____。
①  +?>(
②  (?>(
③  +?>)
④  (?>)
【简答题】 文法G产生的[填空1]的全体是该文法描述的语言。
【判断题】 文法G:E→E+E|E*E|(E)|i具有二义性,主要的原因在于其文法中没有体现运算符的优先次序和结合性。
①  正确
②  错误
【单选题】 设G是一个给定的文法,S是文法的开始符号,如果Sx(其中x∈V*),则称x是文法G的一个____。
①  候选式
②  句型
③  产生式
④  单词
【单选题】 有文法G[S]:S→aA|a|bBA→aSB→aB|bS则____为L(G)中的句子。
①  abab
②  aababab
③  abaa
④  baaba
【单选题】 ____文法不是LL(1)的。
①  递归
②  右递归
③  2型
④  含有公共左因子的
【简答题】 若文法 G 定义的语言是无限集,则文法G必然是[填空1]。
【单选题】 给定文法G【A】:AbA|cc,下面的符号串中,为该文法句子的是。
①  bbbcc
②  bcbc
③  bcbcc
④  bccbcc
随机题目
【单选题】 Because women often ____ their diet to control weight, they may not consume enough iron-rich food, and are liable to experience a deficiency.
①  restrict
②  strict
③  stuck
④  construct
【单选题】 He was such a ____ speaker that he held our attention every minute of the three-hour lecture.
①  specific
②  dynamic
③  heroic
④  diplomatic
【单选题】 Radio, television and press ____ of conveying news as information.
①  are the most common three means
②  are the most three common means
③  are the three most common means
④  are three the most common means
【单选题】 He tried to _______relations with his former wife but he failed.
①  measure
②  maintain
③  shelter
④  reply
【单选题】 In the Chinese household, grandparents and other relative play ___ roles in raising children.
①  incapable
②  indispensable
③  insensible
④  infinite
【单选题】 My camera can be ____ to take pictures in cloudy or sunny conditions.
①  treated
②  adjusted
③  adopted
④  remedied
【单选题】 With the help of the government , a large number of people ---_______ after the flood in 1991.
①  survived
②  suspended
③  suffered
④  suspected
【单选题】 A ____ is a person who ____ _____.
①  crime; commit; criminal
②  commit; criminal; crimes
③  commit; crimes; criminal
④  criminal; commits; crimes
【单选题】 The soldier was _____ of running away when the enemy attacked.
①  scolded
②  charged
③  accused
④  punished
【单选题】 The short story ____ the heart of the little boy with its unusual plot.
①  captured
②  cost
③  cast
④  chased