summaryrefslogtreecommitdiffstats
path: root/tests/snippets/elpi/test_pred.txt
blob: 657c8fde2728263858df563aebcfdd45bd6345fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
---input---
pred p1.
pred p2 i:int, o:list A.
pred p3 i:(bool -> prop).
:index(_ 2) pred p4 i:int, i:A.

---tokens---
'pred'        Keyword.Declaration
' '           Text.Whitespace
'p1'          Name.Function
'.'           Text
'\n'          Text.Whitespace

'pred'        Keyword.Declaration
' '           Text.Whitespace
'p2'          Name.Function
' '           Text.Whitespace
'i:'          Keyword.Mode
'int'         Keyword.Type
','           Text
' '           Text.Whitespace
'o:'          Keyword.Mode
'list'        Keyword.Type
' '           Text.Whitespace
'A'           Keyword.Type
'.'           Text
'\n'          Text.Whitespace

'pred'        Keyword.Declaration
' '           Text.Whitespace
'p3'          Name.Function
' '           Text.Whitespace
'i:'          Keyword.Mode
'('           Keyword.Type
'bool'        Keyword.Type
' '           Text.Whitespace
'->'          Keyword.Type
' '           Text.Whitespace
'prop'        Keyword.Type
')'           Keyword.Type
'.'           Text
'\n'          Text.Whitespace

':index'      Keyword.Mode
'('           Text.Whitespace
'_ 2'         Literal.Number.Integer
')'           Text
' '           Text.Whitespace
'pred'        Keyword.Declaration
' '           Text.Whitespace
'p4'          Name.Function
' '           Text.Whitespace
'i:'          Keyword.Mode
'int'         Keyword.Type
','           Text
' '           Text.Whitespace
'i:'          Keyword.Mode
'A'           Keyword.Type
'.'           Text
'\n'          Text.Whitespace