mirror of
https://github.com/ralsina/tartrazine.git
synced 2024-11-10 05:22:23 +00:00
57 lines
1.2 KiB
Plaintext
57 lines
1.2 KiB
Plaintext
|
---input---
|
||
|
let
|
||
|
bar = "bar";
|
||
|
in {
|
||
|
foo.${bar} = 3;
|
||
|
foo.${bar + "bar"} = 3;
|
||
|
}
|
||
|
|
||
|
---tokens---
|
||
|
'let' Keyword
|
||
|
'\n ' Text
|
||
|
'bar' Literal.String.Symbol
|
||
|
' ' Text
|
||
|
'=' Operator
|
||
|
' ' Text
|
||
|
'"' Literal.String.Double
|
||
|
'bar' Literal.String.Double
|
||
|
'"' Literal.String.Double
|
||
|
';' Punctuation
|
||
|
'\n' Text
|
||
|
|
||
|
'in' Keyword
|
||
|
' ' Text
|
||
|
'{' Punctuation
|
||
|
'\n ' Text
|
||
|
'foo' Text
|
||
|
'.' Operator
|
||
|
'${' Literal.String.Interpol
|
||
|
'bar' Text
|
||
|
'}' Literal.String.Interpol
|
||
|
' ' Text
|
||
|
'=' Operator
|
||
|
' ' Text
|
||
|
'3' Literal.Number.Integer
|
||
|
';' Punctuation
|
||
|
'\n ' Text
|
||
|
'foo' Text
|
||
|
'.' Operator
|
||
|
'${' Literal.String.Interpol
|
||
|
'bar' Text
|
||
|
' ' Text
|
||
|
'+' Operator
|
||
|
' ' Text
|
||
|
'"' Literal.String.Double
|
||
|
'bar' Literal.String.Double
|
||
|
'"' Literal.String.Double
|
||
|
'}' Literal.String.Interpol
|
||
|
' ' Text
|
||
|
'=' Operator
|
||
|
' ' Text
|
||
|
'3' Literal.Number.Integer
|
||
|
';' Punctuation
|
||
|
'\n' Text
|
||
|
|
||
|
'}' Punctuation
|
||
|
'\n' Text
|