8. For the grammar of Figure 7.8, draw the syntax tree for from the following strings, assuming...

Question:

8. For the grammar of Figure 7.8, draw the syntax tree for from the following strings, assuming that alpha, beta, and gamma are valid s and 1 and 24 are valid

s:

*

(a) alpha = 1 ;

(b) alpha = alpha + 1 ;

(c) alpha = (beta * 1) ;

(d) alpha = ((beta + 1) * (gamma + 24)) ;

(e) alpha (beta) ;

(f) alpha (beta, 24) ;

Step by Step Answer:

Related Book For  book-img-for-question

Computer Systems

ISBN: 9781284079630

5th Edition

Authors: J Stanley Warford

Question Posted: