Goal Exercise Acquaint Two Powerful Tools Generation Compilers Flex Bison Homework Files C Q37106554

The goal of this exercise is to acquaint yourself with two verypowerful tools for the generation of compilers: ​flex and ​bison.In this homework files for a calculator application are provided toyou. The files are as the following list.

File Description

calc.l Contains the regular expression rules calc.y Contains thegrammar rules calc.h Contains a data structure used by calculatormymake Contains the make commands to build the application

Your job is to modify the application to add logical operatorsas in the following table. All operators will have leftassociativity.

Operator Meaning Precedence Description

& Logical and Lowest This is equivalent to && in Clanguage. It is a binary

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.