You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The raw string is started with a backtick, can contain any UTF8 characters and is only terminated by another backtick.
56
56
The interpreted string is contained within double quotes, can contain backslash escaped characters and cannot contain any new lines.
57
-
The Relapse <a href="http://katydid.github.io/doc/syntax.html#string-literals">syntax</a> documentation contains more detail on string literals.
57
+
The Katydid Validator <a href="http://katydid.github.io/doc/syntax.html#string-literals">syntax</a> documentation contains more detail on string literals.
58
58
</p>
59
59
<p>
60
60
Fieldnames can be expressed as a string literal with quotes or backticks.
@@ -83,7 +83,7 @@ var stringFieldsTour = {
83
83
</ol>
84
84
</p>
85
85
`,
86
-
"relapse": `(
86
+
"validator": `(
87
87
WhatsUp == "Evolution" /*equal*/ &
88
88
WhatsUp ^= "Evo" /*has prefix*/ &
89
89
WhatsUp *= "volutio" /*contains*/ &
@@ -103,7 +103,7 @@ var numberFieldsTour = {
103
103
"heading": "Numbers",
104
104
"text": `
105
105
<p>
106
-
Relapse is built for multiple serialization formats which can be more specific about number types than JSON can be.
106
+
The Katydid Vaildator is built for multiple serialization formats which can be more specific about number types than JSON can be.
107
107
The number types include:
108
108
<ul>
109
109
<li>Integer <code>$int</code></li>
@@ -113,17 +113,17 @@ var numberFieldsTour = {
113
113
The JSON parser included in Katydid tries to infer the type of the number.
114
114
All numbers are inferred as type <code>$double</code>, but if the number is a whole number it is also of type <code>$int</code>.
115
115
If the number is an unsigned whole number it is of type <code>$double</code>, <code>$int</code> and <code>$uint</code>.
116
-
The Relapse <a href="http://katydid.github.io/doc/syntax.html#literals">syntax</a> documentation contains more detail on integer, unsigned integer and double literals.
116
+
The Katydid Validator <a href="http://katydid.github.io/doc/syntax.html#literals">syntax</a> documentation contains more detail on integer, unsigned integer and double literals.
117
117
</p>
118
118
<p>
119
-
Numbers in Relapse can be wrapped in a type to make the type of the number explicit.
119
+
Numbers in the Validator can be wrapped in a type to make the type of the number explicit.
120
120
For example:
121
121
<ul>
122
122
<li><code>int(123)</code></li>
123
123
<li><code>uint(456)</code></li>
124
124
<li><code>double(789)</code></li>
125
125
</ul>
126
-
If the type of the number is not explicitly specified Relapse tries to infer it.
126
+
If the type of the number is not explicitly specified the Katydid Validator tries to infer it.
127
127
A whole number is always infered to be of type <code>$int</code>.
128
128
The type of <code>$uint</code> and <code>$double</code> can not be inferred and should always be specified explicitly.
129
129
</p>
@@ -150,13 +150,13 @@ var numberFieldsTour = {
150
150
Change the <code>$int</code> to <code>$double</code>. The bar should become green, but it is still orange.
151
151
</li>
152
152
<li>
153
-
Relapse infers all the whole numbers to be of type int. So lets make it clear that they are doubles, by wrapping them in double enclosed brackets.
153
+
The Katydid Validator infers all the whole numbers to be of type int. So lets make it clear that they are doubles, by wrapping them in double enclosed brackets.
154
154
For example <code>Survived >= double(-2016)</code>. The bar should become green.
155
155
</li>
156
156
</ol>
157
157
</p>
158
158
`,
159
-
"relapse": `(
159
+
"validator": `(
160
160
Survived > 999999 &
161
161
Survived >= -2016 &
162
162
Survived == int(1000000) &
@@ -176,16 +176,16 @@ var booleanTour = {
176
176
"heading": "Other Types",
177
177
"text": `
178
178
<p>
179
-
Booleans in Relapse are represented with the two keywords, <code>true</code> and <code>false</code>.
179
+
Booleans in the Katydid Validator are represented with the two keywords, <code>true</code> and <code>false</code>.
180
180
</p>
181
181
<p>
182
-
Relapse does not only support shorthand operators like <code>==</code>, but also supports more complex functions.
182
+
The Katydid Validator does not only support shorthand operators like <code>==</code>, but also supports more complex functions.
183
183
These complex functions are invoked with the <code>-></code> <i>arrow operator</i>.
184
184
For example <code>== false</code> is equivalent to <code>-> eq($bool, false)</code>.
185
185
This means that the field is of type <code>$bool</code> and is equal to false.
186
186
</p>
187
187
<p>
188
-
Bytes is the last native Relapse type.
188
+
Bytes is the last native Validator type.
189
189
Unfortunately JSON does not have a bytes type, so this tour is not going to cover it in great detail.
190
190
The second field comparison, <code>-> eq(length([]byte{0x1,2,'a'}), 3)</code>, does not even take the field value into account.
191
191
It only checks whether a list of predefined bytes have a length of 3.
@@ -209,7 +209,7 @@ var booleanTour = {
209
209
</ol>
210
210
</p>
211
211
`,
212
-
"relapse": `(
212
+
"validator": `(
213
213
DragonsExist == false &
214
214
DragonsExist -> eq(length([]byte{0x1,2,'a'}), 3) & // ignores the field value
215
215
DragonsExist -> eq($bool, false)
@@ -243,13 +243,13 @@ var nameTour = {
243
243
</li>
244
244
<li>
245
245
Change <code>(MonkeysSmart|_)</code> to <code>!((MonkeysSmart|_))</code>. The bar should become orange.
246
-
<i>Relapse does not use brackets as a grouping mechanism. Brackets are paired with their operators. The <code>!</code> operator will always have brackets and the <code>|</code> operator as well.
246
+
<i>The Validator does not use brackets as a grouping mechanism. Brackets are paired with their operators. The <code>!</code> operator will always have brackets and the <code>|</code> operator as well.
247
247
This is why we need two brackets, one for the <code>|</code> and one for the <code>!</code>.</i>
0 commit comments