Javadoc
Parses a JSON numeric literal with the side effect of consuming
characters from the input up until a character is encountered that
cannot be used to form a JSON number. JSON numbers have the following
grammar:
number
int
int frac
int exp
int frac exp
int
digit
digit1-9 digits
'-' digit
'-' digit1-9 digits
frac
'.' digits
exp
e digits
digits
digit
digit digits
digit1-9
'1' | '2' | '3' | '4' | '5' |
'6' | '7' | '8' | '9'
digit
'0' | '1' | '2' | '3' | '4' |
'5' | '6' | '7' | '8' | '9'
e
'e' | 'e+' | 'e-' | 'E' | 'E+' |
'E-'