Professional Documents
Culture Documents
Lab 02
26th May, 2019
Introduction
I. Topic Overview:
The lab is designed to introduce the students to the basics concept of a compiler Design.
As part of this activity students will write code for a fixed set of regular expression
without using any built in libraries. Basic techniques of coding and required tools will
also be shown to students.
Page 2 of 4
Description RE Valid Invalid
Task 2: User will be asked first to input an integer value n followed by n lines of Strings. You
have to find out whether it is email or web address along with its line number. Remember, in no
way you can use any kind of built in Regular Expression for this task.
Page 3 of 4
Input:
2
dilrubashowkat@gmail.com
www.dilrubashowkat.com
Output:
Email, 1
Web, 2
Page 4 of 4