compiler lab
COMPILER DESIGN LAB 1. Implement Token Separation for a given expression. 2.a. Use LEX and YACC to implement parser on ambiguous grammar. 2.b. Use LEX and YACC to implement parser on unambiguous grammar using LEX. 3. Use LEX and YACC tool to implement Desktop Calculator. 4. Implement Operator precedence parsing. 5. Implement Recursive Descent Parser algorithm. 6. Implement Shift Reduce Parser algorithm. 7. Implement the back end of the compiler to produce three address code. 8. Implement Symbol Table management using LEX and YACC. 9. Construction of NFA from a regular expression. 10. Construction of DFA from a regular expression. 11. Reserved function expansion/substitution using LEX and YACC. 12. Loop expansion using LEX and YACC. 1. Implement Token Separation for a given expression using LEX. File.l : letter [A-Za-z] digit [0-9] operator [-+*] %% void | main | if | do | printf |