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

Note: You can add/delete rows as per your requirement.

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

Note: You can add/delete rows as per your requirement

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

Also Read PPT Slides

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

1

2

3

4

5

## VIP Member Badge & Others

How to Get This Badge at Your Profile DP

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

Management: Admins ::: Moderators

Other Awards Badges List

## Latest Activity

10 minutes ago
Aoun ALi updated their profile
1 hour ago
+ ₱ɆⱤ₣Ɇ₵₮ ҉S҉M҉O҉K҉ER ⱫɆⱠⱠłsH ♥♥ posted discussions
1 hour ago
Mani Siddiqui posted a status
"خاموش راستوں میں تیرا ﺳﺎتھ ﭼﺎہیئے خالی ﮨﮯ میرا ﮨﺎتھ تیرا ﮨﺎتھ ﭼﺎہیئے_"
1 hour ago
1 hour ago
1 hour ago
2 hours ago