edited by
890 views
0 votes
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
edited by

Please log in or register to answer this question.

Related questions

2 votes
2 votes
4 answers
2
Hirak asked Jun 4, 2019
1,001 views
S→ A/aA→ aLL1 or not?
0 votes
0 votes
1 answer
3
Hirak asked Jun 1, 2019
2,144 views
S → aSbS /bSaS / ϵS → aABb A→ c/ ϵ B → d/ ϵWhich of the following is LL1. Explain in details.
1 votes
1 votes
0 answers
4
aditi19 asked Mar 31, 2019
1,493 views
How to represent array expressions using DAG?for example a=b[i]+c[j]how to represent this using DAG?