| 1 |
---input--- |
| 2 |
kind list type -> type. |
| 3 |
type nil list A. |
| 4 |
type cons A -> list A -> list A. |
| 5 |
kind tm type. |
| 6 |
type fun (tm -> tm) -> tm. |
| 7 |
type app tm -> tm -> tm. |
| 8 |
pred foo i:(tm -> tm), o:tm. |
| 9 |
|
| 10 |
---tokens--- |
| 11 |
'kind' Keyword.Declaration |
| 12 |
' ' Text.Whitespace |
| 13 |
'list' Name.Function |
| 14 |
' ' Text.Whitespace |
| 15 |
'type' Keyword.Type |
| 16 |
' ' Text.Whitespace |
| 17 |
'->' Keyword.Type |
| 18 |
' ' Text.Whitespace |
| 19 |
'type' Keyword.Type |
| 20 |
'.' Text |
| 21 |
'\n' Text.Whitespace |
| 22 |
|
| 23 |
'type' Keyword.Declaration |
| 24 |
' ' Text.Whitespace |
| 25 |
'nil' Name.Function |
| 26 |
' ' Text.Whitespace |
| 27 |
'list' Keyword.Type |
| 28 |
' ' Text.Whitespace |
| 29 |
'A' Keyword.Type |
| 30 |
'.' Text |
| 31 |
'\n' Text.Whitespace |
| 32 |
|
| 33 |
'type' Keyword.Declaration |
| 34 |
' ' Text.Whitespace |
| 35 |
'cons' Name.Function |
| 36 |
' ' Text.Whitespace |
| 37 |
'A' Keyword.Type |
| 38 |
' ' Text.Whitespace |
| 39 |
'->' Keyword.Type |
| 40 |
' ' Text.Whitespace |
| 41 |
'list' Keyword.Type |
| 42 |
' ' Text.Whitespace |
| 43 |
'A' Keyword.Type |
| 44 |
' ' Text.Whitespace |
| 45 |
'->' Keyword.Type |
| 46 |
' ' Text.Whitespace |
| 47 |
'list' Keyword.Type |
| 48 |
' ' Text.Whitespace |
| 49 |
'A' Keyword.Type |
| 50 |
'.' Text |
| 51 |
'\n' Text.Whitespace |
| 52 |
|
| 53 |
'kind' Keyword.Declaration |
| 54 |
' ' Text.Whitespace |
| 55 |
'tm' Name.Function |
| 56 |
' ' Text.Whitespace |
| 57 |
'type' Keyword.Type |
| 58 |
'.' Text |
| 59 |
'\n' Text.Whitespace |
| 60 |
|
| 61 |
'type' Keyword.Declaration |
| 62 |
' ' Text.Whitespace |
| 63 |
'fun' Name.Function |
| 64 |
' ' Text.Whitespace |
| 65 |
'(' Keyword.Type |
| 66 |
'tm' Keyword.Type |
| 67 |
' ' Text.Whitespace |
| 68 |
'->' Keyword.Type |
| 69 |
' ' Text.Whitespace |
| 70 |
'tm' Keyword.Type |
| 71 |
')' Keyword.Type |
| 72 |
' ' Text.Whitespace |
| 73 |
'->' Keyword.Type |
| 74 |
' ' Text.Whitespace |
| 75 |
'tm' Keyword.Type |
| 76 |
'.' Text |
| 77 |
'\n' Text.Whitespace |
| 78 |
|
| 79 |
'type' Keyword.Declaration |
| 80 |
' ' Text.Whitespace |
| 81 |
'app' Name.Function |
| 82 |
' ' Text.Whitespace |
| 83 |
'tm' Keyword.Type |
| 84 |
' ' Text.Whitespace |
| 85 |
'->' Keyword.Type |
| 86 |
' ' Text.Whitespace |
| 87 |
'tm' Keyword.Type |
| 88 |
' ' Text.Whitespace |
| 89 |
'->' Keyword.Type |
| 90 |
' ' Text.Whitespace |
| 91 |
'tm' Keyword.Type |
| 92 |
'.' Text |
| 93 |
'\n' Text.Whitespace |
| 94 |
|
| 95 |
'pred' Keyword.Declaration |
| 96 |
' ' Text.Whitespace |
| 97 |
'foo' Name.Function |
| 98 |
' ' Text.Whitespace |
| 99 |
'i:' Keyword.Mode |
| 100 |
'(' Keyword.Type |
| 101 |
'tm' Keyword.Type |
| 102 |
' ' Text.Whitespace |
| 103 |
'->' Keyword.Type |
| 104 |
' ' Text.Whitespace |
| 105 |
'tm' Keyword.Type |
| 106 |
')' Keyword.Type |
| 107 |
',' Keyword.Mode |
| 108 |
' ' Text.Whitespace |
| 109 |
'o:' Keyword.Mode |
| 110 |
'tm' Keyword.Type |
| 111 |
'.' Text |
| 112 |
'\n' Text.Whitespace |