| 1 |
---input--- |
| 2 |
{ |
| 3 |
integer: 123, |
| 4 |
withFractionPart: 123.456, |
| 5 |
onlyFractionPart: .456, |
| 6 |
withExponent: 123e-456, |
| 7 |
|
| 8 |
positiveHex: 0xdecaf, |
| 9 |
negativeHex: -0xC0FFEE, |
| 10 |
|
| 11 |
positiveInfinity: Infinity, |
| 12 |
negativeInfinity: -Infinity, |
| 13 |
notANumber: NaN, |
| 14 |
} |
| 15 |
|
| 16 |
---tokens--- |
| 17 |
'{' Punctuation |
| 18 |
'\n ' Text.Whitespace |
| 19 |
'integer' Name.Variable |
| 20 |
':' Punctuation |
| 21 |
' ' Text.Whitespace |
| 22 |
'123' Literal.Number.Float |
| 23 |
',' Punctuation |
| 24 |
'\n ' Text.Whitespace |
| 25 |
'withFractionPart' Name.Variable |
| 26 |
':' Punctuation |
| 27 |
' ' Text.Whitespace |
| 28 |
'123.4' Literal.Number.Float |
| 29 |
'56' Literal.Number.Float |
| 30 |
',' Punctuation |
| 31 |
'\n ' Text.Whitespace |
| 32 |
'onlyFractionPart' Name.Variable |
| 33 |
':' Punctuation |
| 34 |
' ' Text.Whitespace |
| 35 |
'.456' Literal.Number.Float |
| 36 |
',' Punctuation |
| 37 |
'\n ' Text.Whitespace |
| 38 |
'withExponent' Name.Variable |
| 39 |
':' Punctuation |
| 40 |
' ' Text.Whitespace |
| 41 |
'123e-456' Literal.Number.Float |
| 42 |
',' Punctuation |
| 43 |
'\n \n ' Text.Whitespace |
| 44 |
'positiveHex' Name.Variable |
| 45 |
':' Punctuation |
| 46 |
' ' Text.Whitespace |
| 47 |
'0xdecaf' Literal.Number.Hex |
| 48 |
',' Punctuation |
| 49 |
'\n ' Text.Whitespace |
| 50 |
'negativeHex' Name.Variable |
| 51 |
':' Punctuation |
| 52 |
' ' Text.Whitespace |
| 53 |
'-0xC0FFEE' Literal.Number.Hex |
| 54 |
',' Punctuation |
| 55 |
'\n \n ' Text.Whitespace |
| 56 |
'positiveInfinity' Name.Variable |
| 57 |
':' Punctuation |
| 58 |
' ' Text.Whitespace |
| 59 |
'Infinity' Keyword |
| 60 |
',' Punctuation |
| 61 |
'\n ' Text.Whitespace |
| 62 |
'negativeInfinity' Name.Variable |
| 63 |
':' Punctuation |
| 64 |
' ' Text.Whitespace |
| 65 |
'-Infinity' Keyword |
| 66 |
',' Punctuation |
| 67 |
'\n ' Text.Whitespace |
| 68 |
'notANumber' Name.Variable |
| 69 |
':' Punctuation |
| 70 |
' ' Text.Whitespace |
| 71 |
'NaN' Keyword |
| 72 |
',' Punctuation |
| 73 |
'\n' Text.Whitespace |
| 74 |
|
| 75 |
'}' Punctuation |
| 76 |
'\n' Text.Whitespace |