edited by
703 views
3 votes
3 votes

Consider the following schema shown below:

Here ‘num’ is a token that represents an integer and num.val represents the corresponding integer value. For an input string ‘2 + 3 + 7 × 5 $’ this translation schema will print:

a:)  2 3 × × 7 5 + $

b:)  2 3 + 7 + 5 × $

c:) 2 3 × 7 5 + × $

d:) × × + 2 3 7 5

I am not able to generate any option.Please verify?

edited by

1 Answer

0 votes
0 votes

I am able to generate both options a and c. 

 

 

 

Kindly correct me if I'm wrong...

Related questions

3 votes
3 votes
2 answers
1
Nymeria asked Jan 27, 2018
827 views
A) SDD is L attributed.B) SDD is not L attributed because of Rule 1.C) SDD is L attributed because of Rule 2.D) SDD is L attributed because of both Rule1 and Rule2.