Question: CSC 3 8 8 B Programming Languages HW 1 must be submitted electronically. Each assignment must be prepared with a word processor. Acceptable file formats
CSCB Programming Languages
HW must be submitted electronically. Each assignment must be prepared with a word
processor. Acceptable file formats are: ASCI text like those prepared with NOTEPAD MS
Word, and PDF You should clear with me in advance any other formats.
When you prepare your homework, do not try to make it fancy. The focus is not on the form, but
on the content. "Typewriter graphics" are fine. You can scan handwritten diagrams or figures as
far as they are readable. Scanned handwritten text is not acceptable. If I cannot read something, I
will assume that it is wrong.
points Using the grammar in Example show a parse tree and a leftmost derivation for
each of the following statements make sure that you do not omit parentheses in your
derivations:
A A B C A B
points Consider the following grammar S is the start symbol; and are terminal
symbols; A and B are nonterminal symbols:
S B C
B C
C B
Which of the following sentences are in the language generated by the grammar show
derivations If a sentence cannot be generated by the grammar, explain why.
a
b
c
d
points For the following grammar and the right sentential form F id id draw a parse
tree and show the phrases, the simple phrases, as well as the handle E T and F are nonterminal
symbols; id is a terminal symbol Explain.
E E T T
T T F F
F E id
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
