-
Notifications
You must be signed in to change notification settings - Fork 0
/
feta.html
652 lines (506 loc) · 60.6 KB
/
feta.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
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- This file is generated by Nim. -->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Favicon -->
<link rel="shortcut icon" href="data:image/x-icon;base64,AAABAAEAEBAAAAEAIABoBAAAFgAAACgAAAAQAAAAIAAAAAEAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AAAAAAUAAAAF////AP///wD///8A////AP///wD///8A////AP///wD///8A////AAAAAAIAAABbAAAAlQAAAKIAAACbAAAAmwAAAKIAAACVAAAAWwAAAAL///8A////AP///wD///8A////AAAAABQAAADAAAAAYwAAAA3///8A////AP///wD///8AAAAADQAAAGMAAADAAAAAFP///wD///8A////AP///wAAAACdAAAAOv///wD///8A////AP///wD///8A////AP///wD///8AAAAAOgAAAJ3///8A////AP///wAAAAAnAAAAcP///wAAAAAoAAAASv///wD///8A////AP///wAAAABKAAAAKP///wAAAABwAAAAJ////wD///8AAAAAgQAAABwAAACIAAAAkAAAAJMAAACtAAAAFQAAABUAAACtAAAAkwAAAJAAAACIAAAAHAAAAIH///8A////AAAAAKQAAACrAAAAaP///wD///8AAAAARQAAANIAAADSAAAARf///wD///8AAAAAaAAAAKsAAACk////AAAAADMAAACcAAAAnQAAABj///8A////AP///wAAAAAYAAAAGP///wD///8A////AAAAABgAAACdAAAAnAAAADMAAAB1AAAAwwAAAP8AAADpAAAAsQAAAE4AAAAb////AP///wAAAAAbAAAATgAAALEAAADpAAAA/wAAAMMAAAB1AAAAtwAAAOkAAAD/AAAA/wAAAP8AAADvAAAA3gAAAN4AAADeAAAA3gAAAO8AAAD/AAAA/wAAAP8AAADpAAAAtwAAAGUAAAA/AAAA3wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAADfAAAAPwAAAGX///8A////AAAAAEgAAADtAAAAvwAAAL0AAADGAAAA7wAAAO8AAADGAAAAvQAAAL8AAADtAAAASP///wD///8A////AP///wD///8AAAAAO////wD///8A////AAAAAIcAAACH////AP///wD///8AAAAAO////wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A//8AAP//AAD4HwAA7/cAAN/7AAD//wAAoYUAAJ55AACf+QAAh+EAAAAAAADAAwAA4AcAAP5/AAD//wAA//8AAA=="/>
<link rel="icon" type="image/png" sizes="32x32" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAA3XAAAN1wFCKJt4AAAAB3RJTUUH4QQQEwksSS9ZWwAAAk1JREFUWMPtll2ITVEUx39nn/O7Y5qR8f05wtCUUr6ZIS++8pEnkZInPImneaCQ5METNdOkeFBKUhMPRIkHKfEuUZSUlGlKPN2TrgfncpvmnntnmlEyq1Z7t89/rf9a6+y99oZxGZf/XeIq61EdtgKXgdXA0xrYAvBjOIF1AI9zvjcC74BSpndrJPkBWDScTF8Aa4E3wDlgHbASaANmVqlcCnwHvgDvgVfAJ+AikAAvgfVZwLnSVZHZaOuKoQi3ZOMi4NkYkpe1p4J7A8BpYAD49hfIy/oqG0+hLomiKP2L5L+1ubn5115S+3OAn4EnwBlgMzCjyt6ZAnQCJ4A7wOs88iRJHvw50HoujuPBoCKwHWiosy8MdfZnAdcHk8dxXFJ3VQbQlCTJvRBCGdRbD4M6uc5glpY3eAihpN5S5w12diSEcCCEcKUO4ljdr15T76ur1FDDLIQQ3qv71EdDOe3Kxj3leRXyk+pxdWnFWod6Wt2bY3de3aSuUHcPBVimHs7mK9WrmeOF6lR1o9qnzskh2ar2qm1qizpfXaPeVGdlmGN5pb09qMxz1Xb1kLqgzn1RyH7JUXW52lr5e/Kqi9qpto7V1atuUzfnARrV7jEib1T76gG2qxdGmXyiekkt1GswPTtek0aBfJp6YySGBfWg2tPQ0FAYgf1stUfdmdcjarbYJEniKIq6gY/Aw+zWHAC+p2labGpqiorFYgGYCEzN7oQdQClN07O1/EfDyGgC0ALMBdYAi4FyK+4H3gLPsxfR1zRNi+NP7nH5J+QntnXe5B5mpfQAAAAASUVORK5CYII=">
<!-- Google fonts -->
<link href='https://fonts.googleapis.com/css?family=Lato:400,600,900' rel='stylesheet' type='text/css'/>
<link href='https://fonts.googleapis.com/css?family=Source+Code+Pro:400,500,600' rel='stylesheet' type='text/css'/>
<!-- CSS -->
<title>feta</title>
<link rel="stylesheet" type="text/css" href="nimdoc.out.css">
<script type="text/javascript" src="dochack.js"></script>
<script type="text/javascript">
function main() {
var pragmaDots = document.getElementsByClassName("pragmadots");
for (var i = 0; i < pragmaDots.length; i++) {
pragmaDots[i].onclick = function(event) {
// Hide tease
event.target.parentNode.style.display = "none";
// Show actual
event.target.parentNode.nextElementSibling.style.display = "inline";
}
}
const toggleSwitch = document.querySelector('.theme-switch input[type="checkbox"]');
function switchTheme(e) {
if (e.target.checked) {
document.documentElement.setAttribute('data-theme', 'dark');
localStorage.setItem('theme', 'dark');
} else {
document.documentElement.setAttribute('data-theme', 'light');
localStorage.setItem('theme', 'light');
}
}
toggleSwitch.addEventListener('change', switchTheme, false);
const currentTheme = localStorage.getItem('theme') ? localStorage.getItem('theme') : null;
if (currentTheme) {
document.documentElement.setAttribute('data-theme', currentTheme);
if (currentTheme === 'dark') {
toggleSwitch.checked = true;
}
}
}
</script>
</head>
<body onload="main()">
<div class="document" id="documentId">
<div class="container">
<h1 class="title">feta</h1>
<div class="row">
<div class="three columns">
<div class="theme-switch-wrapper">
<label class="theme-switch" for="checkbox">
<input type="checkbox" id="checkbox" />
<div class="slider round"></div>
</label>
<em>Dark Mode</em>
</div>
<div id="global-links">
<ul class="simple">
<li>
<a href="theindex.html">Index</a>
</li>
</ul>
</div>
<div id="searchInputDiv">
Search: <input type="text" id="searchInput"
onkeyup="search()" />
</div>
<div>
Group by:
<select onchange="groupBy(this.value)">
<option value="section">Section</option>
<option value="type">Type</option>
</select>
</div>
<ul class="simple simple-toc" id="toc-list">
<li>
<a class="reference reference-toplevel" href="#6" id="56">Imports</a>
<ul class="simple simple-toc-section">
</ul>
</li>
<li>
<a class="reference reference-toplevel" href="#12" id="62">Procs</a>
<ul class="simple simple-toc-section">
<ul class="simple nested-toc-section">ON
<li><a class="reference" href="#ON%2Cstring"
title="ON(sheet: string)">ON,string<span class="attachedType"></span></a></li>
</ul>
<ul class="simple nested-toc-section">AT
<li><a class="reference" href="#AT%2CSpreadSheet%2Cint%2Cstring"
title="AT(sheet: SpreadSheet; ind: int; col: string): string">AT,SpreadSheet,int,string<span class="attachedType"></span></a></li>
</ul>
<ul class="simple nested-toc-section">newSpreadsheetGen
<li><a class="reference" href="#newSpreadsheetGen%2Cstring%2Cseq%5BRow%5D%2CRow"
title="newSpreadsheetGen(name: string; rows: seq[Row]; header: Row): SpreadSheet">newSpreadsheetGen,string,seq[Row],Row<span class="attachedType"></span></a></li>
<li><a class="reference" href="#newSpreadsheetGen%2Cseq%5BRow%5D"
title="newSpreadsheetGen(rows: seq[Row]): SpreadSheet">newSpreadsheetGen,seq[Row]<span class="attachedType"></span></a></li>
<li><a class="reference" href="#newSpreadsheetGen%2CRow"
title="newSpreadsheetGen(rows: Row): SpreadSheet">newSpreadsheetGen,Row<span class="attachedType"></span></a></li>
</ul>
<ul class="simple nested-toc-section">interimAddrow
<li><a class="reference" href="#interimAddrow%2CSpreadSheet%2CRow"
title="interimAddrow(sheet: SpreadSheet; row: Row): SpreadSheet">interimAddrow,SpreadSheet,Row<span class="attachedType"></span></a></li>
</ul>
<ul class="simple nested-toc-section">LENGTH
<li><a class="reference" href="#LENGTH%2CSpreadSheet"
title="LENGTH(sheet: SpreadSheet): int">LENGTH,SpreadSheet<span class="attachedType"></span></a></li>
</ul>
<ul class="simple nested-toc-section">WITH
<li><a class="reference" href="#WITH%2CSpreadSheet"
title="WITH(sheet: SpreadSheet)">WITH,SpreadSheet<span class="attachedType"></span></a></li>
</ul>
<ul class="simple nested-toc-section">ATTACHEMENT
<li><a class="reference" href="#ATTACHEMENT%2Cstring"
title="ATTACHEMENT(s: string): string">ATTACHEMENT,string<span class="attachedType"></span></a></li>
</ul>
<ul class="simple nested-toc-section">TO
<li><a class="reference" href="#TO%2Cstring"
title="TO(statement: string): string">TO,string<span class="attachedType"></span></a></li>
</ul>
<ul class="simple nested-toc-section">SHOW
<li><a class="reference" href="#SHOW%2CSpreadSheet"
title="SHOW(sheet: SpreadSheet)">SHOW,SpreadSheet<span class="attachedType"></span></a></li>
<li><a class="reference" href="#SHOW%2Cstring"
title="SHOW(id: string)">SHOW,string<span class="attachedType"></span></a></li>
</ul>
<ul class="simple nested-toc-section">AS
<li><a class="reference" href="#AS%2Cstring"
title="AS(statement: string)">AS,string<span class="attachedType"></span></a></li>
</ul>
<ul class="simple nested-toc-section">UPDATE
<li><a class="reference" href="#UPDATE%2CSpreadSheet%2CSpreadSheet%2Cstring"
title="UPDATE(toUpdate: var SpreadSheet; view: SpreadSheet; on = "index")">UPDATE,SpreadSheet,SpreadSheet,string<span class="attachedType"></span></a></li>
</ul>
<ul class="simple nested-toc-section">newSpreadsheetGenFromRows
<li><a class="reference" href="#newSpreadsheetGenFromRows%2Cseq%5BRow%5D"
title="newSpreadsheetGenFromRows(rows: seq[Row]): SpreadSheet">newSpreadsheetGenFromRows,seq[Row]<span class="attachedType"></span></a></li>
</ul>
<ul class="simple nested-toc-section">COLUMNINDEX
<li><a class="reference" href="#COLUMNINDEX%2CSpreadSheet%2Cstring"
title="COLUMNINDEX(sheet: SpreadSheet; column: string): int">COLUMNINDEX,SpreadSheet,string<span class="attachedType"></span></a></li>
</ul>
<ul class="simple nested-toc-section">WHERE
<li><a class="reference" href="#WHERE%2CSpreadSheet%2Cstring%2Cstring%2Cstring"
title="WHERE(spreadsheet: SpreadSheet; column: string; operator: string;
condition: string): seq[int]">WHERE,SpreadSheet,string,string,string<span class="attachedType"></span></a></li>
</ul>
<ul class="simple nested-toc-section">SUBJECT
<li><a class="reference" href="#SUBJECT%2Cstring"
title="SUBJECT(s: string): string">SUBJECT,string<span class="attachedType"></span></a></li>
</ul>
<ul class="simple nested-toc-section">[]
<li><a class="reference" href="#%5B%5D%2CRow%2Cint"
title="`[]`(row: Row; index: int): string">[],Row,int<span class="attachedType"></span></a></li>
</ul>
<ul class="simple nested-toc-section">TEXT
<li><a class="reference" href="#TEXT%2Cstring"
title="TEXT(s: string): string">TEXT,string<span class="attachedType"></span></a></li>
</ul>
</ul>
</li>
<li>
<a class="reference reference-toplevel" href="#17" id="67">Macros</a>
<ul class="simple simple-toc-section">
<li><a class="reference" href="#ONACCEPT.m%2Cuntyped"
title="ONACCEPT(statement: untyped)"><wbr />ONACCEPT<span class="attachedType"></span></a></li>
<li><a class="reference" href="#ACCEPTIF.m%2Cuntyped"
title="ACCEPTIF(statement: untyped)"><wbr />ACCEPTIF<span class="attachedType"></span></a></li>
<li><a class="reference" href="#ONSEND.m%2Cuntyped"
title="ONSEND(statement: untyped)"><wbr />ONSEND<span class="attachedType"></span></a></li>
<li><a class="reference" href="#ALLOWEDIT.m%2Cuntyped"
title="ALLOWEDIT(statement: untyped)"><wbr />ALLOWEDIT<span class="attachedType"></span></a></li>
<li><a class="reference" href="#ROW.m%2Cuntyped"
title="ROW(statement: untyped)"><wbr />ROW<span class="attachedType"></span></a></li>
<li><a class="reference" href="#ADDROW.m%2CSpreadSheet%2Cuntyped"
title="ADDROW(spreadsheet: var SpreadSheet; statement: untyped)"><wbr />ADDROW<span class="attachedType"></span></a></li>
<li><a class="reference" href="#REMOVEROW.m%2CSpreadSheet%2Cuntyped"
title="REMOVEROW(spreadsheet: var SpreadSheet; statement: untyped)"><wbr />REMOVEROW<span class="attachedType"></span></a></li>
<li><a class="reference" href="#INSERT.m%2CRow%2Cuntyped"
title="INSERT(row: var Row; statement: untyped)"><wbr />INSERT<span class="attachedType"></span></a></li>
<li><a class="reference" href="#REMOVECOLUMN.m%2CSpreadSheet%2Cuntyped"
title="REMOVECOLUMN(sheet: var SpreadSheet; statement: untyped)"><wbr />REMOVECOLUMN<span class="attachedType"></span></a></li>
<li><a class="reference" href="#RENAMECOLUMN.m%2CSpreadSheet%2Cuntyped"
title="RENAMECOLUMN(sheet: var SpreadSheet; statement: untyped)"><wbr />RENAMECOLUMN<span class="attachedType"></span></a></li>
<li><a class="reference" href="#ADDCOLUMN.m%2CSpreadSheet%2Cuntyped"
title="ADDCOLUMN(sheet: var SpreadSheet; statement: untyped)"><wbr />ADDCOLUMN<span class="attachedType"></span></a></li>
<li><a class="reference" href="#SENDMAIL.m%2Cuntyped"
title="SENDMAIL(statement: untyped)"><wbr />SENDMAIL<span class="attachedType"></span></a></li>
<li><a class="reference" href="#CREATE_SPREADSHEET.m%2Cuntyped"
title="CREATE_SPREADSHEET(statement: untyped): SpreadSheet"><wbr />CREATE_<wbr />SPREADSHEET<span class="attachedType"></span></a></li>
<li><a class="reference" href="#FROM_PROC.m%2Cuntyped"
title="FROM_PROC(statement: untyped): proc (): SpreadSheet"><wbr />FROM_<wbr />PROC<span class="attachedType"></span></a></li>
<li><a class="reference" href="#SET_PERMISSIONS.m%2CSpreadSheet%2Cuntyped"
title="SET_PERMISSIONS(table: var SpreadSheet; statement: untyped)"><wbr />SET_<wbr />PERMISSIONS<span class="attachedType"></span></a></li>
<li><a class="reference" href="#view.m%2Cuntyped"
title="view(statement: untyped): SpreadSheet"><wbr />view<span class="attachedType"></span></a></li>
<li><a class="reference" href="#LOAD.m%2Cuntyped"
title="LOAD(statement: untyped): SpreadSheet"><wbr />LOAD<span class="attachedType"></span></a></li>
<li><a class="reference" href="#SAVE.m%2CSpreadSheet%2Cuntyped"
title="SAVE(sheet: SpreadSheet; statement: untyped)"><wbr />SAVE<span class="attachedType"></span></a></li>
<li><a class="reference" href="#ADDVIEW.m%2Cuntyped"
title="ADDVIEW(statement: untyped)"><wbr />ADDVIEW<span class="attachedType"></span></a></li>
<li><a class="reference" href="#ADDFORM.m%2Cuntyped"
title="ADDFORM(statement: untyped)"><wbr />ADDFORM<span class="attachedType"></span></a></li>
<li><a class="reference" href="#ONSERVER.m%2Cuntyped"
title="ONSERVER(statement: untyped)"><wbr />ONSERVER<span class="attachedType"></span></a></li>
<li><a class="reference" href="#JOIN.m%2CSpreadSheet%2Cuntyped"
title="JOIN(sheet: SpreadSheet; statement: untyped): SpreadSheet"><wbr />JOIN<span class="attachedType"></span></a></li>
</ul>
</li>
<li>
<a class="reference reference-toplevel" href="#19" id="69">Exports</a>
<ul class="simple simple-toc-section">
</ul>
</li>
</ul>
</div>
<div class="nine columns" id="content">
<div id="tocRoot"></div>
<p class="module-desc">The following statements are all used to create valid FETA-language constructs. They do however not have any functional use.</p>
<div class="section" id="6">
<h1><a class="toc-backref" href="#6">Imports</a></h1>
<dl class="item">
<a class="reference external" href="spreadsheets.html">spreadsheets</a>, <a class="reference external" href="googleapi.html">googleapi</a>, <a class="reference external" href="server.html">server</a>, <a class="reference external" href="mailFunc.html">mailFunc</a>, <a class="reference external" href="mailFunc.html">mailFunc</a>, <a class="reference external" href="metaapi.html">metaapi</a>
</dl></div>
<div class="section" id="12">
<h1><a class="toc-backref" href="#12">Procs</a></h1>
<dl class="item">
<a id="AS,string"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#AS%2Cstring"><span class="Identifier">AS</span></a><span class="Other">(</span><span class="Identifier">statement</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">)</span> <span><span class="Other">{</span><span class="Other pragmadots">...</span><span class="Other">}</span></span><span class="pragmawrap"><span class="Other">{.</span><span class="pragma"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span><span class="Other">.}</span></span></pre></dt>
<dd>
</dd>
<a id="TO,string"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#TO%2Cstring"><span class="Identifier">TO</span></a><span class="Other">(</span><span class="Identifier">statement</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">string</span> <span><span class="Other">{</span><span class="Other pragmadots">...</span><span class="Other">}</span></span><span class="pragmawrap"><span class="Other">{.</span><span class="pragma"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span><span class="Other">.}</span></span></pre></dt>
<dd>
</dd>
<a id="ATTACHEMENT,string"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#ATTACHEMENT%2Cstring"><span class="Identifier">ATTACHEMENT</span></a><span class="Other">(</span><span class="Identifier">s</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">string</span> <span><span class="Other">{</span><span class="Other pragmadots">...</span><span class="Other">}</span></span><span class="pragmawrap"><span class="Other">{.</span><span class="pragma"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span><span class="Other">.}</span></span></pre></dt>
<dd>
</dd>
<a id="TEXT,string"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#TEXT%2Cstring"><span class="Identifier">TEXT</span></a><span class="Other">(</span><span class="Identifier">s</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">string</span> <span><span class="Other">{</span><span class="Other pragmadots">...</span><span class="Other">}</span></span><span class="pragmawrap"><span class="Other">{.</span><span class="pragma"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span><span class="Other">.}</span></span></pre></dt>
<dd>
</dd>
<a id="SUBJECT,string"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#SUBJECT%2Cstring"><span class="Identifier">SUBJECT</span></a><span class="Other">(</span><span class="Identifier">s</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">string</span> <span><span class="Other">{</span><span class="Other pragmadots">...</span><span class="Other">}</span></span><span class="pragmawrap"><span class="Other">{.</span><span class="pragma"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span><span class="Other">.}</span></span></pre></dt>
<dd>
</dd>
<a id="LENGTH,SpreadSheet"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#LENGTH%2CSpreadSheet"><span class="Identifier">LENGTH</span></a><span class="Other">(</span><span class="Identifier">sheet</span><span class="Other">:</span> <a href="spreadsheets.html#SpreadSheet"><span class="Identifier">SpreadSheet</span></a><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">int</span> <span><span class="Other">{</span><span class="Other pragmadots">...</span><span class="Other">}</span></span><span class="pragmawrap"><span class="Other">{.</span><span class="pragma"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span><span class="Other">.}</span></span></pre></dt>
<dd>
DSL interface of len(spreadsheet) function Returns the number of rows in <tt class="docutils literal"><span class="pre">sheet</span></tt>
</dd>
<a id="SHOW,SpreadSheet"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#SHOW%2CSpreadSheet"><span class="Identifier">SHOW</span></a><span class="Other">(</span><span class="Identifier">sheet</span><span class="Other">:</span> <a href="spreadsheets.html#SpreadSheet"><span class="Identifier">SpreadSheet</span></a><span class="Other">)</span> <span><span class="Other">{</span><span class="Other pragmadots">...</span><span class="Other">}</span></span><span class="pragmawrap"><span class="Other">{.</span><span class="pragma"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span><span class="Other">.}</span></span></pre></dt>
<dd>
DSL wrapper of show(spreadsheet) function <tt class="docutils literal"><span class="pre">sheet</span></tt> is the SpreadSheet-object, whichshould be pretty-printed.
</dd>
<a id="SHOW,string"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#SHOW%2Cstring"><span class="Identifier">SHOW</span></a><span class="Other">(</span><span class="Identifier">id</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">)</span> <span><span class="Other">{</span><span class="Other pragmadots">...</span><span class="Other">}</span></span><span class="pragmawrap"><span class="Other">{.</span><span class="pragma"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">Exception</span><span class="Other">,</span> <span class="Identifier">KeyError</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">RootEffect</span><span class="Other">]</span></span><span class="Other">.}</span></span></pre></dt>
<dd>
DSL wrapper of show(spreadsheet) function Pretty prints the SpreadSheet which is at position <tt class="docutils literal"><span class="pre">id</span></tt> on the SERVER-object
</dd>
<a id="WHERE,SpreadSheet,string,string,string"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#WHERE%2CSpreadSheet%2Cstring%2Cstring%2Cstring"><span class="Identifier">WHERE</span></a><span class="Other">(</span><span class="Identifier">spreadsheet</span><span class="Other">:</span> <a href="spreadsheets.html#SpreadSheet"><span class="Identifier">SpreadSheet</span></a><span class="Other">;</span> <span class="Identifier">column</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">;</span> <span class="Identifier">operator</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">;</span>
<span class="Identifier">condition</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">seq</span><span class="Other">[</span><span class="Identifier">int</span><span class="Other">]</span> <span><span class="Other">{</span><span class="Other pragmadots">...</span><span class="Other">}</span></span><span class="pragmawrap"><span class="Other">{.</span><span class="pragma"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">OSError</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span><span class="Other">.}</span></span></pre></dt>
<dd>
DSL wrapper of where(spreadsheet) function Returns a seq of indices, which denote the rows in <tt class="docutils literal"><span class="pre">spreadsheet</span></tt>, which meet that the value in column <tt class="docutils literal"><span class="pre">column</span></tt> <tt class="docutils literal"><span class="pre">operator</span></tt> to <tt class="docutils literal"><span class="pre">condition</span></tt>
</dd>
<a id="newSpreadsheetGen,string,seq[Row],Row"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#newSpreadsheetGen%2Cstring%2Cseq%5BRow%5D%2CRow"><span class="Identifier">newSpreadsheetGen</span></a><span class="Other">(</span><span class="Identifier">name</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">;</span> <span class="Identifier">rows</span><span class="Other">:</span> <span class="Identifier">seq</span><span class="Other">[</span><a href="spreadsheets.html#Row"><span class="Identifier">Row</span></a><span class="Other">]</span><span class="Other">;</span> <span class="Identifier">header</span><span class="Other">:</span> <a href="spreadsheets.html#Row"><span class="Identifier">Row</span></a><span class="Other">)</span><span class="Other">:</span> <a href="spreadsheets.html#SpreadSheet"><span class="Identifier">SpreadSheet</span></a> <span><span class="Other">{</span><span class="Other pragmadots">...</span><span class="Other">}</span></span><span class="pragmawrap"><span class="Other">{.</span><span class="pragma">
<span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span><span class="Other">.}</span></span></pre></dt>
<dd>
Generate new Spreadsheet with given name rows header
</dd>
<a id="newSpreadsheetGen,seq[Row]"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#newSpreadsheetGen%2Cseq%5BRow%5D"><span class="Identifier">newSpreadsheetGen</span></a><span class="Other">(</span><span class="Identifier">rows</span><span class="Other">:</span> <span class="Identifier">seq</span><span class="Other">[</span><a href="spreadsheets.html#Row"><span class="Identifier">Row</span></a><span class="Other">]</span><span class="Other">)</span><span class="Other">:</span> <a href="spreadsheets.html#SpreadSheet"><span class="Identifier">SpreadSheet</span></a> <span><span class="Other">{</span><span class="Other pragmadots">...</span><span class="Other">}</span></span><span class="pragmawrap"><span class="Other">{.</span><span class="pragma"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span><span class="Other">.}</span></span></pre></dt>
<dd>
Generate new Spreadsheet with given name rows header
</dd>
<a id="newSpreadsheetGen,Row"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#newSpreadsheetGen%2CRow"><span class="Identifier">newSpreadsheetGen</span></a><span class="Other">(</span><span class="Identifier">rows</span><span class="Other">:</span> <a href="spreadsheets.html#Row"><span class="Identifier">Row</span></a><span class="Other">)</span><span class="Other">:</span> <a href="spreadsheets.html#SpreadSheet"><span class="Identifier">SpreadSheet</span></a> <span><span class="Other">{</span><span class="Other pragmadots">...</span><span class="Other">}</span></span><span class="pragmawrap"><span class="Other">{.</span><span class="pragma"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span><span class="Other">.}</span></span></pre></dt>
<dd>
Generate new Spreadsheet with given name row header
</dd>
<a id="newSpreadsheetGenFromRows,seq[Row]"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#newSpreadsheetGenFromRows%2Cseq%5BRow%5D"><span class="Identifier">newSpreadsheetGenFromRows</span></a><span class="Other">(</span><span class="Identifier">rows</span><span class="Other">:</span> <span class="Identifier">seq</span><span class="Other">[</span><a href="spreadsheets.html#Row"><span class="Identifier">Row</span></a><span class="Other">]</span><span class="Other">)</span><span class="Other">:</span> <a href="spreadsheets.html#SpreadSheet"><span class="Identifier">SpreadSheet</span></a> <span><span class="Other">{</span><span class="Other pragmadots">...</span><span class="Other">}</span></span><span class="pragmawrap"><span class="Other">{.</span><span class="pragma"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span>
<span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span><span class="Other">.}</span></span></pre></dt>
<dd>
Generate new Spreadsheet with given name rows header
</dd>
<a id="interimAddrow,SpreadSheet,Row"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#interimAddrow%2CSpreadSheet%2CRow"><span class="Identifier">interimAddrow</span></a><span class="Other">(</span><span class="Identifier">sheet</span><span class="Other">:</span> <a href="spreadsheets.html#SpreadSheet"><span class="Identifier">SpreadSheet</span></a><span class="Other">;</span> <span class="Identifier">row</span><span class="Other">:</span> <a href="spreadsheets.html#Row"><span class="Identifier">Row</span></a><span class="Other">)</span><span class="Other">:</span> <a href="spreadsheets.html#SpreadSheet"><span class="Identifier">SpreadSheet</span></a> <span><span class="Other">{</span><span class="Other pragmadots">...</span><span class="Other">}</span></span><span class="pragmawrap"><span class="Other">{.</span><span class="pragma"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span>
<span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span><span class="Other">.}</span></span></pre></dt>
<dd>
</dd>
<a id="UPDATE,SpreadSheet,SpreadSheet,string"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#UPDATE%2CSpreadSheet%2CSpreadSheet%2Cstring"><span class="Identifier">UPDATE</span></a><span class="Other">(</span><span class="Identifier">toUpdate</span><span class="Other">:</span> <span class="Keyword">var</span> <a href="spreadsheets.html#SpreadSheet"><span class="Identifier">SpreadSheet</span></a><span class="Other">;</span> <span class="Identifier">view</span><span class="Other">:</span> <a href="spreadsheets.html#SpreadSheet"><span class="Identifier">SpreadSheet</span></a><span class="Other">;</span> <span class="Identifier">on</span> <span class="Other">=</span> <span class="StringLit">"index"</span><span class="Other">)</span> <span><span class="Other">{</span><span class="Other pragmadots">...</span><span class="Other">}</span></span><span class="pragmawrap"><span class="Other">{.</span><span class="pragma">
<span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">OSError</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span><span class="Other">.}</span></span></pre></dt>
<dd>
DSL Interface for the host-API call update(toUpdate : var SpreadSheet, view : SpreadSheet, on = "index") Will be reworked in the future, to better match our syntax vision of no brackets
</dd>
<a id="WITH,SpreadSheet"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#WITH%2CSpreadSheet"><span class="Identifier">WITH</span></a><span class="Other">(</span><span class="Identifier">sheet</span><span class="Other">:</span> <a href="spreadsheets.html#SpreadSheet"><span class="Identifier">SpreadSheet</span></a><span class="Other">)</span> <span><span class="Other">{</span><span class="Other pragmadots">...</span><span class="Other">}</span></span><span class="pragmawrap"><span class="Other">{.</span><span class="pragma"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span><span class="Other">.}</span></span></pre></dt>
<dd>
</dd>
<a id="ON,string"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#ON%2Cstring"><span class="Identifier">ON</span></a><span class="Other">(</span><span class="Identifier">sheet</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">)</span> <span><span class="Other">{</span><span class="Other pragmadots">...</span><span class="Other">}</span></span><span class="pragmawrap"><span class="Other">{.</span><span class="pragma"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span><span class="Other">.}</span></span></pre></dt>
<dd>
</dd>
<a id="COLUMNINDEX,SpreadSheet,string"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#COLUMNINDEX%2CSpreadSheet%2Cstring"><span class="Identifier">COLUMNINDEX</span></a><span class="Other">(</span><span class="Identifier">sheet</span><span class="Other">:</span> <a href="spreadsheets.html#SpreadSheet"><span class="Identifier">SpreadSheet</span></a><span class="Other">;</span> <span class="Identifier">column</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">int</span> <span><span class="Other">{</span><span class="Other pragmadots">...</span><span class="Other">}</span></span><span class="pragmawrap"><span class="Other">{.</span><span class="pragma"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">OSError</span><span class="Other">]</span><span class="Other">,</span>
<span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span><span class="Other">.}</span></span></pre></dt>
<dd>
Takes <tt class="docutils literal"><span class="pre">sheet : SpreadSheet</span></tt> and <tt class="docutils literal"><span class="pre">column : string</span></tt> as inputs and returns the integer index of the respective column in the header of <tt class="docutils literal"><span class="pre">sheet</span></tt>
</dd>
<a id="[],Row,int"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#%5B%5D%2CRow%2Cint"><span class="Identifier">`[]`</span></a><span class="Other">(</span><span class="Identifier">row</span><span class="Other">:</span> <a href="spreadsheets.html#Row"><span class="Identifier">Row</span></a><span class="Other">;</span> <span class="Identifier">index</span><span class="Other">:</span> <span class="Identifier">int</span><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">string</span> <span><span class="Other">{</span><span class="Other pragmadots">...</span><span class="Other">}</span></span><span class="pragmawrap"><span class="Other">{.</span><span class="pragma"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span><span class="Other">.}</span></span></pre></dt>
<dd>
</dd>
<a id="AT,SpreadSheet,int,string"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#AT%2CSpreadSheet%2Cint%2Cstring"><span class="Identifier">AT</span></a><span class="Other">(</span><span class="Identifier">sheet</span><span class="Other">:</span> <a href="spreadsheets.html#SpreadSheet"><span class="Identifier">SpreadSheet</span></a><span class="Other">;</span> <span class="Identifier">ind</span><span class="Other">:</span> <span class="Identifier">int</span><span class="Other">;</span> <span class="Identifier">col</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">string</span> <span><span class="Other">{</span><span class="Other pragmadots">...</span><span class="Other">}</span></span><span class="pragmawrap"><span class="Other">{.</span><span class="pragma"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">OSError</span><span class="Other">]</span><span class="Other">,</span>
<span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span><span class="Other">.}</span></span></pre></dt>
<dd>
</dd>
</dl></div>
<div class="section" id="17">
<h1><a class="toc-backref" href="#17">Macros</a></h1>
<dl class="item">
<a id="ONACCEPT.m,untyped"></a>
<dt><pre><span class="Keyword">macro</span> <a href="#ONACCEPT.m%2Cuntyped"><span class="Identifier">ONACCEPT</span></a><span class="Other">(</span><span class="Identifier">statement</span><span class="Other">:</span> <span class="Identifier">untyped</span><span class="Other">)</span></pre></dt>
<dd>
</dd>
<a id="ACCEPTIF.m,untyped"></a>
<dt><pre><span class="Keyword">macro</span> <a href="#ACCEPTIF.m%2Cuntyped"><span class="Identifier">ACCEPTIF</span></a><span class="Other">(</span><span class="Identifier">statement</span><span class="Other">:</span> <span class="Identifier">untyped</span><span class="Other">)</span></pre></dt>
<dd>
</dd>
<a id="ONSEND.m,untyped"></a>
<dt><pre><span class="Keyword">macro</span> <a href="#ONSEND.m%2Cuntyped"><span class="Identifier">ONSEND</span></a><span class="Other">(</span><span class="Identifier">statement</span><span class="Other">:</span> <span class="Identifier">untyped</span><span class="Other">)</span></pre></dt>
<dd>
</dd>
<a id="ALLOWEDIT.m,untyped"></a>
<dt><pre><span class="Keyword">macro</span> <a href="#ALLOWEDIT.m%2Cuntyped"><span class="Identifier">ALLOWEDIT</span></a><span class="Other">(</span><span class="Identifier">statement</span><span class="Other">:</span> <span class="Identifier">untyped</span><span class="Other">)</span></pre></dt>
<dd>
</dd>
<a id="ROW.m,untyped"></a>
<dt><pre><span class="Keyword">macro</span> <a href="#ROW.m%2Cuntyped"><span class="Identifier">ROW</span></a><span class="Other">(</span><span class="Identifier">statement</span><span class="Other">:</span> <span class="Identifier">untyped</span><span class="Other">)</span></pre></dt>
<dd>
</dd>
<a id="ADDROW.m,SpreadSheet,untyped"></a>
<dt><pre><span class="Keyword">macro</span> <a href="#ADDROW.m%2CSpreadSheet%2Cuntyped"><span class="Identifier">ADDROW</span></a><span class="Other">(</span><span class="Identifier">spreadsheet</span><span class="Other">:</span> <span class="Keyword">var</span> <a href="spreadsheets.html#SpreadSheet"><span class="Identifier">SpreadSheet</span></a><span class="Other">;</span> <span class="Identifier">statement</span><span class="Other">:</span> <span class="Identifier">untyped</span><span class="Other">)</span></pre></dt>
<dd>
DSL interface for addRow(spreadsheet, row) Adds all Row-objects, which are lying in the indented logic block after ADDROW to <tt class="docutils literal"><span class="pre">spreadsheet</span></tt>
</dd>
<a id="REMOVEROW.m,SpreadSheet,untyped"></a>
<dt><pre><span class="Keyword">macro</span> <a href="#REMOVEROW.m%2CSpreadSheet%2Cuntyped"><span class="Identifier">REMOVEROW</span></a><span class="Other">(</span><span class="Identifier">spreadsheet</span><span class="Other">:</span> <span class="Keyword">var</span> <a href="spreadsheets.html#SpreadSheet"><span class="Identifier">SpreadSheet</span></a><span class="Other">;</span> <span class="Identifier">statement</span><span class="Other">:</span> <span class="Identifier">untyped</span><span class="Other">)</span></pre></dt>
<dd>
DSL interface for removeow(spreadsheet, index) Removes all Row-objects, which are represented in the indented logic block, by integers, after REMOVEROW from <tt class="docutils literal"><span class="pre">spreadsheet</span></tt>
</dd>
<a id="INSERT.m,Row,untyped"></a>
<dt><pre><span class="Keyword">macro</span> <a href="#INSERT.m%2CRow%2Cuntyped"><span class="Identifier">INSERT</span></a><span class="Other">(</span><span class="Identifier">row</span><span class="Other">:</span> <span class="Keyword">var</span> <a href="spreadsheets.html#Row"><span class="Identifier">Row</span></a><span class="Other">;</span> <span class="Identifier">statement</span><span class="Other">:</span> <span class="Identifier">untyped</span><span class="Other">)</span></pre></dt>
<dd>
DSL interface for add(row, value)+ Interprets all values as Cells and appends these Cells at the end of <tt class="docutils literal"><span class="pre">row</span></tt>
</dd>
<a id="REMOVECOLUMN.m,SpreadSheet,untyped"></a>
<dt><pre><span class="Keyword">macro</span> <a href="#REMOVECOLUMN.m%2CSpreadSheet%2Cuntyped"><span class="Identifier">REMOVECOLUMN</span></a><span class="Other">(</span><span class="Identifier">sheet</span><span class="Other">:</span> <span class="Keyword">var</span> <a href="spreadsheets.html#SpreadSheet"><span class="Identifier">SpreadSheet</span></a><span class="Other">;</span> <span class="Identifier">statement</span><span class="Other">:</span> <span class="Identifier">untyped</span><span class="Other">)</span></pre></dt>
<dd>
DSL interface for removeColumn(spreadSheet, column) Interprets all values in <tt class="docutils literal"><span class="pre">statement</span></tt> as strings and removes headers from <tt class="docutils literal"><span class="pre">sheet</span></tt>, which match these names
</dd>
<a id="RENAMECOLUMN.m,SpreadSheet,untyped"></a>
<dt><pre><span class="Keyword">macro</span> <a href="#RENAMECOLUMN.m%2CSpreadSheet%2Cuntyped"><span class="Identifier">RENAMECOLUMN</span></a><span class="Other">(</span><span class="Identifier">sheet</span><span class="Other">:</span> <span class="Keyword">var</span> <a href="spreadsheets.html#SpreadSheet"><span class="Identifier">SpreadSheet</span></a><span class="Other">;</span> <span class="Identifier">statement</span><span class="Other">:</span> <span class="Identifier">untyped</span><span class="Other">)</span></pre></dt>
<dd>
DSL interface for renameColumn(spreadsheet, oldName, newName) Sytnax:<dl class="docutils"><dt>sheet.RENAMECOLUMN:</dt>
<dd><dl class="docutils"><dt>FROM:</dt>
<dd>oldName</dd>
<dt>TO:</dt>
<dd>newName</dd>
</dl>
</dd>
</dl>
<p>Renames the column given by <tt class="docutils literal"><span class="pre">oldName</span></tt> to <tt class="docutils literal"><span class="pre">newName</span></tt></p>
</dd>
<a id="ADDCOLUMN.m,SpreadSheet,untyped"></a>
<dt><pre><span class="Keyword">macro</span> <a href="#ADDCOLUMN.m%2CSpreadSheet%2Cuntyped"><span class="Identifier">ADDCOLUMN</span></a><span class="Other">(</span><span class="Identifier">sheet</span><span class="Other">:</span> <span class="Keyword">var</span> <a href="spreadsheets.html#SpreadSheet"><span class="Identifier">SpreadSheet</span></a><span class="Other">;</span> <span class="Identifier">statement</span><span class="Other">:</span> <span class="Identifier">untyped</span><span class="Other">)</span></pre></dt>
<dd>
DSL interface for addColumn(spreadsheet, name, row) Interprets all entries in <tt class="docutils literal"><span class="pre">statement</span></tt> as <tt class="docutils literal"><span class="pre">Row</span></tt>-obects and adds them as columns to <tt class="docutils literal"><span class="pre">sheet</span></tt>
</dd>
<a id="SENDMAIL.m,untyped"></a>
<dt><pre><span class="Keyword">macro</span> <a href="#SENDMAIL.m%2Cuntyped"><span class="Identifier">SENDMAIL</span></a><span class="Other">(</span><span class="Identifier">statement</span><span class="Other">:</span> <span class="Identifier">untyped</span><span class="Other">)</span></pre></dt>
<dd>
Macro for sending Mail Atomic Action: Send email Syntax:<dl class="docutils"><dt>SENDMAIL:</dt>
<dd><dl class="docutils"><dt>TO:</dt>
<dd>toAddress</dd>
<dt>TEXT:</dt>
<dd>text</dd>
<dt>SUBJECT:</dt>
<dd>subjectText</dd>
<dt>ATTACHEMENT: # Attachement is optional!</dt>
<dd>attachementFile</dd>
</dl>
</dd>
</dl>
</dd>
<a id="CREATE_SPREADSHEET.m,untyped"></a>
<dt><pre><span class="Keyword">macro</span> <a href="#CREATE_SPREADSHEET.m%2Cuntyped"><span class="Identifier">CREATE_SPREADSHEET</span></a><span class="Other">(</span><span class="Identifier">statement</span><span class="Other">:</span> <span class="Identifier">untyped</span><span class="Other">)</span><span class="Other">:</span> <a href="spreadsheets.html#SpreadSheet"><span class="Identifier">SpreadSheet</span></a></pre></dt>
<dd>
Macro for returning spreadsheets from logic Atomic Action: Create Spreadsheet <tt class="docutils literal"><span class="pre">statement</span></tt> should be a statementList of Rows Syntax:<dl class="docutils"><dt>var sheet = CREATE_SPREADSHEET.</dt>
<dd>row1 row2 ...</dd>
</dl>
</dd>
<a id="FROM_PROC.m,untyped"></a>
<dt><pre><span class="Keyword">macro</span> <a href="#FROM_PROC.m%2Cuntyped"><span class="Identifier">FROM_PROC</span></a><span class="Other">(</span><span class="Identifier">statement</span><span class="Other">:</span> <span class="Identifier">untyped</span><span class="Other">)</span><span class="Other">:</span> <span class="Keyword">proc</span> <span class="Other">(</span><span class="Other">)</span><span class="Other">:</span> <a href="spreadsheets.html#SpreadSheet"><span class="Identifier">SpreadSheet</span></a></pre></dt>
<dd>
Macro for returning spreadsheet from logic Returns a function, which returns a SpreadSheet <tt class="docutils literal"><span class="pre">statement</span></tt> can be:<ul class="simple"><li>reference to a function</li>
<li>function body, which returns a SpreadSheet</li>
</ul>
</dd>
<a id="SET_PERMISSIONS.m,SpreadSheet,untyped"></a>
<dt><pre><span class="Keyword">macro</span> <a href="#SET_PERMISSIONS.m%2CSpreadSheet%2Cuntyped"><span class="Identifier">SET_PERMISSIONS</span></a><span class="Other">(</span><span class="Identifier">table</span><span class="Other">:</span> <span class="Keyword">var</span> <a href="spreadsheets.html#SpreadSheet"><span class="Identifier">SpreadSheet</span></a><span class="Other">;</span> <span class="Identifier">statement</span><span class="Other">:</span> <span class="Identifier">untyped</span><span class="Other">)</span></pre></dt>
<dd>
Macro for changing edit permissions on a SpreadSheet object Spreadsheet needs to be var <tt class="docutils literal"><span class="pre">statement</span></tt> needs to contain statements in the form of:<dl class="docutils"><dt>USER:</dt>
<dd>name : String</dd>
<dt>PERMIT:</dt>
<dd>columns : seq[String]</dd>
</dl>
</dd>
<a id="view.m,untyped"></a>
<dt><pre><span class="Keyword">macro</span> <a href="#view.m%2Cuntyped"><span class="Identifier">view</span></a><span class="Other">(</span><span class="Identifier">statement</span><span class="Other">:</span> <span class="Identifier">untyped</span><span class="Other">)</span><span class="Other">:</span> <a href="spreadsheets.html#SpreadSheet"><span class="Identifier">SpreadSheet</span></a></pre></dt>
<dd>
Defines the Syntax for a call of createView
</dd>
<a id="LOAD.m,untyped"></a>
<dt><pre><span class="Keyword">macro</span> <a href="#LOAD.m%2Cuntyped"><span class="Identifier">LOAD</span></a><span class="Other">(</span><span class="Identifier">statement</span><span class="Other">:</span> <span class="Identifier">untyped</span><span class="Other">)</span><span class="Other">:</span> <a href="spreadsheets.html#SpreadSheet"><span class="Identifier">SpreadSheet</span></a></pre></dt>
<dd>
Macro Interface for Meta-API loading
</dd>
<a id="SAVE.m,SpreadSheet,untyped"></a>
<dt><pre><span class="Keyword">macro</span> <a href="#SAVE.m%2CSpreadSheet%2Cuntyped"><span class="Identifier">SAVE</span></a><span class="Other">(</span><span class="Identifier">sheet</span><span class="Other">:</span> <a href="spreadsheets.html#SpreadSheet"><span class="Identifier">SpreadSheet</span></a><span class="Other">;</span> <span class="Identifier">statement</span><span class="Other">:</span> <span class="Identifier">untyped</span><span class="Other">)</span></pre></dt>
<dd>
Macro Interface for Meta-API saving
</dd>
<a id="ADDVIEW.m,untyped"></a>
<dt><pre><span class="Keyword">macro</span> <a href="#ADDVIEW.m%2Cuntyped"><span class="Identifier">ADDVIEW</span></a><span class="Other">(</span><span class="Identifier">statement</span><span class="Other">:</span> <span class="Identifier">untyped</span><span class="Other">)</span></pre></dt>
<dd>
Default Macro for adding views to a server execution Syntax:<dl class="docutils"><dt>ADDVIEW:</dt>
<dd><dl class="docutils"><dt>AS:</dt>
<dd>id</dd>
<dt>LOAD/FROM_PROC/SPREADSHEET:</dt>
<dd>anyKindOfSpreadsheetGeneration</dd>
</dl>
</dd>
</dl>
</dd>
<a id="ADDFORM.m,untyped"></a>
<dt><pre><span class="Keyword">macro</span> <a href="#ADDFORM.m%2Cuntyped"><span class="Identifier">ADDFORM</span></a><span class="Other">(</span><span class="Identifier">statement</span><span class="Other">:</span> <span class="Identifier">untyped</span><span class="Other">)</span></pre></dt>
<dd>
Default Macro for adding forms to a server execution Syntax:<dl class="docutils"><dt>ADDFORM:</dt>
<dd><dl class="docutils"><dt>AS:</dt>
<dd>id</dd>
<dt>LOAD/FROM_PROC/SPREADSHEET:</dt>
<dd>anyKindOfSpreadsheetGeneration</dd>
<dt>ALLOWEDIT:</dt>
<dd>namesOfEditableColumns</dd>
<dt>ACCCEPTIF:</dt>
<dd>proc(COMMIT : SpreadSheet) : bool</dd>
<dt>ONACCEPT:</dt>
<dd>proc(COMMIT : SpreadSheet)</dd>
</dl>
</dd>
</dl>
</dd>
<a id="ONSERVER.m,untyped"></a>
<dt><pre><span class="Keyword">macro</span> <a href="#ONSERVER.m%2Cuntyped"><span class="Identifier">ONSERVER</span></a><span class="Other">(</span><span class="Identifier">statement</span><span class="Other">:</span> <span class="Identifier">untyped</span><span class="Other">)</span></pre></dt>
<dd>
Macro which indicates that all codeblocks inside should be executed on an online ODSL-server After the <tt class="docutils literal"><span class="pre">statement</span></tt> code block is finished executing the SERVER object is started locally
</dd>
<a id="JOIN.m,SpreadSheet,untyped"></a>
<dt><pre><span class="Keyword">macro</span> <a href="#JOIN.m%2CSpreadSheet%2Cuntyped"><span class="Identifier">JOIN</span></a><span class="Other">(</span><span class="Identifier">sheet</span><span class="Other">:</span> <a href="spreadsheets.html#SpreadSheet"><span class="Identifier">SpreadSheet</span></a><span class="Other">;</span> <span class="Identifier">statement</span><span class="Other">:</span> <span class="Identifier">untyped</span><span class="Other">)</span><span class="Other">:</span> <a href="spreadsheets.html#SpreadSheet"><span class="Identifier">SpreadSheet</span></a></pre></dt>
<dd>
Macro Interface for <tt class="docutils literal"><span class="pre">joinSpreadsheets()</span></tt>
</dd>
</dl></div>
<div class="section" id="19">
<h1><a class="toc-backref" href="#19">Exports</a></h1>
<dl class="item">
<a href="spreadsheets.html#CSV"><span class="Identifier">CSV</span></a>, <a href="spreadsheets.html#fromGoogleSheets"><span class="Identifier">fromGoogleSheets</span></a>, <a href="spreadsheets.html#addRow"><span class="Identifier">addRow</span></a>, <a href="spreadsheets.html#|"><span class="Identifier">|</span></a>, <a href="spreadsheets.html#newCell"><span class="Identifier">newCell</span></a>, <a href="spreadsheets.html#|"><span class="Identifier">|</span></a>, <a href="spreadsheets.html#fromCSV"><span class="Identifier">fromCSV</span></a>, <a href="spreadsheets.html#|"><span class="Identifier">|</span></a>, <a href="spreadsheets.html#and"><span class="Identifier">and</span></a>, <a href="spreadsheets.html#|"><span class="Identifier">|</span></a>, <a href="spreadsheets.html#nkInt"><span class="Identifier">nkInt</span></a>, <a href="spreadsheets.html#addColumn"><span class="Identifier">addColumn</span></a>, <a href="spreadsheets.html#toCSV"><span class="Identifier">toCSV</span></a>, <a href="spreadsheets.html#addVarRow"><span class="Identifier">addVarRow</span></a>, <a href="spreadsheets.html#[]"><span class="Identifier">[]</span></a>, <a href="spreadsheets.html#newSpreadSheet"><span class="Identifier">newSpreadSheet</span></a>, <a href="spreadsheets.html#-="><span class="Identifier">-=</span></a>, <a href="spreadsheets.html#colLen"><span class="Identifier">colLen</span></a>, <a href="spreadsheets.html#generateHTMLView"><span class="Identifier">generateHTMLView</span></a>, <a href="spreadsheets.html#where"><span class="Identifier">where</span></a>, <a href="spreadsheets.html#header"><span class="Identifier">header</span></a>, <a href="spreadsheets.html#|"><span class="Identifier">|</span></a>, <a href="spreadsheets.html#update"><span class="Identifier">update</span></a>, <a href="spreadsheets.html#addVarRow"><span class="Identifier">addVarRow</span></a>, <a href="spreadsheets.html#getValues"><span class="Identifier">getValues</span></a>, <a href="spreadsheets.html#Nil"><span class="Identifier">Nil</span></a>, <a href="spreadsheets.html#HTML"><span class="Identifier">HTML</span></a>, <a href="spreadsheets.html#|"><span class="Identifier">|</span></a>, <a href="spreadsheets.html#null"><span class="Identifier">null</span></a>, <a href="spreadsheets.html#|"><span class="Identifier">|</span></a>, <a href="spreadsheets.html#|"><span class="Identifier">|</span></a>, <a href="spreadsheets.html#newCell"><span class="Identifier">newCell</span></a>, <a href="spreadsheets.html#joinSpreadSheetsStatic"><span class="Identifier">joinSpreadSheetsStatic</span></a>, <a href="spreadsheets.html#:="><span class="Identifier">:=</span></a>, <a href="spreadsheets.html#nkString"><span class="Identifier">nkString</span></a>, <a href="spreadsheets.html#|"><span class="Identifier">|</span></a>, <a href="spreadsheets.html#add"><span class="Identifier">add</span></a>, <a href="spreadsheets.html#len"><span class="Identifier">len</span></a>, <a href="spreadsheets.html#|"><span class="Identifier">|</span></a>, <a href="spreadsheets.html#Cell"><span class="Identifier">Cell</span></a>, <a href="spreadsheets.html#joinSpreadSheets"><span class="Identifier">joinSpreadSheets</span></a>, <a href="spreadsheets.html#|"><span class="Identifier">|</span></a>, <a href="spreadsheets.html#removeColumn"><span class="Identifier">removeColumn</span></a>, <a href="spreadsheets.html#writeHTML"><span class="Identifier">writeHTML</span></a>, <a href="spreadsheets.html#fromHTMLFile"><span class="Identifier">fromHTMLFile</span></a>, <a href="spreadsheets.html#sendNewFile"><span class="Identifier">sendNewFile</span></a>, <a href="spreadsheets.html#|"><span class="Identifier">|</span></a>, <a href="spreadsheets.html#nkFloat"><span class="Identifier">nkFloat</span></a>, <a href="spreadsheets.html#toHash"><span class="Identifier">toHash</span></a>, <a href="spreadsheets.html#appendSheet"><span class="Identifier">appendSheet</span></a>, <a href="spreadsheets.html#Row"><span class="Identifier">Row</span></a>, <a href="spreadsheets.html#|"><span class="Identifier">|</span></a>, <a href="spreadsheets.html#|"><span class="Identifier">|</span></a>, <a class="reference external" href="spreadsheets.html">spreadsheets</a>, <a href="spreadsheets.html#createView"><span class="Identifier">createView</span></a>, <a href="spreadsheets.html#and"><span class="Identifier">and</span></a>, <a href="spreadsheets.html#add"><span class="Identifier">add</span></a>, <a href="spreadsheets.html#SpreadSheet"><span class="Identifier">SpreadSheet</span></a>, <a href="spreadsheets.html#newCell"><span class="Identifier">newCell</span></a>, <a href="spreadsheets.html#|"><span class="Identifier">|</span></a>, <a href="spreadsheets.html#toJSONBody"><span class="Identifier">toJSONBody</span></a>, <a href="spreadsheets.html#[]"><span class="Identifier">[]</span></a>, <a href="spreadsheets.html#sendNewMail"><span class="Identifier">sendNewMail</span></a>, <a href="spreadsheets.html#addVarRow"><span class="Identifier">addVarRow</span></a>, <a href="spreadsheets.html#fromHTML"><span class="Identifier">fromHTML</span></a>, <a href="spreadsheets.html#|"><span class="Identifier">|</span></a>, <a href="spreadsheets.html#toJSON"><span class="Identifier">toJSON</span></a>, <a href="spreadsheets.html#renameColumn"><span class="Identifier">renameColumn</span></a>, <a href="spreadsheets.html#|"><span class="Identifier">|</span></a>, <a href="spreadsheets.html#-="><span class="Identifier">-=</span></a>, <a href="spreadsheets.html#getColumnIndex"><span class="Identifier">getColumnIndex</span></a>, <a href="spreadsheets.html#|"><span class="Identifier">|</span></a>, <a href="spreadsheets.html#+="><span class="Identifier">+=</span></a>, <a href="spreadsheets.html#setNewValue"><span class="Identifier">setNewValue</span></a>, <a href="spreadsheets.html#nkEmpty"><span class="Identifier">nkEmpty</span></a>, <a href="spreadsheets.html#CellKind"><span class="Identifier">CellKind</span></a>, <a href="spreadsheets.html#newCell"><span class="Identifier">newCell</span></a>, <a href="spreadsheets.html#renameSpreadsheet"><span class="Identifier">renameSpreadsheet</span></a>, <a href="spreadsheets.html#|"><span class="Identifier">|</span></a>, <a href="spreadsheets.html#show"><span class="Identifier">show</span></a>, <a href="spreadsheets.html#toGoogleSheets"><span class="Identifier">toGoogleSheets</span></a>, <a href="spreadsheets.html#GoogleSheets"><span class="Identifier">GoogleSheets</span></a>, <a href="spreadsheets.html#generateHTMLForm"><span class="Identifier">generateHTMLForm</span></a>, <a href="spreadsheets.html#fromJSONString"><span class="Identifier">fromJSONString</span></a>, <a href="spreadsheets.html#:="><span class="Identifier">:=</span></a>, <a href="spreadsheets.html#|"><span class="Identifier">|</span></a>, <a href="spreadsheets.html#|"><span class="Identifier">|</span></a>, <a href="spreadsheets.html#removeRow"><span class="Identifier">removeRow</span></a>, <a href="spreadsheets.html#add"><span class="Identifier">add</span></a>, <a href="spreadsheets.html#[]"><span class="Identifier">[]</span></a>, <a href="spreadsheets.html#setNewPermissions"><span class="Identifier">setNewPermissions</span></a>, <a href="spreadsheets.html#createView"><span class="Identifier">createView</span></a>, <a href="spreadsheets.html#addVarRow"><span class="Identifier">addVarRow</span></a>, <a href="spreadsheets.html#debugSpreadSheet"><span class="Identifier">debugSpreadSheet</span></a>, <a href="spreadsheets.html#newRow"><span class="Identifier">newRow</span></a>, <a href="spreadsheets.html#add"><span class="Identifier">add</span></a>, <a href="spreadsheets.html#[]"><span class="Identifier">[]</span></a>, <a href="spreadsheets.html#[]"><span class="Identifier">[]</span></a>, <a href="server.html#addFormToServer"><span class="Identifier">addFormToServer</span></a>, <a href="server.html#addFormToServer"><span class="Identifier">addFormToServer</span></a>, <a href="server.html#[]="><span class="Identifier">[]=</span></a>, <a href="server.html#odslServer"><span class="Identifier">odslServer</span></a>, <a class="reference external" href="server.html">server</a>, <a href="server.html#parseResult"><span class="Identifier">parseResult</span></a>, <a href="server.html#setPort"><span class="Identifier">setPort</span></a>, <a href="server.html#addToServer"><span class="Identifier">addToServer</span></a>, <a href="server.html#serveServer"><span class="Identifier">serveServer</span></a>, <a href="server.html#[]"><span class="Identifier">[]</span></a>, <a href="googleapi.html#shareGoogleSheet"><span class="Identifier">shareGoogleSheet</span></a>, <a class="reference external" href="googleapi.html">googleapi</a>, <a href="googleapi.html#writeGoogleSheet"><span class="Identifier">writeGoogleSheet</span></a>, <a href="googleapi.html#openSheet"><span class="Identifier">openSheet</span></a>, <a href="googleapi.html#createNewGoogleSheet"><span class="Identifier">createNewGoogleSheet</span></a>, <a class="reference external" href="metaapi.html">metaapi</a>, <a href="metaapi.html#loadSpreadSheet"><span class="Identifier">loadSpreadSheet</span></a>, <a href="metaapi.html#saveSpreadSheet"><span class="Identifier">saveSpreadSheet</span></a>
</dl></div>
</div>
</div>
<div class="row">
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br/>
<small style="color: var(--hint);">Made with Nim. Generated: 2021-10-14 10:53:28 UTC</small>
</div>
</div>
</div>
</div>
</body>
</html>