Question: SUBJECT: COMPILERS AND TRANSLATORS 3. What is the relationship between input stream of characters and tokens? (5 Marks) 4. Describe the rule or informal language


SUBJECT: COMPILERS AND TRANSLATORS
3. What is the relationship between input stream of characters and tokens? (5 Marks) 4. Describe the rule or informal language accepted by the following finite automaton. (5 marks) a a.b so S2 b 5. Briefly describe the compilation process of a typical compiler with its schematics. (10 marks) 6. Construct a DFA for the Identifier in C language and build the corresponding table for a table- drivenimplementation. (10 marks) 7. Consider the regular expression (ab | ac) * (20 marks) a) Show the steps that an automated scanner generator might take with the same RE i. Use Thompson's construction to construct an NFA. (10 Marks) ii. Use the subset construction to convert this NFA to a DFA. (10 Marks)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
