mirror of
https://github.com/ralsina/tartrazine.git
synced 2024-11-10 05:22:23 +00:00
53 lines
1.0 KiB
Plaintext
53 lines
1.0 KiB
Plaintext
|
---input---
|
||
|
123 0123456789
|
||
|
0xabcdef0123456789 0XABCDEF
|
||
|
1e2
|
||
|
3e+4
|
||
|
5e-6
|
||
|
7E8
|
||
|
9E+0
|
||
|
1E-2
|
||
|
3.
|
||
|
4.56
|
||
|
.789
|
||
|
|
||
|
---tokens---
|
||
|
'123' Literal.Number.Integer
|
||
|
' ' Text.Whitespace
|
||
|
'0123456789' Literal.Number.Integer
|
||
|
'\n' Text.Whitespace
|
||
|
|
||
|
'0x' Keyword.Type
|
||
|
'abcdef0123456789' Literal.Number.Hex
|
||
|
' ' Text.Whitespace
|
||
|
'0X' Keyword.Type
|
||
|
'ABCDEF' Literal.Number.Hex
|
||
|
'\n' Text.Whitespace
|
||
|
|
||
|
'1e2' Literal.Number.Float
|
||
|
'\n' Text.Whitespace
|
||
|
|
||
|
'3e+4' Literal.Number.Float
|
||
|
'\n' Text.Whitespace
|
||
|
|
||
|
'5e-6' Literal.Number.Float
|
||
|
'\n' Text.Whitespace
|
||
|
|
||
|
'7E8' Literal.Number.Float
|
||
|
'\n' Text.Whitespace
|
||
|
|
||
|
'9E+0' Literal.Number.Float
|
||
|
'\n' Text.Whitespace
|
||
|
|
||
|
'1E-2' Literal.Number.Float
|
||
|
'\n' Text.Whitespace
|
||
|
|
||
|
'3.' Literal.Number.Float
|
||
|
'\n' Text.Whitespace
|
||
|
|
||
|
'4.56' Literal.Number.Float
|
||
|
'\n' Text.Whitespace
|
||
|
|
||
|
'.789' Literal.Number.Float
|
||
|
'\n' Text.Whitespace
|