Question: You are given a copy of lex.h from Programming Assignment 2, and a file called tokensListing.cpp as a driver program. DO NOT CHANGE tokensListing.cpp Your
You are given a copy of lex.h from Programming Assignment 2, and a file called tokensListing.cpp as a driver program.
DO NOT CHANGE tokensListing.cpp
Your implementation should include the following in another file, called io.cpp:
- Creating a static map container that defines the list of tokens and their associated string. The declaration is:
static map
- Writing code to implement the operator<< overloaded method for LexItem.
Use the given driver program in tokensListing.cpp for testing your implementation.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
