DECIMAL top-level property

Parser<DecimalParser> DECIMAL
final

Implementation

final Parser<DecimalParser> DECIMAL =
    (pattern('0-9').plus() & char('.') & pattern('0-9').plus())
        .flatten()
        .map((value) => DecimalParser(double.parse(value)));