mirror of
https://github.com/ralsina/tartrazine.git
synced 2024-11-13 23:12:24 +00:00
187 lines
4.0 KiB
Plaintext
187 lines
4.0 KiB
Plaintext
---input---
|
|
"foo" + "bar"
|
|
|
|
1 + 2
|
|
|
|
2 / 1
|
|
|
|
"foo" == "f" + "oo"
|
|
|
|
"foo" != "bar"
|
|
|
|
!true
|
|
|
|
2 * 2 < 5
|
|
|
|
5 > 1
|
|
|
|
2 - 1
|
|
|
|
{ x = 1; y = 2; }.x
|
|
|
|
{ x = 1; y = 2; }.z or 3
|
|
|
|
{ x = 1; y = 2; } // { z = 3; }
|
|
|
|
---tokens---
|
|
'"' Literal.String.Double
|
|
'foo' Literal.String.Double
|
|
'"' Literal.String.Double
|
|
' ' Text
|
|
'+' Operator
|
|
' ' Text
|
|
'"' Literal.String.Double
|
|
'bar' Literal.String.Double
|
|
'"' Literal.String.Double
|
|
'\n\n' Text
|
|
|
|
'1' Literal.Number.Integer
|
|
' ' Text
|
|
'+' Operator
|
|
' ' Text
|
|
'2' Literal.Number.Integer
|
|
'\n\n' Text
|
|
|
|
'2' Literal.Number.Integer
|
|
' ' Text
|
|
'/' Operator
|
|
' ' Text
|
|
'1' Literal.Number.Integer
|
|
'\n\n' Text
|
|
|
|
'"' Literal.String.Double
|
|
'foo' Literal.String.Double
|
|
'"' Literal.String.Double
|
|
' ' Text
|
|
'==' Operator
|
|
' ' Text
|
|
'"' Literal.String.Double
|
|
'f' Literal.String.Double
|
|
'"' Literal.String.Double
|
|
' ' Text
|
|
'+' Operator
|
|
' ' Text
|
|
'"' Literal.String.Double
|
|
'oo' Literal.String.Double
|
|
'"' Literal.String.Double
|
|
'\n\n' Text
|
|
|
|
'"' Literal.String.Double
|
|
'foo' Literal.String.Double
|
|
'"' Literal.String.Double
|
|
' ' Text
|
|
'!' Operator
|
|
'=' Operator
|
|
' ' Text
|
|
'"' Literal.String.Double
|
|
'bar' Literal.String.Double
|
|
'"' Literal.String.Double
|
|
'\n\n' Text
|
|
|
|
'!' Operator
|
|
'true' Name.Constant
|
|
'\n\n' Text
|
|
|
|
'2' Literal.Number.Integer
|
|
' ' Text
|
|
'*' Operator
|
|
' ' Text
|
|
'2' Literal.Number.Integer
|
|
' ' Text
|
|
'<' Operator
|
|
' ' Text
|
|
'5' Literal.Number.Integer
|
|
'\n\n' Text
|
|
|
|
'5' Literal.Number.Integer
|
|
' ' Text
|
|
'>' Operator
|
|
' ' Text
|
|
'1' Literal.Number.Integer
|
|
'\n\n' Text
|
|
|
|
'2' Literal.Number.Integer
|
|
' ' Text
|
|
'-' Operator
|
|
' ' Text
|
|
'1' Literal.Number.Integer
|
|
'\n\n' Text
|
|
|
|
'{' Punctuation
|
|
' ' Text
|
|
'x' Literal.String.Symbol
|
|
' ' Text
|
|
'=' Operator
|
|
' ' Text
|
|
'1' Literal.Number.Integer
|
|
';' Punctuation
|
|
' ' Text
|
|
'y' Literal.String.Symbol
|
|
' ' Text
|
|
'=' Operator
|
|
' ' Text
|
|
'2' Literal.Number.Integer
|
|
';' Punctuation
|
|
' ' Text
|
|
'}' Punctuation
|
|
'.' Operator
|
|
'x' Text
|
|
'\n\n' Text
|
|
|
|
'{' Punctuation
|
|
' ' Text
|
|
'x' Literal.String.Symbol
|
|
' ' Text
|
|
'=' Operator
|
|
' ' Text
|
|
'1' Literal.Number.Integer
|
|
';' Punctuation
|
|
' ' Text
|
|
'y' Literal.String.Symbol
|
|
' ' Text
|
|
'=' Operator
|
|
' ' Text
|
|
'2' Literal.Number.Integer
|
|
';' Punctuation
|
|
' ' Text
|
|
'}' Punctuation
|
|
'.' Operator
|
|
'z' Text
|
|
' ' Text
|
|
'or' Operator.Word
|
|
' ' Text
|
|
'3' Literal.Number.Integer
|
|
'\n\n' Text
|
|
|
|
'{' Punctuation
|
|
' ' Text
|
|
'x' Literal.String.Symbol
|
|
' ' Text
|
|
'=' Operator
|
|
' ' Text
|
|
'1' Literal.Number.Integer
|
|
';' Punctuation
|
|
' ' Text
|
|
'y' Literal.String.Symbol
|
|
' ' Text
|
|
'=' Operator
|
|
' ' Text
|
|
'2' Literal.Number.Integer
|
|
';' Punctuation
|
|
' ' Text
|
|
'}' Punctuation
|
|
' ' Text
|
|
'//' Operator
|
|
' ' Text
|
|
'{' Punctuation
|
|
' ' Text
|
|
'z' Literal.String.Symbol
|
|
' ' Text
|
|
'=' Operator
|
|
' ' Text
|
|
'3' Literal.Number.Integer
|
|
';' Punctuation
|
|
' ' Text
|
|
'}' Punctuation
|
|
'\n' Text
|