Question: Can i please get help with C++ code i will up vote!!! You are givena copy of lex.h' from Programining Assignment 1, and a file

You are givena copy of lex.h' from Programining Assignment 1, and a file called "tokensListing.cpp" as a driver program. DO NOT CHANGE neither "lexh" nor "tokensListing.cpp": Your implementation should include the following in another file, calied "RAS,cpp": - The function Lexitem id or kw(const string \& lexeme, int linenum): id_or_kw 0 function accepts a reference to a stringof a lexerne and a line number and returns a Lexitern object. It searches for the lexeme in a directory that maps a string value of a keyword to its corresponding Token value, and it returns a Lexiltem object containing the keyword Token if is is found. Otherwise, it returns a Lexitem object containing a token for one of the possible types of identifiers (.C. IDENT, SIDENT, or NIDENTR. - The overloaded operator function operator se for Lexitem. ostream\& operator \& (ostream\& out, const Lexitem \& tok). The operatorked] function accepts a reference to an obtream object and a reference to a Lexitem object, and returns a reference to the ostream object. The. operatorec function prints out a Lexitem object intormation according to the Token value using the following formats
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
