Modify the lexical analyzer given in Section 4.2 to recognize the following list of reserved words and
Question:
Modify the lexical analyzer given in Section 4.2 to recognize the following list of reserved words and return their respective token codes:
for (FOR_CODE, 30), if (IF_CODE, 31), else (ELSE_CODE, 32), while
(WHILE_CODE, 33), do (DO_CODE, 34), int (INT_CODE, 35), float
(FLOAT_CODE, 36), switch (SWITCH_CODE, 37).
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
Question Posted: