Posts

COMPILER DESIGN MATERIAL

         Unit -I  1   Define a compiler. Explain the compilation process with example 2.       Explain about the LEX tool. 3.       Explain about the boot strapping. 4.       Write the compilation process for the following statement.  a:=b+c*100; Write the difference between compiler and interpreter? 6.       Explain the pass and phases of compiler 7.       What is meant by input buffering? Explain the use of sentinels in recognizing tokens. 8.       Draw the transition diagrams for the identifier and number. Unit – II 1.       Define a context free grammar. Explain with example 2.       Consider the following grammar         S->aS|aSbS|€.  Find the left most and right most derivation and corresponding derivation tree for string “aaabaab” 3.       Consider the following grammar E à TE’  E’ à +TE’|€ T à FT’ T à *FT’|€ F à (E)|id Find the FIRST and FOLLOW functions for the above grammar. 4.       Construct the predictive pa