numberLexicalToken method

Parser numberLexicalToken()

Implementation

Parser numberLexicalToken() =>
    ref0(digitLexicalToken).plus() &
        ref0(numberOptFractionalPartLexicalToken) &
        ref0(exponentLexicalToken).optional() &
        ref0(numberOptIllegalEndLexicalToken) |
    char('.') &
        ref0(digitLexicalToken).plus() &
        ref0(exponentLexicalToken).optional() &
        ref0(numberOptIllegalEndLexicalToken);