-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathreference.json
More file actions
2232 lines (2232 loc) · 74.5 KB
/
Copy pathreference.json
File metadata and controls
2232 lines (2232 loc) · 74.5 KB
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
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"Console": [
{
"help": "Moves the console cursor to the specified position. x,y are in pixels.",
"keyword": "AT",
"nodeID": "521",
"signature": "AT x, y",
"type": "command"
},
{
"help": "Generates a beep sound.",
"keyword": "BEEP",
"nodeID": "522",
"signature": "BEEP",
"type": "command"
},
{
"help": "Clears the screen.",
"keyword": "CLS",
"nodeID": "524",
"signature": "CLS ",
"type": "command"
},
{
"help": "Creates a form object from a MAP variable. This provides access to the following sub-commands: doEvents, close, refresh. The form MAP may contain the following properties: value, inputs, focus. Inputs is an array of MAP, each may contain the following properties: x, y, width, height, value, label, name, type, backgroundColor, color, visible, isExit, selectedIndex, length, noFocus, onclick",
"keyword": "FORM",
"nodeID": "525",
"signature": "FORM(map)",
"type": "command"
},
{
"help": "Reads from \"keyboard\" text and stores it in a variable.",
"keyword": "INPUT",
"nodeID": "527",
"signature": "INPUT [prompt,|;] var[, var [, ...]]",
"type": "command"
},
{
"help": "Reads a whole text line from file or console.",
"keyword": "LINEINPUT",
"nodeID": "528",
"signature": "LINEINPUT [#fileN] var",
"type": "command"
},
{
"help": "Reads a whole text line from file or console.",
"keyword": "LINPUT",
"nodeID": "529",
"signature": "LINPUT [#fileN] var",
"type": "command"
},
{
"help": "Moves the console cursor to the specified position. x,y are in character cells.",
"keyword": "LOCATE",
"nodeID": "530",
"signature": "LOCATE y, x",
"type": "command"
},
{
"help": "PRINT to the application logfile. The syntax is the same as command PRINT.",
"keyword": "LOGPRINT",
"nodeID": "531",
"signature": "LOGPRINT ...",
"type": "command"
},
{
"help": "Stop background sound and clear the sound queue.",
"keyword": "NOSOUND",
"nodeID": "532",
"signature": "NOSOUND",
"type": "command"
},
{
"help": "Enables/Disables the PEN/MOUSE mechanism.",
"keyword": "PEN",
"nodeID": "533",
"signature": "PEN ON|OFF",
"type": "command"
},
{
"help": "Play musical notes.",
"keyword": "PLAY",
"nodeID": "534",
"signature": "PLAY string",
"type": "command"
},
{
"help": "Display text or the value of an expression.",
"keyword": "PRINT",
"nodeID": "535",
"signature": "PRINT [USING [format];] [expr|str [,|; [expr|str]] ...",
"type": "command"
},
{
"help": "Plays a sound.",
"keyword": "SOUND",
"nodeID": "536",
"signature": "SOUND freq, dur_ms [, vol] [BG]",
"type": "command"
},
{
"help": "Returns a console code. 0 = reset, 1 = bold, -1 bold-off, 2 = underline, -2 = underline-off, 3 = reverse, -3 = reverse-off.",
"keyword": "CAT",
"nodeID": "538",
"signature": "CAT (x)",
"type": "function"
},
{
"help": "Binds a keystroke to a user defined function",
"keyword": "DEFINEKEY",
"nodeID": "1015",
"signature": "DEFINEKEY k,sub",
"type": "function"
},
{
"help": "Returns the last key-code in keyboard buffer, or an empty string if there are no keys. Special key-codes like the function-keys are returned as 2-byte string.",
"keyword": "INKEY",
"nodeID": "539",
"signature": "INKEY",
"type": "function"
},
{
"help": "Moves cursor position to the nth column.",
"keyword": "TAB",
"nodeID": "540",
"signature": "TAB (n)",
"type": "function"
}
],
"Data": [
{
"help": "Inserts the values at the end of the specified array.",
"keyword": "APPEND",
"nodeID": "581",
"signature": "APPEND a, val [, val [, ...]]",
"type": "command"
},
{
"help": "Deletes 'count' elements at position 'idx' of array 'a'.",
"keyword": "DELETE",
"nodeID": "542",
"signature": "DELETE a, idx [, count]",
"type": "command"
},
{
"help": "Returns true if x is: a zero length array, an empty string, an integer or real with the value 0.",
"keyword": "EMPTY",
"nodeID": "543",
"signature": "EMPTY (x)",
"type": "command"
},
{
"help": "Inserts the values to the specified array at the position idx.",
"keyword": "INSERT",
"nodeID": "544",
"signature": "INSERT a, idx, val [, val [, ...]]]",
"type": "command"
},
{
"help": "Assigns values in DATA items to specified variables.",
"keyword": "READ",
"nodeID": "546",
"signature": "READ var[, var ...]",
"type": "command"
},
{
"help": "Same as DIM only the contents of x are preserved.",
"keyword": "REDIM",
"nodeID": "547",
"signature": "REDIM x",
"type": "command"
},
{
"help": "Scans an array for the key. If key is not found the SEARCH command returns (in ridx) the value. (LBOUND(A)-1). In default-base arrays that means -1. The cmpfunc (if its specified) it takes 2 vars to compare. It must return 0 if x = y; non-zero if x <> y.",
"keyword": "SEARCH",
"nodeID": "548",
"signature": "SEARCH A, key, BYREF ridx [USE cmpfunc]",
"type": "command"
},
{
"help": "Sorts an array. The cmpfunc if specified, takes 2 vars to compare and must return: -1 if x < y, +1 if x > y, 0 if x = y.",
"keyword": "SORT",
"nodeID": "549",
"signature": "SORT array [USE cmpfunc]",
"type": "command"
},
{
"help": "Exchanges the values of two variables. The parameters may be variables of any type.",
"keyword": "SWAP",
"nodeID": "550",
"signature": "SWAP a, b",
"type": "command"
},
{
"help": "Creates a ARRAY or MAP variable from the given string or expression",
"keyword": "ARRAY",
"nodeID": "1432",
"signature": "ARRAY [var | expr]",
"type": "function"
},
{
"help": "Returns true if x is an array.",
"keyword": "ISARRAY",
"nodeID": "555",
"signature": "ISARRAY (x)",
"type": "function"
},
{
"help": "Returns true if x is a directory.",
"keyword": "ISDIR",
"nodeID": "556",
"signature": "ISDIR (x)",
"type": "function"
},
{
"help": "Returns true if x is a regular file.",
"keyword": "ISFILE",
"nodeID": "557",
"signature": "ISFILE (x)",
"type": "function"
},
{
"help": "Returns true if x is a link.",
"keyword": "ISLINK",
"nodeID": "558",
"signature": "ISLINK (x)",
"type": "function"
},
{
"help": "Returns true if x is an MAP variable type. A MAP provides value-key pair access along with array or dotted notation. The MAP can be initialized from a String variable using the ARRAY command.",
"keyword": "ISMAP",
"nodeID": "1430",
"signature": "ISMAP (x)",
"type": "function"
},
{
"help": "Returns true if x is a number (or it can be converted to a number).",
"keyword": "ISNUMBER",
"nodeID": "559",
"signature": "ISNUMBER (x)",
"type": "function"
},
{
"help": "Returns true if x is a string (and cannot be converted to a number).",
"keyword": "ISSTRING",
"nodeID": "560",
"signature": "ISSTRING (x)",
"type": "function"
},
{
"help": "Returns the lower bound of 'array'.",
"keyword": "LBOUND",
"nodeID": "561",
"signature": "LBOUND (array [, dim])",
"type": "function"
},
{
"help": "Returns the length of the value contained in the variable.",
"keyword": "LEN",
"nodeID": "562",
"signature": "LEN(d)",
"type": "function"
},
{
"help": "Returns the upper bound of 'array'.",
"keyword": "UBOUND",
"nodeID": "567",
"signature": "UBOUND (array [, dim])",
"type": "function"
},
{
"help": "Stores one or more constants, of any type, for subsequent access via READ command.",
"keyword": "DATA",
"nodeID": "569",
"signature": "DATA constant1 [,constant2]...",
"type": "statement"
},
{
"help": "Reserves storage space for an array.",
"keyword": "DIM",
"nodeID": "570",
"signature": "DIM var([lower TO] upper [, ...]) [, ...]",
"type": "statement"
},
{
"help": "Deallocates the memory used by the specified arrays or variables. After that these variables turned to simple integers with zero value.",
"keyword": "ERASE",
"nodeID": "571",
"signature": "ERASE var[, var[, ... var]]",
"type": "statement"
},
{
"help": "Specifies the position of the next data to be read.",
"keyword": "RESTORE",
"nodeID": "572",
"signature": "RESTORE label",
"type": "statement"
}
],
"Date": [
{
"help": "Returns the day, month and the year as integers.",
"keyword": "DATEDMY",
"nodeID": "573",
"signature": "DATEDMY dmy| julian_date, BYREF d, BYREF m, BYREF y",
"type": "command"
},
{
"help": "Converts a time-value to hours, minutes and seconds integer values.",
"keyword": "TIMEHMS",
"nodeID": "574",
"signature": "TIMEHMS hms| timer, BYREF h, BYREF m, BYREF s",
"type": "command"
},
{
"help": "Returns the current date as string \"DD/MM/YYYY\".",
"keyword": "DATE",
"nodeID": "575",
"signature": "DATE",
"type": "function"
},
{
"help": "Returns formatted date string.",
"keyword": "DATEFMT",
"nodeID": "576",
"signature": "DATEFMT (format, dmy| (d,m,y)| julian_date)",
"type": "function"
},
{
"help": "Returns the Julian date. (dates must be greater than 1/1/100 AD).",
"keyword": "JULIAN",
"nodeID": "577",
"signature": "JULIAN (dmy| (d,m,y))",
"type": "function"
},
{
"help": "Returns the number of milliseconds that have elapsed between successive calls.",
"keyword": "TICKS",
"nodeID": "1448",
"signature": "TICKS",
"type": "function"
},
{
"help": "Returns the current time as string \"HH:MM:SS\".",
"keyword": "TIME",
"nodeID": "578",
"signature": "TIME",
"type": "function"
},
{
"help": "Returns the number of seconds from midnight.",
"keyword": "TIMER",
"nodeID": "1449",
"signature": "TIMER",
"type": "function"
},
{
"help": "Returns the file last modified date and time.",
"keyword": "TIMESTAMP",
"nodeID": "1450",
"signature": "TIMESTAMP filename",
"type": "function"
},
{
"help": "Returns the day of the week (0 = Sunday).",
"keyword": "WEEKDAY",
"nodeID": "579",
"signature": "WEEKDAY (dmy| (d,m,y)| julian_date)",
"type": "function"
}
],
"File": [
{
"help": "Returns the access rights of the file.",
"keyword": "ACCESS",
"nodeID": "580",
"signature": "ACCESS (file)",
"type": "command"
},
{
"help": "Loads a specified memory image file into memory.",
"keyword": "BLOAD",
"nodeID": "582",
"signature": "BLOAD filename[, address]",
"type": "command"
},
{
"help": "Writes a byte on file or device. (Binary mode).",
"keyword": "BPUTC",
"nodeID": "583",
"signature": "BPUTC# fileN; byte",
"type": "command"
},
{
"help": "Copies a specified portion of memory to a specified file.",
"keyword": "BSAVE",
"nodeID": "584",
"signature": "BSAVE filename, address, length",
"type": "command"
},
{
"help": "Changes the current working directory.",
"keyword": "CHDIR",
"nodeID": "585",
"signature": "CHDIR dir",
"type": "command"
},
{
"help": "Change permissions of a file. See also ACCESS.",
"keyword": "CHMOD",
"nodeID": "586",
"signature": "CHMOD file, mode",
"type": "command"
},
{
"help": "Close a file or device.",
"keyword": "CLOSE",
"nodeID": "587",
"signature": "CLOSE #fileN",
"type": "command"
},
{
"help": "Makes a copy of specified file to the 'newfile'.",
"keyword": "COPY",
"nodeID": "588",
"signature": "COPY \"file\", \"newfile\"",
"type": "command"
},
{
"help": "Walk through the specified directories. The user-defined function must returns zero to stop the process.",
"keyword": "DIRWALK",
"nodeID": "589",
"signature": "DIRWALK directory [, wildcards] [USE ...]",
"type": "command"
},
{
"help": "Reads data from file.",
"keyword": "INPUT",
"nodeID": "590",
"signature": "INPUT #fileN; var1 [,delim] [, var2 [,delim]] ...",
"type": "command"
},
{
"help": "Deletes the specified file.",
"keyword": "KILL",
"nodeID": "591",
"signature": "KILL \"file\"",
"type": "command"
},
{
"help": "Lock a record or an area (not yet implemented).",
"keyword": "LOCK",
"nodeID": "592",
"signature": "LOCK",
"type": "command"
},
{
"help": "Create a directory.",
"keyword": "MKDIR",
"nodeID": "593",
"signature": "MKDIR dir",
"type": "command"
},
{
"help": "Makes a file or device available for sequential input, sequential output.",
"keyword": "OPEN",
"nodeID": "594",
"signature": "OPEN file [FOR {INPUT|OUTPUT|APPEND}] AS #fileN",
"type": "command"
},
{
"help": "Renames the specified file.",
"keyword": "RENAME",
"nodeID": "595",
"signature": "RENAME \"file\", \"newname\"",
"type": "command"
},
{
"help": "Removes a directory.",
"keyword": "RMDIR",
"nodeID": "596",
"signature": "RMDIR dir",
"type": "command"
},
{
"help": "Sets file position for the next read/write.",
"keyword": "SEEK",
"nodeID": "597",
"signature": "SEEK #fileN; pos",
"type": "command"
},
{
"help": "Loads a text file into array variable. Each text-line is an array element. type 0 = load into array (default), 1 = load into string.",
"keyword": "TLOAD",
"nodeID": "598",
"signature": "TLOAD file, BYREF var [, type]",
"type": "command"
},
{
"help": "Writes an array to a text file. Each array element is a text-line.",
"keyword": "TSAVE",
"nodeID": "599",
"signature": "TSAVE file, var",
"type": "command"
},
{
"help": "Store variables to a file as binary data.",
"keyword": "WRITE",
"nodeID": "600",
"signature": "WRITE #fileN; var1 [, ...]",
"type": "command"
},
{
"help": "Read variables from a binary file.",
"keyword": "READ",
"nodeID": "601",
"signature": "READ #fileN; var1 [, ...]",
"type": "command"
},
{
"help": "Reads and returns a byte from file or device (Binary mode) .",
"keyword": "BGETC",
"nodeID": "602",
"signature": "BGETC (fileN)",
"type": "function"
},
{
"help": "Returns true if the file pointer is at end of the file. For COMx and SOCL VFS returns true if the connection is broken.",
"keyword": "EOF",
"nodeID": "603",
"signature": "EOF (fileN)",
"type": "function"
},
{
"help": "Returns true if file exists.",
"keyword": "EXIST",
"nodeID": "604",
"signature": "EXIST (file)",
"type": "function"
},
{
"help": "Returns an array with the filenames. If there are no files returns an empty array.",
"keyword": "FILES",
"nodeID": "605",
"signature": "FILES (wildcards)",
"type": "function"
},
{
"help": "Returns an unused file handle.",
"keyword": "FREEFILE",
"nodeID": "607",
"signature": "FREEFILE",
"type": "function"
},
{
"help": "Reads 'len' bytes from file or console (if fileN is omitted). This function does not convert the data or remove spaces.",
"keyword": "INPUT",
"nodeID": "608",
"signature": "INPUT (len [, fileN])",
"type": "function"
},
{
"help": "Returns the length of file in bytes. For other devices, returns the number of available data.",
"keyword": "LOF",
"nodeID": "609",
"signature": "LOF (fileN)",
"type": "function"
},
{
"help": "Returns the current file position.",
"keyword": "SEEK",
"nodeID": "610",
"signature": "SEEK (fileN)",
"type": "function"
}
],
"Graphics": [
{
"help": "Draws an arc. astart, aend = first,last angle in radians.",
"keyword": "ARC",
"nodeID": "611",
"signature": "ARC [STEP] x,y,r,astart,aend [,aspect [,color]] [COLOR color]",
"type": "command"
},
{
"help": "Draws a chart of array values in the rectangular area x1,y1,x2,y2. Styles: 0 = simple, 1 = with-marks, 2 = with ruler, 3 = with marks and ruler.",
"keyword": "CHART",
"nodeID": "612",
"signature": "CHART LINECHART|BARCHART, array() [, style [, x1, y1, x2, y2]]",
"type": "command"
},
{
"help": "Draws a circle (or an ellipse if the aspect is specified).",
"keyword": "CIRCLE",
"nodeID": "613",
"signature": "CIRCLE [STEP] x,y,r [,aspect [, color]] [COLOR color] [FILLED]",
"type": "command"
},
{
"help": "Specifies the foreground and background colors.",
"keyword": "COLOR",
"nodeID": "614",
"signature": "COLOR foreground-color [, background-color]",
"type": "command"
},
{
"help": "Draw lines as specified by the given directional commands. ",
"keyword": "DRAW",
"nodeID": "615",
"signature": "DRAW \"commands\"",
"type": "command"
},
{
"help": "Draws a polyline. ",
"keyword": "DRAWPOLY",
"nodeID": "616",
"signature": "DRAWPOLY array [,x-origin,y-origin [, scalef [, color]]] [COLOR color] [FILLED]",
"type": "command"
},
{
"help": "Creates a graphical image object providing access to the following sub-commands: show([x,y [,zindex [,opacity]]]), hide, save([x,y [,w,h]])",
"keyword": "IMAGE",
"nodeID": "617",
"signature": "IMAGE [#handle | fileName | http://path-to-file.png | image-var | array of pixmap data]",
"type": "command"
},
{
"help": "Draws a line.",
"keyword": "LINE",
"nodeID": "618",
"signature": "LINE [STEP] x,y [,|STEP x2,y2] [, color| COLOR color]",
"type": "command"
},
{
"help": "Fills an enclosed area on the graphics screen with a specific color. x,y = Screen coordinate (column, row) within the area that is to be filled.",
"keyword": "PAINT",
"nodeID": "619",
"signature": "PAINT [STEP] x, y [,fill-color [,border-color]]",
"type": "command"
},
{
"help": "Graph of f(x).",
"keyword": "PLOT",
"nodeID": "620",
"signature": "PLOT xmin, xmax USE f(x)",
"type": "command"
},
{
"help": "Draw a pixel.",
"keyword": "PSET",
"nodeID": "621",
"signature": "PSET [STEP] x,y [, color| COLOR color]",
"type": "command"
},
{
"help": "Draws a rectangular parallelogram.",
"keyword": "RECT",
"nodeID": "622",
"signature": "RECT [STEP] x,y [,|STEP x2,y2] [, color| COLOR color] [FILLED]",
"type": "command"
},
{
"help": "This command is used to display pending graphics operations allowing for smooth animations.",
"keyword": "SHOWPAGE",
"nodeID": "1429",
"signature": "SHOWPAGE",
"type": "command"
},
{
"help": "Defines a viewport. The viewport defined by VIEW is disabled by a VIEW command with no parameters.",
"keyword": "VIEW",
"nodeID": "623",
"signature": "VIEW [x1,y1,x2,y2 [,color [,border-color]]]",
"type": "command"
},
{
"help": "The WINDOW command allows you to redefine the corners of the display screen as a pair of \"world\" coordinates. WINDOW is also overloaded as a function, returning a system object providing access to the following sub-commands: graphicsScreen1, graphicsScreen2, textScreen, alert, ask, menu, message, showKeypad, insetTextScreen",
"keyword": "WINDOW",
"nodeID": "624",
"signature": "WINDOW [x1,y1,x2,y2]",
"type": "command"
},
{
"help": "Holds the screen width in pixels",
"keyword": "XMAX",
"nodeID": "1526",
"signature": "XMAX",
"type": "constant"
},
{
"help": "Holds the screen height in pixels.",
"keyword": "YMAX",
"nodeID": "1527",
"signature": "YMAX",
"type": "constant"
},
{
"help": "Returns the PEN/MOUSE data.",
"keyword": "PEN",
"nodeID": "627",
"signature": "PEN (0..14)",
"type": "function"
},
{
"help": "Returns the color of the pixel at x,y.",
"keyword": "POINT",
"nodeID": "628",
"signature": "POINT (x [, y])",
"type": "function"
},
{
"help": "Returns the RGB color codes for the specified values. Takes values 0..255 for each of the color.",
"keyword": "RGB",
"nodeID": "629",
"signature": "RGB (r, g, b)",
"type": "function"
},
{
"help": "Returns the RGB color codes for the specified values. Takes values 0..1 for each of the color.",
"keyword": "RGBF",
"nodeID": "630",
"signature": "RGBF (r, g, b)",
"type": "function"
},
{
"help": "Returns the text height of string s in pixels. See TXTH.",
"keyword": "TEXTHEIGHT",
"nodeID": "631",
"signature": "TEXTHEIGHT (s)",
"type": "function"
},
{
"help": "Returns the text width of string s in pixels. See TXTW.",
"keyword": "TEXTWIDTH",
"nodeID": "632",
"signature": "TEXTWIDTH (s)",
"type": "function"
},
{
"help": "Returns the text height of string s in pixels. See TEXTHEIGHT.",
"keyword": "TXTH",
"nodeID": "633",
"signature": "TXTH (s)",
"type": "function"
},
{
"help": "Returns the text width of string s in pixels. See TEXTWIDTH.",
"keyword": "TXTW",
"nodeID": "634",
"signature": "TXTW (s)",
"type": "function"
},
{
"help": "Returns the current X position of the cursor in \"characters\".",
"keyword": "XPOS",
"nodeID": "635",
"signature": "XPOS",
"type": "function"
},
{
"help": "Returns the current Y position of the cursor in \"characters\".",
"keyword": "YPOS",
"nodeID": "636",
"signature": "YPOS",
"type": "function"
}
],
"Language": [
{
"help": "Invoke a sub or func by address pointer.",
"keyword": "CALL",
"nodeID": "637",
"signature": "CALL (fp)",
"type": "command"
},
{
"help": "The THROW command (previously known as RTE) is used to initiate a catch-able error. If there is no surrounding TRY/CATCH block, THROW can be used to abort the program.",
"keyword": "THROW",
"nodeID": "1437",
"signature": "THROW [info [, ...]]",
"type": "command"
},
{
"help": "FALSE",
"keyword": "FALSE",
"nodeID": "1457",
"signature": "FALSE",
"type": "constant"
},
{
"help": "TRUE",
"keyword": "TRUE",
"nodeID": "1455",
"signature": "TRUE",
"type": "constant"
},
{
"help": "Inline version of IF. eg, animal = \"cat\": fur = IFF( animal = \"cat\", \"yes\", \"no\"): ? fur",
"keyword": "IFF",
"nodeID": "638",
"signature": "IFF expr",
"type": "function"
},
{
"help": "See: OPEN",
"keyword": "AS",
"nodeID": "1424",
"signature": "AS #fileN",
"type": "keyword"
},
{
"help": "Play sound in the background. This prevent the program from blocking while the sound plays.",
"keyword": "BG",
"nodeID": "1428",
"signature": "SOUND frq, dur [, vol] [BG]",
"type": "keyword"
},
{
"help": "Sub/func argument declaration. Changes to the variable will be passed back to the caller. Equivalent syntax to the @ character.",
"keyword": "BYREF",
"nodeID": "639",
"signature": "BYREF",
"type": "keyword"
},
{
"help": "Branch condition for a SELECT statement.",
"keyword": "CASE",
"nodeID": "640",
"signature": "CASE expr",
"type": "keyword"
},
{
"help": "The CATCH statement is used to CATCH an run-time error. This is typically used with errors raised when calling a file system command that cannot be completed, for example attempting to open a non-existent file. The CATCH statement has two modes. You can supply a variable argument to store the error string. Alternatively you can supply an expression. When the raised error matches the (String) expression, the error will be caught. When using the expression mode, you can supply a succession of CATCH statements to handle various error messages separately.",
"keyword": "CATCH",
"nodeID": "1426",
"signature": "CATCH [var | expr]",
"type": "keyword"
},
{
"help": "Forward declare SUB or FUNC. Obsolete QB compatibility",
"keyword": "DECLARE",
"nodeID": "1419",
"signature": "DECLARE FUNC xxx",
"type": "keyword"
},
{
"help": "Defines a single line function. eg, DEF MySin(x) = SIN(x): ? MySin(pi/2)",
"keyword": "DEF",
"nodeID": "641",
"signature": "DEF name[(par1[,...])] = expression",
"type": "keyword"
},
{
"help": "FOR f IN files(\"*.txt\") DO PRINT f",
"keyword": "DO",
"nodeID": "642",
"signature": "DO",
"type": "keyword"
},
{
"help": "foo = 2: if foo==1: ? \"one\": ELIF foo==2: ? \"two\": fi",
"keyword": "ELIF",
"nodeID": "643",
"signature": "ELIF",
"type": "keyword"
},
{
"help": "foo = 2: if foo==1: ? \"one\": ELSE: ? \"not one\": fi",
"keyword": "ELSE",
"nodeID": "644",
"signature": "ELSE",
"type": "keyword"
},
{
"help": "foo = 2: if foo==1: ? \"one\": ELSEIF foo==2: ? \"two\": fi",
"keyword": "ELSEIF",
"nodeID": "645",
"signature": "ELSEIF",
"type": "keyword"
},
{
"help": "The END TRY statement marks the end of a TRY/CATCH block.",
"keyword": "END TRY",
"nodeID": "1427",
"signature": "END TRY",
"type": "keyword"
},
{
"help": "foo = 1: if foo==1: ? \"one\": ENDIF",
"keyword": "ENDIF",
"nodeID": "646",
"signature": "ENDIF",
"type": "keyword"
},
{
"help": "Exits a multi line function definition, a loop, or a subprogram. By default (if no parameter is specified) exits from last command block (loop, for-loop or routine).",
"keyword": "EXIT",
"nodeID": "648",
"signature": "EXIT [FOR|LOOP|SUB|FUNC]",
"type": "keyword"
},
{
"help": "Declares the end of an IF statement. Same as ENDIF.",
"keyword": "FI",
"nodeID": "650",
"signature": "FI",
"type": "keyword"
},
{
"help": "Declares a function. Return a value by assigning a 'variable' with the same name as the function.",
"keyword": "FUNC",
"nodeID": "651",
"signature": "FUNC foo (a, b)",
"type": "keyword"
},
{
"help": "Declare local variables inside a SUB or FUNC. Local variables no longer exist once the SUB or FUNC has returned.",
"keyword": "LOCAL",
"nodeID": "653",
"signature": "LOCAL",
"type": "keyword"
},
{
"help": "See FOR.",
"keyword": "NEXT",
"nodeID": "654",
"signature": "NEXT",
"type": "keyword"
},
{
"help": "Perform multiple tests on the expression. Offers a more concise syntax to writing successive IF tests.",
"keyword": "SELECT",
"nodeID": "655",
"signature": "SELECT CASE expr",
"type": "keyword"
},
{
"help": "Specifies the loop counter increment in a FOR loop",
"keyword": "STEP",
"nodeID": "1421",
"signature": "FOR t = 1 TO 10 STEP 2",
"type": "keyword"
},
{
"help": "Terminates execution of a program, closes all files opened by the program, and returns control to the operating system.",
"keyword": "STOP",
"nodeID": "656",
"signature": "STOP [error]",
"type": "keyword"
},
{
"help": "Declare a sub procedure. Sub's do not return a value but can return argument values when declared as BYREF.",
"keyword": "SUB",
"nodeID": "657",
"signature": "SUB foo (a, b)",
"type": "keyword"
},
{
"help": "foo = 1: if foo==1 THEN: ? \"one\": fi",
"keyword": "THEN",
"nodeID": "658",
"signature": "THEN",
"type": "keyword"
},
{
"help": "Specifies the loop counter end in a FOR loop",
"keyword": "TO",
"nodeID": "1420",
"signature": "FOR t = 1 TO 10",
"type": "keyword"
},
{
"help": "The TRY statement introduces a TRY/CATCH BLOCK",
"keyword": "TRY",
"nodeID": "1425",
"signature": "TRY",
"type": "keyword"
},
{
"help": "a = 0: repeat: a++: ? a: UNTIL a = 10",
"keyword": "UNTIL",
"nodeID": "660",
"signature": "UNTIL",
"type": "keyword"
},
{
"help": "Used with various commands for passing a user-defined expression. eg SPLIT s,\" \",v USE TRIM(x). Trim each element of v.",
"keyword": "USE",
"nodeID": "661",
"signature": "USE",
"type": "keyword"
},
{
"help": "Synonym for USING",
"keyword": "USG",
"nodeID": "1423",
"signature": "PRINT USG",
"type": "keyword"
},
{