| 1 |
---input--- |
| 2 |
func map (func A -> B), list A -> list B. |
| 3 |
func once (pred) -> . |
| 4 |
|
| 5 |
---tokens--- |
| 6 |
'func' Keyword.Declaration |
| 7 |
' ' Text.Whitespace |
| 8 |
'map' Name.Function |
| 9 |
' ' Text.Whitespace |
| 10 |
'(' Keyword.Mode |
| 11 |
'func' Keyword.Declaration |
| 12 |
' ' Text.Whitespace |
| 13 |
'A' Keyword.Type |
| 14 |
' ' Text.Whitespace |
| 15 |
'->' Keyword.Mode |
| 16 |
' ' Text.Whitespace |
| 17 |
'B' Keyword.Type |
| 18 |
')' Keyword.Mode |
| 19 |
',' Keyword.Mode |
| 20 |
' ' Text.Whitespace |
| 21 |
'list' Keyword.Type |
| 22 |
' ' Text.Whitespace |
| 23 |
'A' Keyword.Type |
| 24 |
' ' Text.Whitespace |
| 25 |
'->' Keyword.Mode |
| 26 |
' ' Text.Whitespace |
| 27 |
'list' Keyword.Type |
| 28 |
' ' Text.Whitespace |
| 29 |
'B' Keyword.Type |
| 30 |
'.' Text |
| 31 |
'\n' Text.Whitespace |
| 32 |
|
| 33 |
'func' Keyword.Declaration |
| 34 |
' ' Text.Whitespace |
| 35 |
'once' Name.Function |
| 36 |
' ' Text.Whitespace |
| 37 |
'(' Keyword.Mode |
| 38 |
'pred' Keyword.Declaration |
| 39 |
')' Keyword.Mode |
| 40 |
' ' Text.Whitespace |
| 41 |
'->' Keyword.Mode |
| 42 |
' ' Text.Whitespace |
| 43 |
'.' Text |
| 44 |
'\n' Text.Whitespace |