You are on page 1of 4

CSC-323:Compiler Construction

Semester 5 (Spring 2022)


Lecturer: Amna Iftikhar

ASSIGNMENT 1
SUBMISSION DUE DATE: 6TH April, 2022
(CLO1, PLO1, C2) Question#1:

Rewrite the following code (Java language) in the form of tokens.

integer a_b=c+=d**=f
9abc=66.76 ; a==b&&!=c
while(a<=b)
{
char c=’a’ ;’\n’,’abc’;a.b.995
break;
if_else(a!=b) protected class c56d
return; }
boolean b=true //this is a comment
for(b++-=t>=d@65)
else println(“\”token set\n ”)/*
println(“print it”)*/
IMPORTANT INSTRUCTIONS:

Remember, the assignments may help you for the preparation of your future quizzes and/or examinations!

WISH YOU THE BEST OF LUCK


*******************************

You might also like