C++ version in your textbook page 166 – 171. Your instructor will also give hint
ID: 3588447 • Letter: C
Question
C++ version in your textbook page 166 – 171. Your instructor will also give hints and examples in class and you should incorporate them into your code. The input for your code should be a text file containing a simple arithmetic expression using named variables, parentheses, and integers. The output should be to the screen and it should consist of a stream of pairs of identifiers and lexemes corresponding to the input. For example , if we input : (sum + 47)/total, the screen output would as shown in the console window below. I have included pictures from textbook pages/* front.c a lexical analyzer system for simple arithmetic expressions */ #include #include /* Global declarations / /*Variables */ int charClass; char lexeme [100]; char nextChar; int lexLen; int token; int nextToken; FILE *in_fp, *fopen ();