Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Question No 1: Consider the following grammar with terminals Cnoun, Adverb, modifier, adjective and @. [10] TNVO@ N- Cnoun | MNA V Adverb | MV
Question No 1: Consider the following grammar with terminals Cnoun, Adverb, modifier, adjective and @. [10] TNVO@ N- Cnoun | MNA V Adverb | MV 0EN M modifier A adjective (a) Write the FIRST and FOLLOW sets for this grammar. [5] (b) Make the LL(1) parse table for this grammar. [3] (c) Is the grammar LL(1)? Yes or no. Give reasons [2] Question No 2: [5-51 Part 1: Write the following in TAC (Three Address Code). [5] (a) (ac) + b* ( ac) +b-lac)+b+fa-c) (b) do x=y=8; Z=X+Y: y=x + 2; i = 1 + 1; } while (a [i*8]
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started