edited by
1,586 views
0 0 votes
1. Consider the below SDT:

E-> E+E {print(+)}

E->a {print(a)}

What is/are the output(s) for the input string a+a+a ?

(i) a+a+a
(ii) aa+a+
(iii) aaa++
(iv) +a+aa

(a) Only (i)

(b) Only (ii) and (iii)

(c) Only (ii) and (iv)

(d) All

Solution: Option (b)

How iii can be generated

Please log in or register to answer this question.

Position:
Show:

Related questions

0 0 votes
0 0 answers
400
400 views
samarpita asked Dec 13, 2021
400 views
https://gateoverflow.in/908/Gate-cse-2003-question-18Here ” In fact only for the L-attributed grammar made from a LL(1) grammar, we can always guarantee a bottom-up parsi...
2 2 votes
4 4 answers
1.8k
1.8k views
Hirak asked Jun 4, 2019
1,772 views
S→ A/aA→ aLL1 or not?
0 0 votes
1 answers 1 answer
3.0k
3.0k views
Hirak asked Jun 1, 2019
2,985 views
S → aSbS /bSaS / ϵS → aABb A→ c/ ϵ B → d/ ϵWhich of the following is LL1. Explain in details.
1 1 vote
0 0 answers
2.1k
2.1k views
aditi19 asked Mar 31, 2019
2,116 views
How to represent array expressions using DAG?for example a=b[i]+c[j]how to represent this using DAG?