Hello every body could you plz Help me with this flex program because I am no familiar with flex environment the question is:
"You have to make a flex file, this file should be used to generate a lexical scanner that will match the following patterns:
DOUBLE:
It's a string of characters without any gaps, it consists of three parts:
1. Integer part: It's a string of digits (at least one digit). It mustn’t begin with 0 except if the value of the string equal to zero so it has to consist of only one digit (0). Optionally the string can be preceded by (+) or (-) sign.
2. Fractional part: this part is optional; it begins with (.), then a string of digits (at least one digit).
3. Exponential part: this part is also optional, it begins with (e) or (E) then (+) or (-) to define the sign of the exponential, then a string of digits (at least one digit), this string mustn’t begin with (0) or equal to (0).
.54E4, 94.E34, 09.45E3, 00.43E5, 4.53E, 24.4E, 34.3E0, 34.3E09 are not DOUBLE.
2.43E9, 34E-9, 0E+24, -24.4, +90.000e+34 are DOUBLE."
plz help.