Is it a lexer\'s job to parse numbers and strings?
This may or may not sound dumb, given that fact that I\'m asking whether a lexer should parse in
I assume you want to treat "123.456" as a whole value, in which case you will pass it wholesale to the parser, unless you need to code it somehow, like
struct DecimalRep{ double mantissa, double exponent }
but I guess it depends all on what the parser expects.