search
Log In
0 votes
48 views


 

in Compiler Design
edited by
48 views
2
I think there was discussion about this question here.

Answer should be 7
0
t1 = b +c;

t2 =t1+x;

t3 =b+t2

t4 = t1 + x

yes 7?
0
Yes you are right ( 4 temp variables + 3 variable)==> total 7

Please log in or register to answer this question.

Related questions

2 votes
1 answer
1
462 views
The above diagram is Transition Diagrams for identifiers. As we can see that the identifier is said to be accepted if it starts with a letter and ends with a valid delimiter, which includes blank symbol, arithmetic, logical operator, left parenthesis, right parenthesis, +, ... ends with a delimiter and + is a valid delimiter and the error in declaration will not be detected at this stage...
asked Jun 9, 2019 in Compiler Design Hirak 462 views
0 votes
1 answer
2
114 views
X->aABe B->c | d A->a What will be the follow of A here? {c, d, $} or {c, d, e, dollar}
asked Jun 8, 2019 in Compiler Design aditi19 114 views
0 votes
0 answers
3
97 views
Say I have a grammar, S→ AB A→ a B→ b This grammar is not operator grammar as 2 non terminals are lying side by side, but can be converted to an operator grammar. S→ ab , A→ a , B→ b here i have a doubt, operator grammar as the name suggests should have a ... right? how can we operate even two terminal symbols when placed side by side? Isn't it same as placing 2 non-terminal symbol side by side?
asked Jun 6, 2019 in Compiler Design Hirak 97 views
1 vote
4 answers
4
...