DOUBLE top-level property

Parser<List> DOUBLE
final

21 DOUBLE ::= +-? (0-9+ '.' 0-9* EXPONENT | '.' 0-9+ EXPONENT | 0-9+ EXPONENT)

Implementation

final DOUBLE = pattern('+-').repeat(0, 1) &
    ((pattern('0-9').plus() & string('.') & pattern('0-9').star() & EXPONENT) |
        (string('.') & pattern('0-9').plus() & EXPONENT) |
        (pattern('0-9').plus() & EXPONENT));