(a) What do you mean by single pass and multi-compiler? Also discuss…

Previous year question for Compiler Design.

Question

(a) What do you mean by single pass and multi-compiler? Also discuss various phases of compilation. [10]

(b) Define Ambiguity related to grammars, also discuss the rules to disambiguate. Check whether the following grammar is ambiguous. If so, then remove the ambiguity :

$E \rightarrow E+E \mid E-E \mid E*E \mid E/E \mid (E) \mid -E \mid id$ [10]

Related pages

More PYQs on Ambiguity in Grammars

Open on CachedInfo