【单选题】【消耗次数:1】
一个文法G是四元组,分别是:非终结符,终结符,开始符号,以及。
句子
句型
单词
产生式
参考答案:
复制
纠错
相关题目
【简答题】 非终结符有[填空1]。
【单选题】 B是单个的非终结符号,a是单个的终结符号。)
① 
②  Aa或AaB
③  αβ
④  αAβαγβ
【单选题】 若a为终结符,则A→α·aβ是项目。
①  归约
②  移进
③  接收
④  待约
【简答题】 文法G1(S),它的产生式为:S→a|∧|(T),T→T,S|S。①消去G1的左递归。②写出非终结符的FIRST集与FOLLOW集。③构造它的分析表
【简答题】 终结符有[填空1],它们由词法分析器提供。
【单选题】 设G是一个给定的文法,S是文法的开始符号,如果Sx(其中x∈V*),则称x是文法G的一个____。
①  候选式
②  句型
③  产生式
④  单词
【判断题】 算符优先文法允许任意两个产生式具有相同的右部。
①  正确
②  错误
【单选题】 以下哪一个符号是象征符
①  乌云前的雷雨
②  闪烁的交通信号灯
③  求爱的玫瑰花
④  阿拉伯数字
【单选题】 给定文法G【A】:AbA|cc,下面的符号串中,为该文法句子的是。
①  bbbcc
②  bcbc
③  bcbcc
④  bccbcc
【判断题】 一个句型中出现某一个产生式的右部,则此右部一定是此句型的句柄。
①  正确
②  错误
随机题目
【单选题】 She was wondering whether he has been writing anything new ____
①  late
②  later
③  latter
④  lately
【单选题】 -Let me introduce myself, I’m Albert. - ____.
①  Pleased to meet you.
②  I’m very pleased.
③  Its my pleasure.
④  What a pleasure.
【单选题】 I think we’d better ____ , otherwise we will be late for class.
①  to hurry up
②  hurrying up
③  hurried up
④  hurry up
【单选题】 The shy girl felt ____ and uncomfortable when she could not answer her teacher’s questions.
①  awkward
②  amazed
③  curious
④  amused
【单选题】 Show me your ____ hand. Can you move it like that?
①  another
②  the other
③  other
④  the others
【单选题】 The time will surely come ____ ordinary people could operate computers as well.
①  when
②  till
③  while
④  as
【单选题】 Nothing must be allowed to ____ with our plans for the weekend.
①  influence
②  affect
③  break
④  interfere
【单选题】 Sometimes people just say eight-fifteen____ a quarter past eight.
①  out of
②  ahead of
③  because of
④  instead of
【单选题】 Water, when boiled, will____ steam.
①  give away
②  give up
③  give off
④  give out
【单选题】 Be quiet! Its rude to ____ people when they are speaking.
①  interfere
②  introduce
③  interrupt
④  prevent