Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems An Application Oriented Approach Complete Version

Authors: Michael Kifer, Arthur Bernstein, Richard Lewis

2nd Edition

0321268458, 978-0321268457

More Books

Students also viewed these Databases questions

Question

How wide are Salary Structure Ranges?

Answered: 1 week ago