This document is a lab report submitted by Md Saimoon Rana to their lecturer Ms. Sheuli Saha at Dhaka City College. The report describes 10 experiments conducted for their Compiler Design Lab course, including writing Lex specifications to recognize various parts of speech, operators, identifiers, keywords, integers, floating point numbers, digits, and punctuation symbols.
This document is a lab report submitted by Md Saimoon Rana to their lecturer Ms. Sheuli Saha at Dhaka City College. The report describes 10 experiments conducted for their Compiler Design Lab course, including writing Lex specifications to recognize various parts of speech, operators, identifiers, keywords, integers, floating point numbers, digits, and punctuation symbols.
This document is a lab report submitted by Md Saimoon Rana to their lecturer Ms. Sheuli Saha at Dhaka City College. The report describes 10 experiments conducted for their Compiler Design Lab course, including writing Lex specifications to recognize various parts of speech, operators, identifiers, keywords, integers, floating point numbers, digits, and punctuation symbols.
Ms Sheuli Saha Name: Md Saimoon Rana Lecturer NU Roll: Department of CSE Reg. No: 18502002917 Dhaka City College Part - 4, 7th Semester Session: 2018-19, Section: B Dept. of CSE Dhaka City College
Date of Submission: Signature
INDEX
Experiment Experiment Name Page
No No Write a simple lex specification to recognize the following 1 verbs- am, is, are, was, were, be, being, been, do, does, did, would, should, can, could, as Write a simple lex specifications to recognize the following 2 word and different parts of speech am, is, are, go, very, simple, quickly, gently, to, from, behind, between, if, then, and. Write a simple lex specification to recognize different 3 operators. 4 Write a simple lex specification to recognize different identifiers. Write a simple lex specification to recognize different 5 keywords. 6 Write a simple lex specification to recognize integer. 7 Write a simple lex specification to recognize floating point. Write a simple lex specification to recognize integer and 8 floating-point numbers. 9 Write a simple lex specification to recognize a digit. Write a simple lex specification to recognize different 10 punctuation symbols.