0% found this document useful (0 votes)
10 views1 page

Learn Lab

The document outlines a series of programming tasks focused on creating a lexical analyzer and implementing various features in C. It includes the development of a calculator using LEX and YACC, recognition of valid arithmetic expressions and variable names, as well as code optimization techniques. Additionally, it covers generating three address code and recognizing control structures in C language.

Uploaded by

Priya
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views1 page

Learn Lab

The document outlines a series of programming tasks focused on creating a lexical analyzer and implementing various features in C. It includes the development of a calculator using LEX and YACC, recognition of valid arithmetic expressions and variable names, as well as code optimization techniques. Additionally, it covers generating three address code and recognizing control structures in C language.

Uploaded by

Priya
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

1. Design a Lexical analyzer to recognize a few patterns in C. Ex.

No: 2
The lexical analyzer should ignore redundant spaces, tabs
new lines, and comments etc.

2. Implement the lexical analyzer using JLex, flex or other lexical Ex. No: 3
analyzer-generating tools.

3. Write a program to implement to recognize a valid arithmetic Ex.No 4


expression that uses operator +, – , * and /.

4. Write a program to implement a Calculator using LEX and Ex. No: 6


YACC.

5. Write a Program to recognize a valid variable which starts with Ex. No 5


a letter followed by any number of letters or digits.

6. Write a program to Implement Simple Code Optimization Ex.No:13


Techniques using Constant Folding

7. Write a program to generate three address code using LEX and Ex. No 6
YACC.

8. Write a program to Implement any one storage allocation Ex. No: 10


strategies
9. Write a program to implement to recognize a valid control Ex.No:2
structures syntax of C language using ifelse, if-else-if and
switch-case.

10. Write a program to implement to recognize a valid control Ex. No 2


structures syntax of C language using For loop and while loop

You might also like