mirror of
https://github.com/ralsina/tartrazine.git
synced 2024-11-10 13:32:24 +00:00
35 lines
695 B
Plaintext
35 lines
695 B
Plaintext
---input---
|
|
import ./foo.nix
|
|
|
|
map (x: x + x) [ 1 2 3 ]
|
|
|
|
---tokens---
|
|
'import' Name.Builtin
|
|
' ' Text
|
|
'./foo.nix' Literal
|
|
'\n\n' Text
|
|
|
|
'map' Name.Builtin
|
|
' ' Text
|
|
'(' Punctuation
|
|
'x' Text
|
|
':' Punctuation
|
|
' ' Text
|
|
'x' Text
|
|
' ' Text
|
|
'+' Operator
|
|
' ' Text
|
|
'x' Text
|
|
')' Punctuation
|
|
' ' Text
|
|
'[' Punctuation
|
|
' ' Text
|
|
'1' Literal.Number.Integer
|
|
' ' Text
|
|
'2' Literal.Number.Integer
|
|
' ' Text
|
|
'3' Literal.Number.Integer
|
|
' ' Text
|
|
']' Punctuation
|
|
'\n' Text
|