rust/crates/parser/test_data/lexer/ok/numbers.rast
2022-05-05 16:28:58 +02:00

67 lines
1.1 KiB
Plaintext

INT_NUMBER "0"
WHITESPACE " "
INT_NUMBER "00"
WHITESPACE " "
INT_NUMBER "0_"
WHITESPACE " "
FLOAT_NUMBER_PART "0"
DOT "."
WHITESPACE " "
INT_NUMBER "0z"
WHITESPACE "\n"
INT_NUMBER "01790"
WHITESPACE " "
INT_NUMBER "0b1790"
WHITESPACE " "
INT_NUMBER "0o1790"
WHITESPACE " "
INT_NUMBER "0x1790aAbBcCdDeEfF"
WHITESPACE " "
INT_NUMBER "001279"
WHITESPACE " "
INT_NUMBER "0_1279"
WHITESPACE " "
FLOAT_NUMBER_PART "0"
DOT "."
FLOAT_NUMBER_PART "1279"
WHITESPACE " "
FLOAT_NUMBER_PART "0e1279"
WHITESPACE " "
FLOAT_NUMBER_PART "0E1279"
WHITESPACE "\n"
INT_NUMBER "0"
DOT "."
DOT "."
INT_NUMBER "2"
WHITESPACE "\n"
INT_NUMBER "0"
DOT "."
IDENT "foo"
L_PAREN "("
R_PAREN ")"
WHITESPACE "\n"
FLOAT_NUMBER_PART "0e+1"
WHITESPACE "\n"
INT_NUMBER "0"
DOT "."
IDENT "e"
PLUS "+"
INT_NUMBER "1"
WHITESPACE "\n"
FLOAT_NUMBER_PART "0"
DOT "."
FLOAT_NUMBER_PART "0E-2"
WHITESPACE "\n"
FLOAT_NUMBER_PART "0___0"
DOT "."
FLOAT_NUMBER_PART "10000____0000e+111__"
WHITESPACE "\n"
INT_NUMBER "1i64"
WHITESPACE " "
FLOAT_NUMBER_PART "92"
DOT "."
FLOAT_NUMBER_PART "0f32"
WHITESPACE " "
INT_NUMBER "11__s"
WHITESPACE "\n"