Question: (a) recognize integer, double, numbers (possibly signed + or ) (b) recognize hexdecimal number (16 symbols, are 0,1,2,3,4,5,6,7,8, 9, A, B, C, D, E, F.

 (a) recognize integer, double, numbers (possibly signed + or ) (b)

(a) recognize integer, double, numbers (possibly signed + or ) (b) recognize hexdecimal number (16 symbols, are 0,1,2,3,4,5,6,7,8, 9, A, B, C, D, E, F. Hexadecimal numbers are indicated by the addition of either an 0x prefix or an h suffix.) 1 (c) recognize token STRING. The pattern consists of a double quote ("), any string of characters and a final double-quote. Ignore any string of characters inside single quote. (d) recognize identifiers, identifier must start with a letter and can include small, capital letters, underscores, or digits. (if ID 1X you should report an error and end scanning process) (e) recognize function header The output should show the following: 1. Number of integer numbers 2. Number of double numbers 3. Number of hexdecimal numbers 4. The longest STRING in the file and its length . 5. All function headers. Print an appropriate message if there is no function header found

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!