| 1 |
---input--- |
| 2 |
{ x = 1; y = 2; } |
| 3 |
|
| 4 |
{ foo.bar = 1; } |
| 5 |
|
| 6 |
rec { x = "foo"; y = x + "bar"; } |
| 7 |
|
| 8 |
[ "foo" "bar" "baz" ] |
| 9 |
|
| 10 |
[ 1 2 3 ] |
| 11 |
|
| 12 |
[ (f 1) { a = 1; b = 2; } [ "c" ] ] |
| 13 |
|
| 14 |
---tokens--- |
| 15 |
'{' Punctuation |
| 16 |
' ' Text |
| 17 |
'x' Literal.String.Symbol |
| 18 |
' ' Text |
| 19 |
'=' Operator |
| 20 |
' ' Text |
| 21 |
'1' Literal.Number.Integer |
| 22 |
';' Punctuation |
| 23 |
' ' Text |
| 24 |
'y' Literal.String.Symbol |
| 25 |
' ' Text |
| 26 |
'=' Operator |
| 27 |
' ' Text |
| 28 |
'2' Literal.Number.Integer |
| 29 |
';' Punctuation |
| 30 |
' ' Text |
| 31 |
'}' Punctuation |
| 32 |
'\n\n' Text |
| 33 |
|
| 34 |
'{' Punctuation |
| 35 |
' ' Text |
| 36 |
'foo' Text |
| 37 |
'.' Operator |
| 38 |
'bar' Literal.String.Symbol |
| 39 |
' ' Text |
| 40 |
'=' Operator |
| 41 |
' ' Text |
| 42 |
'1' Literal.Number.Integer |
| 43 |
';' Punctuation |
| 44 |
' ' Text |
| 45 |
'}' Punctuation |
| 46 |
'\n\n' Text |
| 47 |
|
| 48 |
'rec' Keyword |
| 49 |
' ' Text |
| 50 |
'{' Punctuation |
| 51 |
' ' Text |
| 52 |
'x' Literal.String.Symbol |
| 53 |
' ' Text |
| 54 |
'=' Operator |
| 55 |
' ' Text |
| 56 |
'"' Literal.String.Double |
| 57 |
'foo' Literal.String.Double |
| 58 |
'"' Literal.String.Double |
| 59 |
';' Punctuation |
| 60 |
' ' Text |
| 61 |
'y' Literal.String.Symbol |
| 62 |
' ' Text |
| 63 |
'=' Operator |
| 64 |
' ' Text |
| 65 |
'x' Text |
| 66 |
' ' Text |
| 67 |
'+' Operator |
| 68 |
' ' Text |
| 69 |
'"' Literal.String.Double |
| 70 |
'bar' Literal.String.Double |
| 71 |
'"' Literal.String.Double |
| 72 |
';' Punctuation |
| 73 |
' ' Text |
| 74 |
'}' Punctuation |
| 75 |
'\n\n' Text |
| 76 |
|
| 77 |
'[' Punctuation |
| 78 |
' ' Text |
| 79 |
'"' Literal.String.Double |
| 80 |
'foo' Literal.String.Double |
| 81 |
'"' Literal.String.Double |
| 82 |
' ' Text |
| 83 |
'"' Literal.String.Double |
| 84 |
'bar' Literal.String.Double |
| 85 |
'"' Literal.String.Double |
| 86 |
' ' Text |
| 87 |
'"' Literal.String.Double |
| 88 |
'baz' Literal.String.Double |
| 89 |
'"' Literal.String.Double |
| 90 |
' ' Text |
| 91 |
']' Punctuation |
| 92 |
'\n\n' Text |
| 93 |
|
| 94 |
'[' Punctuation |
| 95 |
' ' Text |
| 96 |
'1' Literal.Number.Integer |
| 97 |
' ' Text |
| 98 |
'2' Literal.Number.Integer |
| 99 |
' ' Text |
| 100 |
'3' Literal.Number.Integer |
| 101 |
' ' Text |
| 102 |
']' Punctuation |
| 103 |
'\n\n' Text |
| 104 |
|
| 105 |
'[' Punctuation |
| 106 |
' ' Text |
| 107 |
'(' Punctuation |
| 108 |
'f' Text |
| 109 |
' ' Text |
| 110 |
'1' Literal.Number.Integer |
| 111 |
')' Punctuation |
| 112 |
' ' Text |
| 113 |
'{' Punctuation |
| 114 |
' ' Text |
| 115 |
'a' Literal.String.Symbol |
| 116 |
' ' Text |
| 117 |
'=' Operator |
| 118 |
' ' Text |
| 119 |
'1' Literal.Number.Integer |
| 120 |
';' Punctuation |
| 121 |
' ' Text |
| 122 |
'b' Literal.String.Symbol |
| 123 |
' ' Text |
| 124 |
'=' Operator |
| 125 |
' ' Text |
| 126 |
'2' Literal.Number.Integer |
| 127 |
';' Punctuation |
| 128 |
' ' Text |
| 129 |
'}' Punctuation |
| 130 |
' ' Text |
| 131 |
'[' Punctuation |
| 132 |
' ' Text |
| 133 |
'"' Literal.String.Double |
| 134 |
'c' Literal.String.Double |
| 135 |
'"' Literal.String.Double |
| 136 |
' ' Text |
| 137 |
']' Punctuation |
| 138 |
' ' Text |
| 139 |
']' Punctuation |
| 140 |
'\n' Text |