www.vustudents.ning.com

We non-commercial site working hard since 2009 to facilitate learning Read More. We can't keep up without your support. Donate.

cs 606 assignment 1 spring 2021

Spring%202021_CS606_1.docx

CS 606 assignment spring 2021

DUE DATE: 21 may 2021

PROBLEM STATEMENT                                                                      20 marks

Consider the following stream of characters given as input to the lexical analyzer.

void main ( )

{

int xy = 57, num = 10;

/* variable declaration */

if (xy > num)  /* variable declaration */

return ( xy );

else

retrun ( num );

}

After lexical analysis, find the tokens produced with their types as per the following table format.

Solution:

 Token No. Token Type 1 void Keyword 2 3

Views: 429

Attachments:

Replies to This Discussion

Share the Assignment Questions & Discuss Here....

Stay touched with this discussion, Solution idea will be uploaded as soon as possible in replies here before the due date.

PROBLEM STATEMENT                                                                       20 marks

Consider the following stream of characters given as input to the lexical analyzer.

void main ( )

{

int xy = 57, num = 10;

/* variable declaration */

if (xy > num)  /* variable declaration */

return ( xy );

else

retrun ( num );

}

After lexical analysis, find the tokens produced with their types as per the following table format.

Solution:

 Token No. Token Type 1 void Keyword 2 3

CS606 Assignment 1 Solution Spring 2021 | CS606 Assignment 1 Solution 2021

CS606 Assignment 1 Solution Spring 2021 ||Compiler Construction|| 100% Correct Solution

Top Trends

1

2

3

4

5

+++Shamp y RANA Girl++

------------------------------------

Latest Activity

Ammara Sabir liked + ♥ Haniya khan's discussion " Right "
19 minutes ago
Ammara Sabir liked ♥Sυɠαɾ Gҽɳιυʂ♥'s discussion mohabbat
19 minutes ago
23 minutes ago
46 minutes ago
48 minutes ago
48 minutes ago
48 minutes ago
Ammara Sabir posted a status
"تم بھی ویسے تھے مگر تم کو خدا رہنے دیا اس طرح تم کو زمانے سے جدا رہنے دیا ❤️❤️❤️❤️"
1 hour ago