假设某程序语言的文法如下:S→a|b|(T)T→TdS|S其中:VT=a,b,d,(,),VNS,T,S是开始符号。考查该文法,称句型(Sd(T)db)是S的一个 (33) ,其中, (34) 是句柄: (35) 是素短语; (36) 是该句型的直接短语; (37) 是短语。 (37)处填()。
A. [Sd(T)db]
B. d(T)
C. Td
D. Sd(T)d
查看答案
Questions 1 to 8 are based on the conversation you have just heard.
A. She was invited to the party.
B. She was present for the party.
C. She was absent from the party.
D. She went to the party.
Passage ThreeQuestions 22 to 25 are based on the passage you have just heard.
A. It’s very interesting.
B. It’s much the same.
C. It’s very tiring.
D. It’s very exciting.
考查下列文法:G(VT,VN,E,P)其中:VT=+,*,(,),i)VN=E,T,FE 是开始符号P: E→E+T|TT→T*F|FF→(E)|IF*F+T是该文法的一个句型,其中, (28) 是句柄, (29) 是素短语 (30) 是该句型的直接推导, (31) 是该句型的最左推导, (32) 是该文法的一个句子。 (29)处填()。
A. F
B. F*F
C. F+T
D. F*F+T
Questions 1 to 8 are based on the conversation you have just heard.
A. No, because there is no ladder.
B. No, because Henry likes the present color.
C. Yes, someone else painted it.
D. Yes, Henry painted it.