Latest Activity In Study Groups

Join Your Study Groups

VU Past Papers, MCQs and More

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


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

RSS

Looking For Something? Search Below

VIP Member Badge & Others

How to Get This Badge at Your Profile DP

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

Management: Admins ::: Moderators

Other Awards Badges List Moderators Group

© 2021   Created by + M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service