You are on page 1of 1

Compiler Design

1. Write a Lex program that reads your name and prints the message Welcome <<your name>> whenever you press the enter key. 2. Write a Lex program to match whether a pattern starts with a vowel and prints an appropriate message. 3. Write a Lex program that copies its standard input to its standard output. 4. Write a Lex program that recognizes integer numbers. 5. Write a Lex program that recognizes decimal numbers of the form 1.2, 0.5,3.56 etc. 6. Write a Lex program that recognizes decimal numbers including scientific notation.

You might also like