Question: 1) Programmatically a state diagram to recognize the floating-point literals of GO LANG. This program can be written in any language you choose but must

 1) Programmatically a state diagram to recognize the floating-point literals of

1) Programmatically a state diagram to recognize the floating-point literals of GO LANG. This program can be written in any language you choose but must take in a string or character array value as input and return if that value matches the format of a floating point literal in go. It may be wise to use an enumeration type to track state transitions. 2) Make the lexical analyzer given in front.c better. In this problem you will rewrite that code to take in to recognize the following list of reserved words and special symbols 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). > (LESS THAN OP, 38). >= (LESS_EQUAL_OP, 39).

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!