forked from linkeddata/swap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkifForm.html
186 lines (181 loc) · 7.94 KB
/
kifForm.html
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
<html xmlns="">
<head>
<title>KIF Form Grammar</title>
</head>
<body>
<h1>KIF Form Grammar</h1>
<address>source: <a href="kifForm.g">kifForm.g</a>
</address>
<dl>
<dt>
<a name="variable"
id="variable">variable</a>
<sub></sub>
</dt>
<dd>
<tt>indvar</tt> <br class=""/> | <tt>seqvar</tt> </dd>
<dt>
<a name="term"
id="term">term</a>
<sub></sub>
</dt>
<dd>
<tt>indvar</tt> <br class=""/> | <tt>constant</tt> <br class=""/> | <tt>charref</tt> <br class=""/> | <tt>string</tt> <br class=""/> | <tt>block</tt> <br class=""/> | <a href="#quoterm">quoterm</a>
<sub></sub> <br class=""/> | <a href="#funterm">funterm</a>
<sub></sub> <br class=""/> | <a href="#listterm">listterm</a>
<sub></sub> <br class=""/> | <a href="#logterm">logterm</a>
<sub></sub> </dd>
<dt>
<a name="quoterm"
id="quoterm">quoterm</a>
<sub></sub>
</dt>
<dd>( <tt>"\\(\s*quote"</tt> <a href="#listexpr">listexpr</a>
<sub></sub> <tt>"\\)"</tt> ) <br class=""/> | ( <tt>"'"</tt> <a href="#listexpr">listexpr</a>
<sub></sub> ) <br class=""/> | ( <tt>"^"</tt> <a href="#listexpr">listexpr</a>
<sub></sub> ) </dd>
<dt>
<a name="listexpr"
id="listexpr">listexpr</a>
<sub></sub>
</dt>
<dd>
<a href="#atom">atom</a>
<sub></sub> <br class=""/> | ( <tt>"\\("</tt> <a href="#listexpr">listexpr</a>
<sub></sub> * <tt>"\\)"</tt> ) <br class=""/> | ( <tt>","</tt> <a href="#listexpr">listexpr</a>
<sub></sub> ) </dd>
<dt>
<a name="atom"
id="atom">atom</a>
<sub></sub>
</dt>
<dd>
<tt>word</tt> <br class=""/> | <tt>charref</tt> <br class=""/> | <tt>string</tt> <br class=""/> | <tt>block</tt> </dd>
<dt>
<a name="funterm"
id="funterm">funterm</a>
<sub></sub>
</dt>
<dd>( <tt>"\\(\s*value"</tt> <a href="#term">term</a>
<sub></sub> <a href="#term">term</a>
<sub></sub> * [ <tt>seqvar</tt> ] <tt>"\\)"</tt> ) <br class=""/> | ( <tt>"\\("</tt> <tt>constant</tt> <a href="#term">term</a>
<sub></sub> * [ <tt>seqvar</tt> ] <tt>"\\)"</tt> ) </dd>
<dt>
<a name="listterm"
id="listterm">listterm</a>
<sub></sub>
</dt>
<dd>
<tt>"\\(\s*listof"</tt> <a href="#term">term</a>
<sub></sub> * [ <tt>seqvar</tt> ] <tt>"\\)"</tt> </dd>
<dt>
<a name="logterm"
id="logterm">logterm</a>
<sub></sub>
</dt>
<dd>( <tt>"\\(\s*if"</tt> <a href="#logpair">logpair</a>
<sub></sub> + [ <a href="#term">term</a>
<sub></sub> ] <tt>"\\)"</tt> ) <br class=""/> | ( <tt>"\\(\s*cond"</tt> <a href="#logitem">logitem</a>
<sub></sub> * <tt>"\\)"</tt> ) </dd>
<dt>
<a name="logpair"
id="logpair">logpair</a>
<sub></sub>
</dt>
<dd>
<a href="#sentence">sentence</a>
<sub></sub> <a href="#term">term</a>
<sub></sub> </dd>
<dt>
<a name="logitem"
id="logitem">logitem</a>
<sub></sub>
</dt>
<dd>
<tt>"\\("</tt> <a href="#sentence">sentence</a>
<sub></sub> <a href="#term">term</a>
<sub></sub> <tt>"\\)"</tt> </dd>
<dt>
<a name="sentence"
id="sentence">sentence</a>
<sub></sub>
</dt>
<dd>
<tt>constant</tt> <br class=""/> | <a href="#equation">equation</a>
<sub></sub> <br class=""/> | <a href="#inequality">inequality</a>
<sub></sub> <br class=""/> | <a href="#relsent">relsent</a>
<sub></sub> <br class=""/> | <a href="#logsent">logsent</a>
<sub></sub> <br class=""/> | <a href="#quantsent">quantsent</a>
<sub></sub> </dd>
<dt>
<a name="equation"
id="equation">equation</a>
<sub></sub>
</dt>
<dd>
<tt>"\\(\s*="</tt> <a href="#term">term</a>
<sub></sub> <a href="#term">term</a>
<sub></sub> <tt>"\\)"</tt> </dd>
<dt>
<a name="inequality"
id="inequality">inequality</a>
<sub></sub>
</dt>
<dd>
<tt>"\\(\s*/="</tt> <a href="#term">term</a>
<sub></sub> <a href="#term">term</a>
<sub></sub> <tt>"\\)"</tt> </dd>
<dt>
<a name="relsent"
id="relsent">relsent</a>
<sub></sub>
</dt>
<dd>( <tt>"\\(\s*holds"</tt> <a href="#term">term</a>
<sub></sub> <a href="#term">term</a>
<sub></sub> * [ <tt>seqvar</tt> ] <tt>"\\)"</tt> ) <br class=""/> | ( <tt>"\\("</tt> <tt>constant</tt> <a href="#term">term</a>
<sub></sub> * [ <tt>seqvar</tt> ] <tt>"\\)"</tt> ) </dd>
<dt>
<a name="logsent"
id="logsent">logsent</a>
<sub></sub>
</dt>
<dd>( <tt>"\\(\s*not"</tt> <a href="#sentence">sentence</a>
<sub></sub> <tt>"\\)"</tt> ) <br class=""/> | ( <tt>"\\(\s*and"</tt> <a href="#sentence">sentence</a>
<sub></sub> * <tt>"\\)"</tt> ) <br class=""/> | ( <tt>"\\(\s*or"</tt> <a href="#sentence">sentence</a>
<sub></sub> * <tt>"\\)"</tt> ) <br class=""/> | ( <tt>"\\(\s*=>"</tt> <a href="#sentence">sentence</a>
<sub></sub> * <a href="#sentence">sentence</a>
<sub></sub> <tt>"\\)"</tt> ) <br class=""/> | ( <tt>"\\(\s*<="</tt> <a href="#sentence">sentence</a>
<sub></sub> <a href="#sentence">sentence</a>
<sub></sub> * <tt>"\\)"</tt> ) <br class=""/> | ( <tt>"\\(\s*<=>"</tt> <a href="#sentence">sentence</a>
<sub></sub> <a href="#sentence">sentence</a>
<sub></sub> <tt>"\\)"</tt> ) </dd>
<dt>
<a name="quantsent"
id="quantsent">quantsent</a>
<sub></sub>
</dt>
<dd>( <tt>"\\(\s*forall"</tt> <tt>"\\("</tt> <a href="#varspec">varspec</a>
<sub></sub> + <tt>"\\)"</tt> <a href="#sentence">sentence</a>
<sub></sub> <tt>"\\)"</tt> ) <br class=""/> | ( <tt>"\\(\s*exists"</tt> <tt>"\\("</tt> <a href="#varspec">varspec</a>
<sub></sub> + <tt>"\\)"</tt> <a href="#sentence">sentence</a>
<sub></sub> <tt>"\\)"</tt> ) </dd>
<dt>
<a name="varspec"
id="varspec">varspec</a>
<sub></sub>
</dt>
<dd>
<a href="#variable">variable</a>
<sub></sub> <br class=""/> | ( <tt>"\\("</tt> <a href="#variable">variable</a>
<sub></sub> <tt>constant</tt> <tt>"\\)"</tt> ) </dd>
<dt>
<a name="form"
id="form">form</a>
<sub></sub>
</dt>
<dd>
<a href="#sentence">sentence</a>
<sub></sub> </dd>
</dl>
</body>
</html>