tree-sitter-bsl 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,3311 @@
1
+ {
2
+ "$schema": "https://tree-sitter.github.io/tree-sitter/assets/schemas/grammar.schema.json",
3
+ "name": "bsl",
4
+ "word": "identifier",
5
+ "rules": {
6
+ "source_file": {
7
+ "type": "REPEAT",
8
+ "content": {
9
+ "type": "SYMBOL",
10
+ "name": "_definition"
11
+ }
12
+ },
13
+ "_definition": {
14
+ "type": "CHOICE",
15
+ "members": [
16
+ {
17
+ "type": "SYMBOL",
18
+ "name": "procedure_definition"
19
+ },
20
+ {
21
+ "type": "SYMBOL",
22
+ "name": "function_definition"
23
+ },
24
+ {
25
+ "type": "SYMBOL",
26
+ "name": "var_definition"
27
+ },
28
+ {
29
+ "type": "SYMBOL",
30
+ "name": "statement"
31
+ }
32
+ ]
33
+ },
34
+ "procedure_definition": {
35
+ "type": "SEQ",
36
+ "members": [
37
+ {
38
+ "type": "CHOICE",
39
+ "members": [
40
+ {
41
+ "type": "SYMBOL",
42
+ "name": "ASYNC_KEYWORD"
43
+ },
44
+ {
45
+ "type": "BLANK"
46
+ }
47
+ ]
48
+ },
49
+ {
50
+ "type": "SYMBOL",
51
+ "name": "PROCEDURE_KEYWORD"
52
+ },
53
+ {
54
+ "type": "FIELD",
55
+ "name": "name",
56
+ "content": {
57
+ "type": "SYMBOL",
58
+ "name": "identifier"
59
+ }
60
+ },
61
+ {
62
+ "type": "FIELD",
63
+ "name": "parameters",
64
+ "content": {
65
+ "type": "SYMBOL",
66
+ "name": "parameters"
67
+ }
68
+ },
69
+ {
70
+ "type": "CHOICE",
71
+ "members": [
72
+ {
73
+ "type": "FIELD",
74
+ "name": "export",
75
+ "content": {
76
+ "type": "SYMBOL",
77
+ "name": "EXPORT_KEYWORD"
78
+ }
79
+ },
80
+ {
81
+ "type": "BLANK"
82
+ }
83
+ ]
84
+ },
85
+ {
86
+ "type": "REPEAT",
87
+ "content": {
88
+ "type": "SYMBOL",
89
+ "name": "statement"
90
+ }
91
+ },
92
+ {
93
+ "type": "SYMBOL",
94
+ "name": "END_PROCEDURE_KEYWORD"
95
+ }
96
+ ]
97
+ },
98
+ "function_definition": {
99
+ "type": "SEQ",
100
+ "members": [
101
+ {
102
+ "type": "CHOICE",
103
+ "members": [
104
+ {
105
+ "type": "SYMBOL",
106
+ "name": "ASYNC_KEYWORD"
107
+ },
108
+ {
109
+ "type": "BLANK"
110
+ }
111
+ ]
112
+ },
113
+ {
114
+ "type": "SYMBOL",
115
+ "name": "FUNCTION_KEYWORD"
116
+ },
117
+ {
118
+ "type": "FIELD",
119
+ "name": "name",
120
+ "content": {
121
+ "type": "SYMBOL",
122
+ "name": "identifier"
123
+ }
124
+ },
125
+ {
126
+ "type": "FIELD",
127
+ "name": "parameters",
128
+ "content": {
129
+ "type": "SYMBOL",
130
+ "name": "parameters"
131
+ }
132
+ },
133
+ {
134
+ "type": "CHOICE",
135
+ "members": [
136
+ {
137
+ "type": "FIELD",
138
+ "name": "export",
139
+ "content": {
140
+ "type": "SYMBOL",
141
+ "name": "EXPORT_KEYWORD"
142
+ }
143
+ },
144
+ {
145
+ "type": "BLANK"
146
+ }
147
+ ]
148
+ },
149
+ {
150
+ "type": "REPEAT",
151
+ "content": {
152
+ "type": "SYMBOL",
153
+ "name": "statement"
154
+ }
155
+ },
156
+ {
157
+ "type": "SYMBOL",
158
+ "name": "END_FUNCTION_KEYWORD"
159
+ }
160
+ ]
161
+ },
162
+ "var_definition": {
163
+ "type": "PREC",
164
+ "value": 1,
165
+ "content": {
166
+ "type": "SEQ",
167
+ "members": [
168
+ {
169
+ "type": "SYMBOL",
170
+ "name": "VAR_KEYWORD"
171
+ },
172
+ {
173
+ "type": "SEQ",
174
+ "members": [
175
+ {
176
+ "type": "FIELD",
177
+ "name": "var_name",
178
+ "content": {
179
+ "type": "SYMBOL",
180
+ "name": "identifier"
181
+ }
182
+ },
183
+ {
184
+ "type": "REPEAT",
185
+ "content": {
186
+ "type": "SEQ",
187
+ "members": [
188
+ {
189
+ "type": "STRING",
190
+ "value": ","
191
+ },
192
+ {
193
+ "type": "FIELD",
194
+ "name": "var_name",
195
+ "content": {
196
+ "type": "SYMBOL",
197
+ "name": "identifier"
198
+ }
199
+ }
200
+ ]
201
+ }
202
+ }
203
+ ]
204
+ },
205
+ {
206
+ "type": "CHOICE",
207
+ "members": [
208
+ {
209
+ "type": "FIELD",
210
+ "name": "export",
211
+ "content": {
212
+ "type": "SYMBOL",
213
+ "name": "EXPORT_KEYWORD"
214
+ }
215
+ },
216
+ {
217
+ "type": "BLANK"
218
+ }
219
+ ]
220
+ },
221
+ {
222
+ "type": "CHOICE",
223
+ "members": [
224
+ {
225
+ "type": "STRING",
226
+ "value": ";"
227
+ },
228
+ {
229
+ "type": "BLANK"
230
+ }
231
+ ]
232
+ }
233
+ ]
234
+ }
235
+ },
236
+ "parameters": {
237
+ "type": "SEQ",
238
+ "members": [
239
+ {
240
+ "type": "STRING",
241
+ "value": "("
242
+ },
243
+ {
244
+ "type": "CHOICE",
245
+ "members": [
246
+ {
247
+ "type": "SEQ",
248
+ "members": [
249
+ {
250
+ "type": "FIELD",
251
+ "name": "parameter",
252
+ "content": {
253
+ "type": "SYMBOL",
254
+ "name": "parameter"
255
+ }
256
+ },
257
+ {
258
+ "type": "REPEAT",
259
+ "content": {
260
+ "type": "SEQ",
261
+ "members": [
262
+ {
263
+ "type": "STRING",
264
+ "value": ","
265
+ },
266
+ {
267
+ "type": "FIELD",
268
+ "name": "parameter",
269
+ "content": {
270
+ "type": "SYMBOL",
271
+ "name": "parameter"
272
+ }
273
+ }
274
+ ]
275
+ }
276
+ }
277
+ ]
278
+ },
279
+ {
280
+ "type": "BLANK"
281
+ }
282
+ ]
283
+ },
284
+ {
285
+ "type": "STRING",
286
+ "value": ")"
287
+ }
288
+ ]
289
+ },
290
+ "parameter": {
291
+ "type": "SEQ",
292
+ "members": [
293
+ {
294
+ "type": "FIELD",
295
+ "name": "val",
296
+ "content": {
297
+ "type": "CHOICE",
298
+ "members": [
299
+ {
300
+ "type": "SYMBOL",
301
+ "name": "VAL_KEYWORD"
302
+ },
303
+ {
304
+ "type": "BLANK"
305
+ }
306
+ ]
307
+ }
308
+ },
309
+ {
310
+ "type": "FIELD",
311
+ "name": "name",
312
+ "content": {
313
+ "type": "SYMBOL",
314
+ "name": "identifier"
315
+ }
316
+ },
317
+ {
318
+ "type": "FIELD",
319
+ "name": "def",
320
+ "content": {
321
+ "type": "CHOICE",
322
+ "members": [
323
+ {
324
+ "type": "SYMBOL",
325
+ "name": "_def_value"
326
+ },
327
+ {
328
+ "type": "BLANK"
329
+ }
330
+ ]
331
+ }
332
+ }
333
+ ]
334
+ },
335
+ "_def_value": {
336
+ "type": "SEQ",
337
+ "members": [
338
+ {
339
+ "type": "STRING",
340
+ "value": "="
341
+ },
342
+ {
343
+ "type": "SYMBOL",
344
+ "name": "_const_value"
345
+ }
346
+ ]
347
+ },
348
+ "statement": {
349
+ "type": "CHOICE",
350
+ "members": [
351
+ {
352
+ "type": "SYMBOL",
353
+ "name": "call_statement"
354
+ },
355
+ {
356
+ "type": "SYMBOL",
357
+ "name": "assignment_statement"
358
+ },
359
+ {
360
+ "type": "SYMBOL",
361
+ "name": "return_statement"
362
+ },
363
+ {
364
+ "type": "SYMBOL",
365
+ "name": "try_statement"
366
+ },
367
+ {
368
+ "type": "SYMBOL",
369
+ "name": "rise_error_statement"
370
+ },
371
+ {
372
+ "type": "SYMBOL",
373
+ "name": "var_statement"
374
+ },
375
+ {
376
+ "type": "SYMBOL",
377
+ "name": "if_statement"
378
+ },
379
+ {
380
+ "type": "SYMBOL",
381
+ "name": "while_statement"
382
+ },
383
+ {
384
+ "type": "SYMBOL",
385
+ "name": "for_statement"
386
+ },
387
+ {
388
+ "type": "SYMBOL",
389
+ "name": "for_each_statement"
390
+ },
391
+ {
392
+ "type": "SYMBOL",
393
+ "name": "continue_statement"
394
+ },
395
+ {
396
+ "type": "SYMBOL",
397
+ "name": "break_statement"
398
+ },
399
+ {
400
+ "type": "SYMBOL",
401
+ "name": "execute_statement"
402
+ },
403
+ {
404
+ "type": "SYMBOL",
405
+ "name": "goto_statement"
406
+ },
407
+ {
408
+ "type": "SYMBOL",
409
+ "name": "label_statement"
410
+ },
411
+ {
412
+ "type": "SYMBOL",
413
+ "name": "add_handler_statement"
414
+ },
415
+ {
416
+ "type": "SYMBOL",
417
+ "name": "remove_handler_statement"
418
+ },
419
+ {
420
+ "type": "SYMBOL",
421
+ "name": "preprocessor"
422
+ },
423
+ {
424
+ "type": "SYMBOL",
425
+ "name": "await_statement"
426
+ }
427
+ ]
428
+ },
429
+ "call_statement": {
430
+ "type": "SEQ",
431
+ "members": [
432
+ {
433
+ "type": "SYMBOL",
434
+ "name": "call_expression"
435
+ },
436
+ {
437
+ "type": "CHOICE",
438
+ "members": [
439
+ {
440
+ "type": "STRING",
441
+ "value": ";"
442
+ },
443
+ {
444
+ "type": "BLANK"
445
+ }
446
+ ]
447
+ }
448
+ ]
449
+ },
450
+ "assignment_statement": {
451
+ "type": "SEQ",
452
+ "members": [
453
+ {
454
+ "type": "FIELD",
455
+ "name": "left",
456
+ "content": {
457
+ "type": "SYMBOL",
458
+ "name": "_assignment_member"
459
+ }
460
+ },
461
+ {
462
+ "type": "STRING",
463
+ "value": "="
464
+ },
465
+ {
466
+ "type": "FIELD",
467
+ "name": "right",
468
+ "content": {
469
+ "type": "SYMBOL",
470
+ "name": "expression"
471
+ }
472
+ },
473
+ {
474
+ "type": "CHOICE",
475
+ "members": [
476
+ {
477
+ "type": "STRING",
478
+ "value": ";"
479
+ },
480
+ {
481
+ "type": "BLANK"
482
+ }
483
+ ]
484
+ }
485
+ ]
486
+ },
487
+ "return_statement": {
488
+ "type": "PREC_RIGHT",
489
+ "value": 0,
490
+ "content": {
491
+ "type": "SEQ",
492
+ "members": [
493
+ {
494
+ "type": "SYMBOL",
495
+ "name": "RETURN_KEYWORD"
496
+ },
497
+ {
498
+ "type": "CHOICE",
499
+ "members": [
500
+ {
501
+ "type": "SYMBOL",
502
+ "name": "expression"
503
+ },
504
+ {
505
+ "type": "BLANK"
506
+ }
507
+ ]
508
+ },
509
+ {
510
+ "type": "CHOICE",
511
+ "members": [
512
+ {
513
+ "type": "STRING",
514
+ "value": ";"
515
+ },
516
+ {
517
+ "type": "BLANK"
518
+ }
519
+ ]
520
+ }
521
+ ]
522
+ }
523
+ },
524
+ "try_statement": {
525
+ "type": "SEQ",
526
+ "members": [
527
+ {
528
+ "type": "SYMBOL",
529
+ "name": "TRY_KEYWORD"
530
+ },
531
+ {
532
+ "type": "REPEAT",
533
+ "content": {
534
+ "type": "SYMBOL",
535
+ "name": "statement"
536
+ }
537
+ },
538
+ {
539
+ "type": "SYMBOL",
540
+ "name": "EXCEPT_KEYWORD"
541
+ },
542
+ {
543
+ "type": "REPEAT",
544
+ "content": {
545
+ "type": "SYMBOL",
546
+ "name": "statement"
547
+ }
548
+ },
549
+ {
550
+ "type": "SYMBOL",
551
+ "name": "END_TRY_KEYWORD"
552
+ },
553
+ {
554
+ "type": "CHOICE",
555
+ "members": [
556
+ {
557
+ "type": "STRING",
558
+ "value": ";"
559
+ },
560
+ {
561
+ "type": "BLANK"
562
+ }
563
+ ]
564
+ }
565
+ ]
566
+ },
567
+ "rise_error_statement": {
568
+ "type": "SEQ",
569
+ "members": [
570
+ {
571
+ "type": "SYMBOL",
572
+ "name": "RAISE_KEYWORD"
573
+ },
574
+ {
575
+ "type": "CHOICE",
576
+ "members": [
577
+ {
578
+ "type": "SYMBOL",
579
+ "name": "arguments"
580
+ },
581
+ {
582
+ "type": "SYMBOL",
583
+ "name": "expression"
584
+ }
585
+ ]
586
+ },
587
+ {
588
+ "type": "CHOICE",
589
+ "members": [
590
+ {
591
+ "type": "STRING",
592
+ "value": ";"
593
+ },
594
+ {
595
+ "type": "BLANK"
596
+ }
597
+ ]
598
+ }
599
+ ]
600
+ },
601
+ "var_statement": {
602
+ "type": "SEQ",
603
+ "members": [
604
+ {
605
+ "type": "SYMBOL",
606
+ "name": "VAR_KEYWORD"
607
+ },
608
+ {
609
+ "type": "SEQ",
610
+ "members": [
611
+ {
612
+ "type": "FIELD",
613
+ "name": "var_name",
614
+ "content": {
615
+ "type": "SYMBOL",
616
+ "name": "identifier"
617
+ }
618
+ },
619
+ {
620
+ "type": "REPEAT",
621
+ "content": {
622
+ "type": "SEQ",
623
+ "members": [
624
+ {
625
+ "type": "STRING",
626
+ "value": ","
627
+ },
628
+ {
629
+ "type": "FIELD",
630
+ "name": "var_name",
631
+ "content": {
632
+ "type": "SYMBOL",
633
+ "name": "identifier"
634
+ }
635
+ }
636
+ ]
637
+ }
638
+ }
639
+ ]
640
+ },
641
+ {
642
+ "type": "CHOICE",
643
+ "members": [
644
+ {
645
+ "type": "STRING",
646
+ "value": ";"
647
+ },
648
+ {
649
+ "type": "BLANK"
650
+ }
651
+ ]
652
+ }
653
+ ]
654
+ },
655
+ "if_statement": {
656
+ "type": "SEQ",
657
+ "members": [
658
+ {
659
+ "type": "SYMBOL",
660
+ "name": "IF_KEYWORD"
661
+ },
662
+ {
663
+ "type": "SYMBOL",
664
+ "name": "expression"
665
+ },
666
+ {
667
+ "type": "SYMBOL",
668
+ "name": "THEN_KEYWORD"
669
+ },
670
+ {
671
+ "type": "REPEAT",
672
+ "content": {
673
+ "type": "SYMBOL",
674
+ "name": "statement"
675
+ }
676
+ },
677
+ {
678
+ "type": "REPEAT",
679
+ "content": {
680
+ "type": "SEQ",
681
+ "members": [
682
+ {
683
+ "type": "SYMBOL",
684
+ "name": "ELSE_IF_KEYWORD"
685
+ },
686
+ {
687
+ "type": "SYMBOL",
688
+ "name": "expression"
689
+ },
690
+ {
691
+ "type": "SYMBOL",
692
+ "name": "THEN_KEYWORD"
693
+ },
694
+ {
695
+ "type": "REPEAT",
696
+ "content": {
697
+ "type": "SYMBOL",
698
+ "name": "statement"
699
+ }
700
+ }
701
+ ]
702
+ }
703
+ },
704
+ {
705
+ "type": "CHOICE",
706
+ "members": [
707
+ {
708
+ "type": "SYMBOL",
709
+ "name": "else"
710
+ },
711
+ {
712
+ "type": "BLANK"
713
+ }
714
+ ]
715
+ },
716
+ {
717
+ "type": "SYMBOL",
718
+ "name": "END_IF_KEYWORD"
719
+ },
720
+ {
721
+ "type": "CHOICE",
722
+ "members": [
723
+ {
724
+ "type": "STRING",
725
+ "value": ";"
726
+ },
727
+ {
728
+ "type": "BLANK"
729
+ }
730
+ ]
731
+ }
732
+ ]
733
+ },
734
+ "else_if": {
735
+ "type": "SEQ",
736
+ "members": [
737
+ {
738
+ "type": "SYMBOL",
739
+ "name": "ELSE_IF_KEYWORD"
740
+ },
741
+ {
742
+ "type": "SYMBOL",
743
+ "name": "expression"
744
+ },
745
+ {
746
+ "type": "SYMBOL",
747
+ "name": "THEN_KEYWORD"
748
+ },
749
+ {
750
+ "type": "REPEAT",
751
+ "content": {
752
+ "type": "SYMBOL",
753
+ "name": "statement"
754
+ }
755
+ }
756
+ ]
757
+ },
758
+ "else": {
759
+ "type": "SEQ",
760
+ "members": [
761
+ {
762
+ "type": "SYMBOL",
763
+ "name": "ELSE_KEYWORD"
764
+ },
765
+ {
766
+ "type": "REPEAT",
767
+ "content": {
768
+ "type": "SYMBOL",
769
+ "name": "statement"
770
+ }
771
+ }
772
+ ]
773
+ },
774
+ "while_statement": {
775
+ "type": "SEQ",
776
+ "members": [
777
+ {
778
+ "type": "SYMBOL",
779
+ "name": "WHILE_KEYWORD"
780
+ },
781
+ {
782
+ "type": "SYMBOL",
783
+ "name": "expression"
784
+ },
785
+ {
786
+ "type": "SYMBOL",
787
+ "name": "DO_KEYWORD"
788
+ },
789
+ {
790
+ "type": "REPEAT",
791
+ "content": {
792
+ "type": "SYMBOL",
793
+ "name": "statement"
794
+ }
795
+ },
796
+ {
797
+ "type": "SYMBOL",
798
+ "name": "END_DO_KEYWORD"
799
+ }
800
+ ]
801
+ },
802
+ "for_statement": {
803
+ "type": "SEQ",
804
+ "members": [
805
+ {
806
+ "type": "SYMBOL",
807
+ "name": "FOR_KEYWORD"
808
+ },
809
+ {
810
+ "type": "SYMBOL",
811
+ "name": "assignment_statement"
812
+ },
813
+ {
814
+ "type": "SYMBOL",
815
+ "name": "TO_KEYWORD"
816
+ },
817
+ {
818
+ "type": "SYMBOL",
819
+ "name": "expression"
820
+ },
821
+ {
822
+ "type": "SYMBOL",
823
+ "name": "DO_KEYWORD"
824
+ },
825
+ {
826
+ "type": "REPEAT",
827
+ "content": {
828
+ "type": "SYMBOL",
829
+ "name": "statement"
830
+ }
831
+ },
832
+ {
833
+ "type": "SYMBOL",
834
+ "name": "END_DO_KEYWORD"
835
+ },
836
+ {
837
+ "type": "CHOICE",
838
+ "members": [
839
+ {
840
+ "type": "STRING",
841
+ "value": ";"
842
+ },
843
+ {
844
+ "type": "BLANK"
845
+ }
846
+ ]
847
+ }
848
+ ]
849
+ },
850
+ "for_each_statement": {
851
+ "type": "SEQ",
852
+ "members": [
853
+ {
854
+ "type": "SYMBOL",
855
+ "name": "FOR_KEYWORD"
856
+ },
857
+ {
858
+ "type": "SYMBOL",
859
+ "name": "EACH_KEYWORD"
860
+ },
861
+ {
862
+ "type": "SYMBOL",
863
+ "name": "identifier"
864
+ },
865
+ {
866
+ "type": "SYMBOL",
867
+ "name": "IN_KEYWORD"
868
+ },
869
+ {
870
+ "type": "SYMBOL",
871
+ "name": "expression"
872
+ },
873
+ {
874
+ "type": "SYMBOL",
875
+ "name": "TO_KEYWORD"
876
+ },
877
+ {
878
+ "type": "SYMBOL",
879
+ "name": "expression"
880
+ },
881
+ {
882
+ "type": "SYMBOL",
883
+ "name": "DO_KEYWORD"
884
+ },
885
+ {
886
+ "type": "REPEAT",
887
+ "content": {
888
+ "type": "SYMBOL",
889
+ "name": "statement"
890
+ }
891
+ },
892
+ {
893
+ "type": "SYMBOL",
894
+ "name": "END_DO_KEYWORD"
895
+ },
896
+ {
897
+ "type": "CHOICE",
898
+ "members": [
899
+ {
900
+ "type": "STRING",
901
+ "value": ";"
902
+ },
903
+ {
904
+ "type": "BLANK"
905
+ }
906
+ ]
907
+ }
908
+ ]
909
+ },
910
+ "continue_statement": {
911
+ "type": "SEQ",
912
+ "members": [
913
+ {
914
+ "type": "SYMBOL",
915
+ "name": "CONTINUE_KEYWORD"
916
+ },
917
+ {
918
+ "type": "CHOICE",
919
+ "members": [
920
+ {
921
+ "type": "STRING",
922
+ "value": ";"
923
+ },
924
+ {
925
+ "type": "BLANK"
926
+ }
927
+ ]
928
+ }
929
+ ]
930
+ },
931
+ "break_statement": {
932
+ "type": "SEQ",
933
+ "members": [
934
+ {
935
+ "type": "SYMBOL",
936
+ "name": "BREAK_KEYWORD"
937
+ },
938
+ {
939
+ "type": "CHOICE",
940
+ "members": [
941
+ {
942
+ "type": "STRING",
943
+ "value": ";"
944
+ },
945
+ {
946
+ "type": "BLANK"
947
+ }
948
+ ]
949
+ }
950
+ ]
951
+ },
952
+ "execute_statement": {
953
+ "type": "SEQ",
954
+ "members": [
955
+ {
956
+ "type": "SYMBOL",
957
+ "name": "EXECUTE_KEYWORD"
958
+ },
959
+ {
960
+ "type": "STRING",
961
+ "value": "("
962
+ },
963
+ {
964
+ "type": "SYMBOL",
965
+ "name": "expression"
966
+ },
967
+ {
968
+ "type": "STRING",
969
+ "value": ")"
970
+ },
971
+ {
972
+ "type": "CHOICE",
973
+ "members": [
974
+ {
975
+ "type": "STRING",
976
+ "value": ";"
977
+ },
978
+ {
979
+ "type": "BLANK"
980
+ }
981
+ ]
982
+ }
983
+ ]
984
+ },
985
+ "goto_statement": {
986
+ "type": "SEQ",
987
+ "members": [
988
+ {
989
+ "type": "SYMBOL",
990
+ "name": "GOTO_KEYWORD"
991
+ },
992
+ {
993
+ "type": "STRING",
994
+ "value": "~"
995
+ },
996
+ {
997
+ "type": "SYMBOL",
998
+ "name": "identifier"
999
+ },
1000
+ {
1001
+ "type": "CHOICE",
1002
+ "members": [
1003
+ {
1004
+ "type": "STRING",
1005
+ "value": ";"
1006
+ },
1007
+ {
1008
+ "type": "BLANK"
1009
+ }
1010
+ ]
1011
+ }
1012
+ ]
1013
+ },
1014
+ "label_statement": {
1015
+ "type": "SEQ",
1016
+ "members": [
1017
+ {
1018
+ "type": "STRING",
1019
+ "value": "~"
1020
+ },
1021
+ {
1022
+ "type": "SYMBOL",
1023
+ "name": "identifier"
1024
+ },
1025
+ {
1026
+ "type": "STRING",
1027
+ "value": ":"
1028
+ },
1029
+ {
1030
+ "type": "CHOICE",
1031
+ "members": [
1032
+ {
1033
+ "type": "STRING",
1034
+ "value": ";"
1035
+ },
1036
+ {
1037
+ "type": "BLANK"
1038
+ }
1039
+ ]
1040
+ }
1041
+ ]
1042
+ },
1043
+ "add_handler_statement": {
1044
+ "type": "SEQ",
1045
+ "members": [
1046
+ {
1047
+ "type": "SYMBOL",
1048
+ "name": "ADD_HANDLER_KEYWORD"
1049
+ },
1050
+ {
1051
+ "type": "SYMBOL",
1052
+ "name": "expression"
1053
+ },
1054
+ {
1055
+ "type": "STRING",
1056
+ "value": ","
1057
+ },
1058
+ {
1059
+ "type": "SYMBOL",
1060
+ "name": "expression"
1061
+ },
1062
+ {
1063
+ "type": "CHOICE",
1064
+ "members": [
1065
+ {
1066
+ "type": "STRING",
1067
+ "value": ";"
1068
+ },
1069
+ {
1070
+ "type": "BLANK"
1071
+ }
1072
+ ]
1073
+ }
1074
+ ]
1075
+ },
1076
+ "remove_handler_statement": {
1077
+ "type": "SEQ",
1078
+ "members": [
1079
+ {
1080
+ "type": "SYMBOL",
1081
+ "name": "REMOVE_HANDLER_KEYWORD"
1082
+ },
1083
+ {
1084
+ "type": "SYMBOL",
1085
+ "name": "expression"
1086
+ },
1087
+ {
1088
+ "type": "STRING",
1089
+ "value": ","
1090
+ },
1091
+ {
1092
+ "type": "SYMBOL",
1093
+ "name": "expression"
1094
+ },
1095
+ {
1096
+ "type": "CHOICE",
1097
+ "members": [
1098
+ {
1099
+ "type": "STRING",
1100
+ "value": ";"
1101
+ },
1102
+ {
1103
+ "type": "BLANK"
1104
+ }
1105
+ ]
1106
+ }
1107
+ ]
1108
+ },
1109
+ "await_statement": {
1110
+ "type": "SEQ",
1111
+ "members": [
1112
+ {
1113
+ "type": "SYMBOL",
1114
+ "name": "await_expression"
1115
+ },
1116
+ {
1117
+ "type": "CHOICE",
1118
+ "members": [
1119
+ {
1120
+ "type": "STRING",
1121
+ "value": ";"
1122
+ },
1123
+ {
1124
+ "type": "BLANK"
1125
+ }
1126
+ ]
1127
+ }
1128
+ ]
1129
+ },
1130
+ "expression": {
1131
+ "type": "CHOICE",
1132
+ "members": [
1133
+ {
1134
+ "type": "ALIAS",
1135
+ "content": {
1136
+ "type": "SYMBOL",
1137
+ "name": "_const_value"
1138
+ },
1139
+ "named": true,
1140
+ "value": "const_expression"
1141
+ },
1142
+ {
1143
+ "type": "SYMBOL",
1144
+ "name": "identifier"
1145
+ },
1146
+ {
1147
+ "type": "SYMBOL",
1148
+ "name": "unary_expression"
1149
+ },
1150
+ {
1151
+ "type": "SYMBOL",
1152
+ "name": "binary_expression"
1153
+ },
1154
+ {
1155
+ "type": "SYMBOL",
1156
+ "name": "ternary_expression"
1157
+ },
1158
+ {
1159
+ "type": "SYMBOL",
1160
+ "name": "new_expression"
1161
+ },
1162
+ {
1163
+ "type": "SYMBOL",
1164
+ "name": "call_expression"
1165
+ },
1166
+ {
1167
+ "type": "SYMBOL",
1168
+ "name": "property_access"
1169
+ },
1170
+ {
1171
+ "type": "SYMBOL",
1172
+ "name": "await_expression"
1173
+ }
1174
+ ]
1175
+ },
1176
+ "unary_expression": {
1177
+ "type": "PREC_LEFT",
1178
+ "value": 0,
1179
+ "content": {
1180
+ "type": "SEQ",
1181
+ "members": [
1182
+ {
1183
+ "type": "FIELD",
1184
+ "name": "operator",
1185
+ "content": {
1186
+ "type": "ALIAS",
1187
+ "content": {
1188
+ "type": "CHOICE",
1189
+ "members": [
1190
+ {
1191
+ "type": "STRING",
1192
+ "value": "-"
1193
+ },
1194
+ {
1195
+ "type": "STRING",
1196
+ "value": "+"
1197
+ },
1198
+ {
1199
+ "type": "SYMBOL",
1200
+ "name": "NOT_KEYWORD"
1201
+ }
1202
+ ]
1203
+ },
1204
+ "named": true,
1205
+ "value": "operation"
1206
+ }
1207
+ },
1208
+ {
1209
+ "type": "FIELD",
1210
+ "name": "argument",
1211
+ "content": {
1212
+ "type": "SYMBOL",
1213
+ "name": "expression"
1214
+ }
1215
+ }
1216
+ ]
1217
+ }
1218
+ },
1219
+ "binary_expression": {
1220
+ "type": "PREC_LEFT",
1221
+ "value": 0,
1222
+ "content": {
1223
+ "type": "SEQ",
1224
+ "members": [
1225
+ {
1226
+ "type": "FIELD",
1227
+ "name": "left",
1228
+ "content": {
1229
+ "type": "SYMBOL",
1230
+ "name": "expression"
1231
+ }
1232
+ },
1233
+ {
1234
+ "type": "FIELD",
1235
+ "name": "operator",
1236
+ "content": {
1237
+ "type": "SYMBOL",
1238
+ "name": "operation"
1239
+ }
1240
+ },
1241
+ {
1242
+ "type": "FIELD",
1243
+ "name": "right",
1244
+ "content": {
1245
+ "type": "SYMBOL",
1246
+ "name": "expression"
1247
+ }
1248
+ }
1249
+ ]
1250
+ }
1251
+ },
1252
+ "ternary_expression": {
1253
+ "type": "PREC_RIGHT",
1254
+ "value": 0,
1255
+ "content": {
1256
+ "type": "SEQ",
1257
+ "members": [
1258
+ {
1259
+ "type": "STRING",
1260
+ "value": "?("
1261
+ },
1262
+ {
1263
+ "type": "FIELD",
1264
+ "name": "condition",
1265
+ "content": {
1266
+ "type": "SYMBOL",
1267
+ "name": "expression"
1268
+ }
1269
+ },
1270
+ {
1271
+ "type": "STRING",
1272
+ "value": ","
1273
+ },
1274
+ {
1275
+ "type": "FIELD",
1276
+ "name": "consequence",
1277
+ "content": {
1278
+ "type": "SYMBOL",
1279
+ "name": "expression"
1280
+ }
1281
+ },
1282
+ {
1283
+ "type": "STRING",
1284
+ "value": ","
1285
+ },
1286
+ {
1287
+ "type": "FIELD",
1288
+ "name": "alternative",
1289
+ "content": {
1290
+ "type": "SYMBOL",
1291
+ "name": "expression"
1292
+ }
1293
+ },
1294
+ {
1295
+ "type": "STRING",
1296
+ "value": ")"
1297
+ }
1298
+ ]
1299
+ }
1300
+ },
1301
+ "new_expression": {
1302
+ "type": "CHOICE",
1303
+ "members": [
1304
+ {
1305
+ "type": "PREC_RIGHT",
1306
+ "value": 0,
1307
+ "content": {
1308
+ "type": "SEQ",
1309
+ "members": [
1310
+ {
1311
+ "type": "SYMBOL",
1312
+ "name": "NEW_KEYWORD"
1313
+ },
1314
+ {
1315
+ "type": "FIELD",
1316
+ "name": "type",
1317
+ "content": {
1318
+ "type": "SYMBOL",
1319
+ "name": "identifier"
1320
+ }
1321
+ },
1322
+ {
1323
+ "type": "FIELD",
1324
+ "name": "arguments",
1325
+ "content": {
1326
+ "type": "CHOICE",
1327
+ "members": [
1328
+ {
1329
+ "type": "SYMBOL",
1330
+ "name": "arguments"
1331
+ },
1332
+ {
1333
+ "type": "BLANK"
1334
+ }
1335
+ ]
1336
+ }
1337
+ }
1338
+ ]
1339
+ }
1340
+ },
1341
+ {
1342
+ "type": "SEQ",
1343
+ "members": [
1344
+ {
1345
+ "type": "SYMBOL",
1346
+ "name": "NEW_KEYWORD"
1347
+ },
1348
+ {
1349
+ "type": "FIELD",
1350
+ "name": "arguments",
1351
+ "content": {
1352
+ "type": "SYMBOL",
1353
+ "name": "arguments"
1354
+ }
1355
+ }
1356
+ ]
1357
+ }
1358
+ ]
1359
+ },
1360
+ "call_expression": {
1361
+ "type": "PREC",
1362
+ "value": 2,
1363
+ "content": {
1364
+ "type": "CHOICE",
1365
+ "members": [
1366
+ {
1367
+ "type": "SYMBOL",
1368
+ "name": "method_call"
1369
+ },
1370
+ {
1371
+ "type": "SEQ",
1372
+ "members": [
1373
+ {
1374
+ "type": "ALIAS",
1375
+ "content": {
1376
+ "type": "SYMBOL",
1377
+ "name": "identifier"
1378
+ },
1379
+ "named": true,
1380
+ "value": "property"
1381
+ },
1382
+ {
1383
+ "type": "REPEAT",
1384
+ "content": {
1385
+ "type": "SYMBOL",
1386
+ "name": "_access"
1387
+ }
1388
+ },
1389
+ {
1390
+ "type": "STRING",
1391
+ "value": "."
1392
+ },
1393
+ {
1394
+ "type": "SYMBOL",
1395
+ "name": "method_call"
1396
+ }
1397
+ ]
1398
+ },
1399
+ {
1400
+ "type": "SEQ",
1401
+ "members": [
1402
+ {
1403
+ "type": "SYMBOL",
1404
+ "name": "method_call"
1405
+ },
1406
+ {
1407
+ "type": "REPEAT",
1408
+ "content": {
1409
+ "type": "SYMBOL",
1410
+ "name": "_access"
1411
+ }
1412
+ },
1413
+ {
1414
+ "type": "STRING",
1415
+ "value": "."
1416
+ },
1417
+ {
1418
+ "type": "SYMBOL",
1419
+ "name": "method_call"
1420
+ }
1421
+ ]
1422
+ }
1423
+ ]
1424
+ }
1425
+ },
1426
+ "await_expression": {
1427
+ "type": "PREC",
1428
+ "value": 1,
1429
+ "content": {
1430
+ "type": "SEQ",
1431
+ "members": [
1432
+ {
1433
+ "type": "SYMBOL",
1434
+ "name": "AWAIT_KEYWORD"
1435
+ },
1436
+ {
1437
+ "type": "SYMBOL",
1438
+ "name": "expression"
1439
+ }
1440
+ ]
1441
+ }
1442
+ },
1443
+ "_assignment_member": {
1444
+ "type": "CHOICE",
1445
+ "members": [
1446
+ {
1447
+ "type": "SYMBOL",
1448
+ "name": "identifier"
1449
+ },
1450
+ {
1451
+ "type": "SYMBOL",
1452
+ "name": "property_access"
1453
+ }
1454
+ ]
1455
+ },
1456
+ "property_access": {
1457
+ "type": "SEQ",
1458
+ "members": [
1459
+ {
1460
+ "type": "CHOICE",
1461
+ "members": [
1462
+ {
1463
+ "type": "SYMBOL",
1464
+ "name": "identifier"
1465
+ },
1466
+ {
1467
+ "type": "SYMBOL",
1468
+ "name": "method_call"
1469
+ }
1470
+ ]
1471
+ },
1472
+ {
1473
+ "type": "REPEAT1",
1474
+ "content": {
1475
+ "type": "SYMBOL",
1476
+ "name": "_access"
1477
+ }
1478
+ }
1479
+ ]
1480
+ },
1481
+ "_access": {
1482
+ "type": "CHOICE",
1483
+ "members": [
1484
+ {
1485
+ "type": "SYMBOL",
1486
+ "name": "_access_call"
1487
+ },
1488
+ {
1489
+ "type": "SYMBOL",
1490
+ "name": "_access_index"
1491
+ },
1492
+ {
1493
+ "type": "SYMBOL",
1494
+ "name": "_access_property"
1495
+ }
1496
+ ]
1497
+ },
1498
+ "_access_call": {
1499
+ "type": "SEQ",
1500
+ "members": [
1501
+ {
1502
+ "type": "STRING",
1503
+ "value": "."
1504
+ },
1505
+ {
1506
+ "type": "SYMBOL",
1507
+ "name": "method_call"
1508
+ }
1509
+ ]
1510
+ },
1511
+ "_access_index": {
1512
+ "type": "SEQ",
1513
+ "members": [
1514
+ {
1515
+ "type": "STRING",
1516
+ "value": "["
1517
+ },
1518
+ {
1519
+ "type": "ALIAS",
1520
+ "content": {
1521
+ "type": "SYMBOL",
1522
+ "name": "expression"
1523
+ },
1524
+ "named": true,
1525
+ "value": "index"
1526
+ },
1527
+ {
1528
+ "type": "STRING",
1529
+ "value": "]"
1530
+ }
1531
+ ]
1532
+ },
1533
+ "_access_property": {
1534
+ "type": "SEQ",
1535
+ "members": [
1536
+ {
1537
+ "type": "STRING",
1538
+ "value": "."
1539
+ },
1540
+ {
1541
+ "type": "ALIAS",
1542
+ "content": {
1543
+ "type": "SYMBOL",
1544
+ "name": "identifier"
1545
+ },
1546
+ "named": true,
1547
+ "value": "property"
1548
+ }
1549
+ ]
1550
+ },
1551
+ "method_call": {
1552
+ "type": "SEQ",
1553
+ "members": [
1554
+ {
1555
+ "type": "FIELD",
1556
+ "name": "name",
1557
+ "content": {
1558
+ "type": "SYMBOL",
1559
+ "name": "identifier"
1560
+ }
1561
+ },
1562
+ {
1563
+ "type": "FIELD",
1564
+ "name": "arguments",
1565
+ "content": {
1566
+ "type": "SYMBOL",
1567
+ "name": "arguments"
1568
+ }
1569
+ }
1570
+ ]
1571
+ },
1572
+ "arguments": {
1573
+ "type": "SEQ",
1574
+ "members": [
1575
+ {
1576
+ "type": "STRING",
1577
+ "value": "("
1578
+ },
1579
+ {
1580
+ "type": "CHOICE",
1581
+ "members": [
1582
+ {
1583
+ "type": "SEQ",
1584
+ "members": [
1585
+ {
1586
+ "type": "SYMBOL",
1587
+ "name": "expression"
1588
+ },
1589
+ {
1590
+ "type": "REPEAT",
1591
+ "content": {
1592
+ "type": "SEQ",
1593
+ "members": [
1594
+ {
1595
+ "type": "STRING",
1596
+ "value": ","
1597
+ },
1598
+ {
1599
+ "type": "SYMBOL",
1600
+ "name": "expression"
1601
+ }
1602
+ ]
1603
+ }
1604
+ }
1605
+ ]
1606
+ },
1607
+ {
1608
+ "type": "BLANK"
1609
+ }
1610
+ ]
1611
+ },
1612
+ {
1613
+ "type": "STRING",
1614
+ "value": ")"
1615
+ }
1616
+ ]
1617
+ },
1618
+ "IF_KEYWORD": {
1619
+ "type": "TOKEN",
1620
+ "content": {
1621
+ "type": "CHOICE",
1622
+ "members": [
1623
+ {
1624
+ "type": "PATTERN",
1625
+ "value": "если",
1626
+ "flags": "i"
1627
+ },
1628
+ {
1629
+ "type": "PATTERN",
1630
+ "value": "if",
1631
+ "flags": "i"
1632
+ }
1633
+ ]
1634
+ }
1635
+ },
1636
+ "THEN_KEYWORD": {
1637
+ "type": "TOKEN",
1638
+ "content": {
1639
+ "type": "CHOICE",
1640
+ "members": [
1641
+ {
1642
+ "type": "PATTERN",
1643
+ "value": "тогда",
1644
+ "flags": "i"
1645
+ },
1646
+ {
1647
+ "type": "PATTERN",
1648
+ "value": "then",
1649
+ "flags": "i"
1650
+ }
1651
+ ]
1652
+ }
1653
+ },
1654
+ "ELSE_IF_KEYWORD": {
1655
+ "type": "TOKEN",
1656
+ "content": {
1657
+ "type": "CHOICE",
1658
+ "members": [
1659
+ {
1660
+ "type": "PATTERN",
1661
+ "value": "иначеесли",
1662
+ "flags": "i"
1663
+ },
1664
+ {
1665
+ "type": "PATTERN",
1666
+ "value": "elsif",
1667
+ "flags": "i"
1668
+ }
1669
+ ]
1670
+ }
1671
+ },
1672
+ "ELSE_KEYWORD": {
1673
+ "type": "TOKEN",
1674
+ "content": {
1675
+ "type": "CHOICE",
1676
+ "members": [
1677
+ {
1678
+ "type": "PATTERN",
1679
+ "value": "иначе",
1680
+ "flags": "i"
1681
+ },
1682
+ {
1683
+ "type": "PATTERN",
1684
+ "value": "else",
1685
+ "flags": "i"
1686
+ }
1687
+ ]
1688
+ }
1689
+ },
1690
+ "END_IF_KEYWORD": {
1691
+ "type": "TOKEN",
1692
+ "content": {
1693
+ "type": "CHOICE",
1694
+ "members": [
1695
+ {
1696
+ "type": "PATTERN",
1697
+ "value": "конецесли",
1698
+ "flags": "i"
1699
+ },
1700
+ {
1701
+ "type": "PATTERN",
1702
+ "value": "endif",
1703
+ "flags": "i"
1704
+ }
1705
+ ]
1706
+ }
1707
+ },
1708
+ "FOR_KEYWORD": {
1709
+ "type": "TOKEN",
1710
+ "content": {
1711
+ "type": "CHOICE",
1712
+ "members": [
1713
+ {
1714
+ "type": "PATTERN",
1715
+ "value": "для",
1716
+ "flags": "i"
1717
+ },
1718
+ {
1719
+ "type": "PATTERN",
1720
+ "value": "for",
1721
+ "flags": "i"
1722
+ }
1723
+ ]
1724
+ }
1725
+ },
1726
+ "EACH_KEYWORD": {
1727
+ "type": "TOKEN",
1728
+ "content": {
1729
+ "type": "CHOICE",
1730
+ "members": [
1731
+ {
1732
+ "type": "PATTERN",
1733
+ "value": "каждого",
1734
+ "flags": "i"
1735
+ },
1736
+ {
1737
+ "type": "PATTERN",
1738
+ "value": "each",
1739
+ "flags": "i"
1740
+ }
1741
+ ]
1742
+ }
1743
+ },
1744
+ "IN_KEYWORD": {
1745
+ "type": "TOKEN",
1746
+ "content": {
1747
+ "type": "CHOICE",
1748
+ "members": [
1749
+ {
1750
+ "type": "PATTERN",
1751
+ "value": "из",
1752
+ "flags": "i"
1753
+ },
1754
+ {
1755
+ "type": "PATTERN",
1756
+ "value": "in",
1757
+ "flags": "i"
1758
+ }
1759
+ ]
1760
+ }
1761
+ },
1762
+ "TO_KEYWORD": {
1763
+ "type": "TOKEN",
1764
+ "content": {
1765
+ "type": "CHOICE",
1766
+ "members": [
1767
+ {
1768
+ "type": "PATTERN",
1769
+ "value": "по",
1770
+ "flags": "i"
1771
+ },
1772
+ {
1773
+ "type": "PATTERN",
1774
+ "value": "to",
1775
+ "flags": "i"
1776
+ }
1777
+ ]
1778
+ }
1779
+ },
1780
+ "WHILE_KEYWORD": {
1781
+ "type": "TOKEN",
1782
+ "content": {
1783
+ "type": "CHOICE",
1784
+ "members": [
1785
+ {
1786
+ "type": "PATTERN",
1787
+ "value": "пока",
1788
+ "flags": "i"
1789
+ },
1790
+ {
1791
+ "type": "PATTERN",
1792
+ "value": "while",
1793
+ "flags": "i"
1794
+ }
1795
+ ]
1796
+ }
1797
+ },
1798
+ "DO_KEYWORD": {
1799
+ "type": "TOKEN",
1800
+ "content": {
1801
+ "type": "CHOICE",
1802
+ "members": [
1803
+ {
1804
+ "type": "PATTERN",
1805
+ "value": "цикл",
1806
+ "flags": "i"
1807
+ },
1808
+ {
1809
+ "type": "PATTERN",
1810
+ "value": "do",
1811
+ "flags": "i"
1812
+ }
1813
+ ]
1814
+ }
1815
+ },
1816
+ "END_DO_KEYWORD": {
1817
+ "type": "TOKEN",
1818
+ "content": {
1819
+ "type": "CHOICE",
1820
+ "members": [
1821
+ {
1822
+ "type": "PATTERN",
1823
+ "value": "конеццикла",
1824
+ "flags": "i"
1825
+ },
1826
+ {
1827
+ "type": "PATTERN",
1828
+ "value": "enddo",
1829
+ "flags": "i"
1830
+ }
1831
+ ]
1832
+ }
1833
+ },
1834
+ "PROCEDURE_KEYWORD": {
1835
+ "type": "TOKEN",
1836
+ "content": {
1837
+ "type": "CHOICE",
1838
+ "members": [
1839
+ {
1840
+ "type": "PATTERN",
1841
+ "value": "процедура",
1842
+ "flags": "i"
1843
+ },
1844
+ {
1845
+ "type": "PATTERN",
1846
+ "value": "procedure",
1847
+ "flags": "i"
1848
+ }
1849
+ ]
1850
+ }
1851
+ },
1852
+ "FUNCTION_KEYWORD": {
1853
+ "type": "TOKEN",
1854
+ "content": {
1855
+ "type": "CHOICE",
1856
+ "members": [
1857
+ {
1858
+ "type": "PATTERN",
1859
+ "value": "функция",
1860
+ "flags": "i"
1861
+ },
1862
+ {
1863
+ "type": "PATTERN",
1864
+ "value": "function",
1865
+ "flags": "i"
1866
+ }
1867
+ ]
1868
+ }
1869
+ },
1870
+ "END_PROCEDURE_KEYWORD": {
1871
+ "type": "TOKEN",
1872
+ "content": {
1873
+ "type": "CHOICE",
1874
+ "members": [
1875
+ {
1876
+ "type": "PATTERN",
1877
+ "value": "конецпроцедуры",
1878
+ "flags": "i"
1879
+ },
1880
+ {
1881
+ "type": "PATTERN",
1882
+ "value": "endprocedure",
1883
+ "flags": "i"
1884
+ }
1885
+ ]
1886
+ }
1887
+ },
1888
+ "END_FUNCTION_KEYWORD": {
1889
+ "type": "TOKEN",
1890
+ "content": {
1891
+ "type": "CHOICE",
1892
+ "members": [
1893
+ {
1894
+ "type": "PATTERN",
1895
+ "value": "конецфункции",
1896
+ "flags": "i"
1897
+ },
1898
+ {
1899
+ "type": "PATTERN",
1900
+ "value": "endfunction",
1901
+ "flags": "i"
1902
+ }
1903
+ ]
1904
+ }
1905
+ },
1906
+ "VAR_KEYWORD": {
1907
+ "type": "TOKEN",
1908
+ "content": {
1909
+ "type": "CHOICE",
1910
+ "members": [
1911
+ {
1912
+ "type": "PATTERN",
1913
+ "value": "перем",
1914
+ "flags": "i"
1915
+ },
1916
+ {
1917
+ "type": "PATTERN",
1918
+ "value": "var",
1919
+ "flags": "i"
1920
+ }
1921
+ ]
1922
+ }
1923
+ },
1924
+ "GOTO_KEYWORD": {
1925
+ "type": "TOKEN",
1926
+ "content": {
1927
+ "type": "CHOICE",
1928
+ "members": [
1929
+ {
1930
+ "type": "PATTERN",
1931
+ "value": "перейти",
1932
+ "flags": "i"
1933
+ },
1934
+ {
1935
+ "type": "PATTERN",
1936
+ "value": "goto",
1937
+ "flags": "i"
1938
+ }
1939
+ ]
1940
+ }
1941
+ },
1942
+ "RETURN_KEYWORD": {
1943
+ "type": "TOKEN",
1944
+ "content": {
1945
+ "type": "CHOICE",
1946
+ "members": [
1947
+ {
1948
+ "type": "PATTERN",
1949
+ "value": "возврат",
1950
+ "flags": "i"
1951
+ },
1952
+ {
1953
+ "type": "PATTERN",
1954
+ "value": "return",
1955
+ "flags": "i"
1956
+ }
1957
+ ]
1958
+ }
1959
+ },
1960
+ "CONTINUE_KEYWORD": {
1961
+ "type": "TOKEN",
1962
+ "content": {
1963
+ "type": "CHOICE",
1964
+ "members": [
1965
+ {
1966
+ "type": "PATTERN",
1967
+ "value": "продолжить",
1968
+ "flags": "i"
1969
+ },
1970
+ {
1971
+ "type": "PATTERN",
1972
+ "value": "continue",
1973
+ "flags": "i"
1974
+ }
1975
+ ]
1976
+ }
1977
+ },
1978
+ "BREAK_KEYWORD": {
1979
+ "type": "TOKEN",
1980
+ "content": {
1981
+ "type": "CHOICE",
1982
+ "members": [
1983
+ {
1984
+ "type": "PATTERN",
1985
+ "value": "прервать",
1986
+ "flags": "i"
1987
+ },
1988
+ {
1989
+ "type": "PATTERN",
1990
+ "value": "break",
1991
+ "flags": "i"
1992
+ }
1993
+ ]
1994
+ }
1995
+ },
1996
+ "AND_KEYWORD": {
1997
+ "type": "TOKEN",
1998
+ "content": {
1999
+ "type": "CHOICE",
2000
+ "members": [
2001
+ {
2002
+ "type": "PATTERN",
2003
+ "value": "и",
2004
+ "flags": "i"
2005
+ },
2006
+ {
2007
+ "type": "PATTERN",
2008
+ "value": "and",
2009
+ "flags": "i"
2010
+ }
2011
+ ]
2012
+ }
2013
+ },
2014
+ "OR_KEYWORD": {
2015
+ "type": "TOKEN",
2016
+ "content": {
2017
+ "type": "CHOICE",
2018
+ "members": [
2019
+ {
2020
+ "type": "PATTERN",
2021
+ "value": "или",
2022
+ "flags": "i"
2023
+ },
2024
+ {
2025
+ "type": "PATTERN",
2026
+ "value": "or",
2027
+ "flags": "i"
2028
+ }
2029
+ ]
2030
+ }
2031
+ },
2032
+ "NOT_KEYWORD": {
2033
+ "type": "TOKEN",
2034
+ "content": {
2035
+ "type": "CHOICE",
2036
+ "members": [
2037
+ {
2038
+ "type": "PATTERN",
2039
+ "value": "не",
2040
+ "flags": "i"
2041
+ },
2042
+ {
2043
+ "type": "PATTERN",
2044
+ "value": "not",
2045
+ "flags": "i"
2046
+ }
2047
+ ]
2048
+ }
2049
+ },
2050
+ "TRY_KEYWORD": {
2051
+ "type": "TOKEN",
2052
+ "content": {
2053
+ "type": "CHOICE",
2054
+ "members": [
2055
+ {
2056
+ "type": "PATTERN",
2057
+ "value": "попытка",
2058
+ "flags": "i"
2059
+ },
2060
+ {
2061
+ "type": "PATTERN",
2062
+ "value": "try",
2063
+ "flags": "i"
2064
+ }
2065
+ ]
2066
+ }
2067
+ },
2068
+ "EXCEPT_KEYWORD": {
2069
+ "type": "TOKEN",
2070
+ "content": {
2071
+ "type": "CHOICE",
2072
+ "members": [
2073
+ {
2074
+ "type": "PATTERN",
2075
+ "value": "исключение",
2076
+ "flags": "i"
2077
+ },
2078
+ {
2079
+ "type": "PATTERN",
2080
+ "value": "except",
2081
+ "flags": "i"
2082
+ }
2083
+ ]
2084
+ }
2085
+ },
2086
+ "RAISE_KEYWORD": {
2087
+ "type": "TOKEN",
2088
+ "content": {
2089
+ "type": "CHOICE",
2090
+ "members": [
2091
+ {
2092
+ "type": "PATTERN",
2093
+ "value": "вызватьисключение",
2094
+ "flags": "i"
2095
+ },
2096
+ {
2097
+ "type": "PATTERN",
2098
+ "value": "raise",
2099
+ "flags": "i"
2100
+ }
2101
+ ]
2102
+ }
2103
+ },
2104
+ "END_TRY_KEYWORD": {
2105
+ "type": "TOKEN",
2106
+ "content": {
2107
+ "type": "CHOICE",
2108
+ "members": [
2109
+ {
2110
+ "type": "PATTERN",
2111
+ "value": "конецпопытки",
2112
+ "flags": "i"
2113
+ },
2114
+ {
2115
+ "type": "PATTERN",
2116
+ "value": "endtry",
2117
+ "flags": "i"
2118
+ }
2119
+ ]
2120
+ }
2121
+ },
2122
+ "NEW_KEYWORD": {
2123
+ "type": "TOKEN",
2124
+ "content": {
2125
+ "type": "CHOICE",
2126
+ "members": [
2127
+ {
2128
+ "type": "PATTERN",
2129
+ "value": "новый",
2130
+ "flags": "i"
2131
+ },
2132
+ {
2133
+ "type": "PATTERN",
2134
+ "value": "new",
2135
+ "flags": "i"
2136
+ }
2137
+ ]
2138
+ }
2139
+ },
2140
+ "EXECUTE_KEYWORD": {
2141
+ "type": "TOKEN",
2142
+ "content": {
2143
+ "type": "CHOICE",
2144
+ "members": [
2145
+ {
2146
+ "type": "PATTERN",
2147
+ "value": "выполнить",
2148
+ "flags": "i"
2149
+ },
2150
+ {
2151
+ "type": "PATTERN",
2152
+ "value": "execute",
2153
+ "flags": "i"
2154
+ }
2155
+ ]
2156
+ }
2157
+ },
2158
+ "ADD_HANDLER_KEYWORD": {
2159
+ "type": "TOKEN",
2160
+ "content": {
2161
+ "type": "CHOICE",
2162
+ "members": [
2163
+ {
2164
+ "type": "PATTERN",
2165
+ "value": "добавитьобработчик",
2166
+ "flags": "i"
2167
+ },
2168
+ {
2169
+ "type": "PATTERN",
2170
+ "value": "addhandler",
2171
+ "flags": "i"
2172
+ }
2173
+ ]
2174
+ }
2175
+ },
2176
+ "REMOVE_HANDLER_KEYWORD": {
2177
+ "type": "TOKEN",
2178
+ "content": {
2179
+ "type": "CHOICE",
2180
+ "members": [
2181
+ {
2182
+ "type": "PATTERN",
2183
+ "value": "удалитьобработчик",
2184
+ "flags": "i"
2185
+ },
2186
+ {
2187
+ "type": "PATTERN",
2188
+ "value": "removehandler",
2189
+ "flags": "i"
2190
+ }
2191
+ ]
2192
+ }
2193
+ },
2194
+ "VAL_KEYWORD": {
2195
+ "type": "TOKEN",
2196
+ "content": {
2197
+ "type": "CHOICE",
2198
+ "members": [
2199
+ {
2200
+ "type": "PATTERN",
2201
+ "value": "знач",
2202
+ "flags": "i"
2203
+ },
2204
+ {
2205
+ "type": "PATTERN",
2206
+ "value": "val",
2207
+ "flags": "i"
2208
+ }
2209
+ ]
2210
+ }
2211
+ },
2212
+ "TRUE_KEYWORD": {
2213
+ "type": "TOKEN",
2214
+ "content": {
2215
+ "type": "CHOICE",
2216
+ "members": [
2217
+ {
2218
+ "type": "PATTERN",
2219
+ "value": "истина",
2220
+ "flags": "i"
2221
+ },
2222
+ {
2223
+ "type": "PATTERN",
2224
+ "value": "true",
2225
+ "flags": "i"
2226
+ }
2227
+ ]
2228
+ }
2229
+ },
2230
+ "FALSE_KEYWORD": {
2231
+ "type": "TOKEN",
2232
+ "content": {
2233
+ "type": "CHOICE",
2234
+ "members": [
2235
+ {
2236
+ "type": "PATTERN",
2237
+ "value": "ложь",
2238
+ "flags": "i"
2239
+ },
2240
+ {
2241
+ "type": "PATTERN",
2242
+ "value": "false",
2243
+ "flags": "i"
2244
+ }
2245
+ ]
2246
+ }
2247
+ },
2248
+ "NULL_KEYWORD": {
2249
+ "type": "PATTERN",
2250
+ "value": "(null)",
2251
+ "flags": "i"
2252
+ },
2253
+ "UNDEFINED_KEYWORD": {
2254
+ "type": "TOKEN",
2255
+ "content": {
2256
+ "type": "CHOICE",
2257
+ "members": [
2258
+ {
2259
+ "type": "PATTERN",
2260
+ "value": "неопределено",
2261
+ "flags": "i"
2262
+ },
2263
+ {
2264
+ "type": "PATTERN",
2265
+ "value": "undefine",
2266
+ "flags": "i"
2267
+ }
2268
+ ]
2269
+ }
2270
+ },
2271
+ "EXPORT_KEYWORD": {
2272
+ "type": "TOKEN",
2273
+ "content": {
2274
+ "type": "CHOICE",
2275
+ "members": [
2276
+ {
2277
+ "type": "PATTERN",
2278
+ "value": "экспорт",
2279
+ "flags": "i"
2280
+ },
2281
+ {
2282
+ "type": "PATTERN",
2283
+ "value": "export",
2284
+ "flags": "i"
2285
+ }
2286
+ ]
2287
+ }
2288
+ },
2289
+ "PREPROC_IF_KEYWORD": {
2290
+ "type": "TOKEN",
2291
+ "content": {
2292
+ "type": "CHOICE",
2293
+ "members": [
2294
+ {
2295
+ "type": "PATTERN",
2296
+ "value": "#если",
2297
+ "flags": "i"
2298
+ },
2299
+ {
2300
+ "type": "PATTERN",
2301
+ "value": "#if",
2302
+ "flags": "i"
2303
+ }
2304
+ ]
2305
+ }
2306
+ },
2307
+ "PREPROC_ELSE_IF_KEYWORD": {
2308
+ "type": "TOKEN",
2309
+ "content": {
2310
+ "type": "CHOICE",
2311
+ "members": [
2312
+ {
2313
+ "type": "PATTERN",
2314
+ "value": "#иначеесли",
2315
+ "flags": "i"
2316
+ },
2317
+ {
2318
+ "type": "PATTERN",
2319
+ "value": "#elsif",
2320
+ "flags": "i"
2321
+ }
2322
+ ]
2323
+ }
2324
+ },
2325
+ "PREPROC_ELSE_KEYWORD": {
2326
+ "type": "TOKEN",
2327
+ "content": {
2328
+ "type": "CHOICE",
2329
+ "members": [
2330
+ {
2331
+ "type": "PATTERN",
2332
+ "value": "#иначе",
2333
+ "flags": "i"
2334
+ },
2335
+ {
2336
+ "type": "PATTERN",
2337
+ "value": "#else",
2338
+ "flags": "i"
2339
+ }
2340
+ ]
2341
+ }
2342
+ },
2343
+ "PREPROC_END_IF_KEYWORD": {
2344
+ "type": "TOKEN",
2345
+ "content": {
2346
+ "type": "CHOICE",
2347
+ "members": [
2348
+ {
2349
+ "type": "PATTERN",
2350
+ "value": "#конецесли",
2351
+ "flags": "i"
2352
+ },
2353
+ {
2354
+ "type": "PATTERN",
2355
+ "value": "#endif",
2356
+ "flags": "i"
2357
+ }
2358
+ ]
2359
+ }
2360
+ },
2361
+ "PREPROC_REGION_START_KEYWORD": {
2362
+ "type": "TOKEN",
2363
+ "content": {
2364
+ "type": "CHOICE",
2365
+ "members": [
2366
+ {
2367
+ "type": "PATTERN",
2368
+ "value": "#область",
2369
+ "flags": "i"
2370
+ },
2371
+ {
2372
+ "type": "PATTERN",
2373
+ "value": "#region",
2374
+ "flags": "i"
2375
+ }
2376
+ ]
2377
+ }
2378
+ },
2379
+ "PREPROC_REGION_END_KEYWORD": {
2380
+ "type": "TOKEN",
2381
+ "content": {
2382
+ "type": "CHOICE",
2383
+ "members": [
2384
+ {
2385
+ "type": "PATTERN",
2386
+ "value": "#конецобласти",
2387
+ "flags": "i"
2388
+ },
2389
+ {
2390
+ "type": "PATTERN",
2391
+ "value": "#endregion",
2392
+ "flags": "i"
2393
+ }
2394
+ ]
2395
+ }
2396
+ },
2397
+ "ASYNC_KEYWORD": {
2398
+ "type": "TOKEN",
2399
+ "content": {
2400
+ "type": "CHOICE",
2401
+ "members": [
2402
+ {
2403
+ "type": "PATTERN",
2404
+ "value": "асинх",
2405
+ "flags": "i"
2406
+ },
2407
+ {
2408
+ "type": "PATTERN",
2409
+ "value": "async",
2410
+ "flags": "i"
2411
+ }
2412
+ ]
2413
+ }
2414
+ },
2415
+ "AWAIT_KEYWORD": {
2416
+ "type": "TOKEN",
2417
+ "content": {
2418
+ "type": "CHOICE",
2419
+ "members": [
2420
+ {
2421
+ "type": "PATTERN",
2422
+ "value": "ждать",
2423
+ "flags": "i"
2424
+ },
2425
+ {
2426
+ "type": "PATTERN",
2427
+ "value": "await",
2428
+ "flags": "i"
2429
+ }
2430
+ ]
2431
+ }
2432
+ },
2433
+ "operation": {
2434
+ "type": "CHOICE",
2435
+ "members": [
2436
+ {
2437
+ "type": "SYMBOL",
2438
+ "name": "AND_KEYWORD"
2439
+ },
2440
+ {
2441
+ "type": "SYMBOL",
2442
+ "name": "OR_KEYWORD"
2443
+ },
2444
+ {
2445
+ "type": "STRING",
2446
+ "value": "+"
2447
+ },
2448
+ {
2449
+ "type": "STRING",
2450
+ "value": "-"
2451
+ },
2452
+ {
2453
+ "type": "STRING",
2454
+ "value": "*"
2455
+ },
2456
+ {
2457
+ "type": "STRING",
2458
+ "value": "/"
2459
+ },
2460
+ {
2461
+ "type": "STRING",
2462
+ "value": "%"
2463
+ },
2464
+ {
2465
+ "type": "STRING",
2466
+ "value": "<>"
2467
+ },
2468
+ {
2469
+ "type": "STRING",
2470
+ "value": "="
2471
+ },
2472
+ {
2473
+ "type": "STRING",
2474
+ "value": ">"
2475
+ },
2476
+ {
2477
+ "type": "STRING",
2478
+ "value": "<"
2479
+ },
2480
+ {
2481
+ "type": "STRING",
2482
+ "value": ">="
2483
+ },
2484
+ {
2485
+ "type": "STRING",
2486
+ "value": "<="
2487
+ }
2488
+ ]
2489
+ },
2490
+ "preprocessor": {
2491
+ "type": "CHOICE",
2492
+ "members": [
2493
+ {
2494
+ "type": "SEQ",
2495
+ "members": [
2496
+ {
2497
+ "type": "SYMBOL",
2498
+ "name": "PREPROC_REGION_START_KEYWORD"
2499
+ },
2500
+ {
2501
+ "type": "SYMBOL",
2502
+ "name": "identifier"
2503
+ }
2504
+ ]
2505
+ },
2506
+ {
2507
+ "type": "SYMBOL",
2508
+ "name": "PREPROC_REGION_END_KEYWORD"
2509
+ },
2510
+ {
2511
+ "type": "SEQ",
2512
+ "members": [
2513
+ {
2514
+ "type": "SYMBOL",
2515
+ "name": "PREPROC_IF_KEYWORD"
2516
+ },
2517
+ {
2518
+ "type": "SYMBOL",
2519
+ "name": "expression"
2520
+ },
2521
+ {
2522
+ "type": "SYMBOL",
2523
+ "name": "THEN_KEYWORD"
2524
+ }
2525
+ ]
2526
+ },
2527
+ {
2528
+ "type": "SEQ",
2529
+ "members": [
2530
+ {
2531
+ "type": "SYMBOL",
2532
+ "name": "PREPROC_ELSE_IF_KEYWORD"
2533
+ },
2534
+ {
2535
+ "type": "SYMBOL",
2536
+ "name": "expression"
2537
+ },
2538
+ {
2539
+ "type": "SYMBOL",
2540
+ "name": "THEN_KEYWORD"
2541
+ }
2542
+ ]
2543
+ },
2544
+ {
2545
+ "type": "SYMBOL",
2546
+ "name": "PREPROC_ELSE_KEYWORD"
2547
+ },
2548
+ {
2549
+ "type": "SYMBOL",
2550
+ "name": "PREPROC_END_IF_KEYWORD"
2551
+ },
2552
+ {
2553
+ "type": "ALIAS",
2554
+ "content": {
2555
+ "type": "TOKEN",
2556
+ "content": {
2557
+ "type": "PATTERN",
2558
+ "value": "#Вставка",
2559
+ "flags": "i"
2560
+ }
2561
+ },
2562
+ "named": true,
2563
+ "value": "preproc"
2564
+ },
2565
+ {
2566
+ "type": "ALIAS",
2567
+ "content": {
2568
+ "type": "TOKEN",
2569
+ "content": {
2570
+ "type": "PATTERN",
2571
+ "value": "#Insert",
2572
+ "flags": "i"
2573
+ }
2574
+ },
2575
+ "named": true,
2576
+ "value": "preproc"
2577
+ },
2578
+ {
2579
+ "type": "ALIAS",
2580
+ "content": {
2581
+ "type": "TOKEN",
2582
+ "content": {
2583
+ "type": "PATTERN",
2584
+ "value": "#КонецВставки",
2585
+ "flags": "i"
2586
+ }
2587
+ },
2588
+ "named": true,
2589
+ "value": "preproc"
2590
+ },
2591
+ {
2592
+ "type": "ALIAS",
2593
+ "content": {
2594
+ "type": "TOKEN",
2595
+ "content": {
2596
+ "type": "PATTERN",
2597
+ "value": "#EndInsert",
2598
+ "flags": "i"
2599
+ }
2600
+ },
2601
+ "named": true,
2602
+ "value": "preproc"
2603
+ },
2604
+ {
2605
+ "type": "ALIAS",
2606
+ "content": {
2607
+ "type": "TOKEN",
2608
+ "content": {
2609
+ "type": "PATTERN",
2610
+ "value": "#Удаление",
2611
+ "flags": "i"
2612
+ }
2613
+ },
2614
+ "named": true,
2615
+ "value": "preproc"
2616
+ },
2617
+ {
2618
+ "type": "ALIAS",
2619
+ "content": {
2620
+ "type": "TOKEN",
2621
+ "content": {
2622
+ "type": "PATTERN",
2623
+ "value": "#Delete",
2624
+ "flags": "i"
2625
+ }
2626
+ },
2627
+ "named": true,
2628
+ "value": "preproc"
2629
+ },
2630
+ {
2631
+ "type": "ALIAS",
2632
+ "content": {
2633
+ "type": "TOKEN",
2634
+ "content": {
2635
+ "type": "PATTERN",
2636
+ "value": "#КонецУдаления",
2637
+ "flags": "i"
2638
+ }
2639
+ },
2640
+ "named": true,
2641
+ "value": "preproc"
2642
+ },
2643
+ {
2644
+ "type": "ALIAS",
2645
+ "content": {
2646
+ "type": "TOKEN",
2647
+ "content": {
2648
+ "type": "PATTERN",
2649
+ "value": "#EndDelete",
2650
+ "flags": "i"
2651
+ }
2652
+ },
2653
+ "named": true,
2654
+ "value": "preproc"
2655
+ },
2656
+ {
2657
+ "type": "SEQ",
2658
+ "members": [
2659
+ {
2660
+ "type": "ALIAS",
2661
+ "content": {
2662
+ "type": "TOKEN",
2663
+ "content": {
2664
+ "type": "PATTERN",
2665
+ "value": "&Перед",
2666
+ "flags": "i"
2667
+ }
2668
+ },
2669
+ "named": true,
2670
+ "value": "annotation"
2671
+ },
2672
+ {
2673
+ "type": "STRING",
2674
+ "value": "("
2675
+ },
2676
+ {
2677
+ "type": "SYMBOL",
2678
+ "name": "string"
2679
+ },
2680
+ {
2681
+ "type": "STRING",
2682
+ "value": ")"
2683
+ }
2684
+ ]
2685
+ },
2686
+ {
2687
+ "type": "SEQ",
2688
+ "members": [
2689
+ {
2690
+ "type": "ALIAS",
2691
+ "content": {
2692
+ "type": "TOKEN",
2693
+ "content": {
2694
+ "type": "PATTERN",
2695
+ "value": "&Before",
2696
+ "flags": "i"
2697
+ }
2698
+ },
2699
+ "named": true,
2700
+ "value": "annotation"
2701
+ },
2702
+ {
2703
+ "type": "STRING",
2704
+ "value": "("
2705
+ },
2706
+ {
2707
+ "type": "SYMBOL",
2708
+ "name": "string"
2709
+ },
2710
+ {
2711
+ "type": "STRING",
2712
+ "value": ")"
2713
+ }
2714
+ ]
2715
+ },
2716
+ {
2717
+ "type": "SEQ",
2718
+ "members": [
2719
+ {
2720
+ "type": "ALIAS",
2721
+ "content": {
2722
+ "type": "TOKEN",
2723
+ "content": {
2724
+ "type": "PATTERN",
2725
+ "value": "&После",
2726
+ "flags": "i"
2727
+ }
2728
+ },
2729
+ "named": true,
2730
+ "value": "annotation"
2731
+ },
2732
+ {
2733
+ "type": "STRING",
2734
+ "value": "("
2735
+ },
2736
+ {
2737
+ "type": "SYMBOL",
2738
+ "name": "string"
2739
+ },
2740
+ {
2741
+ "type": "STRING",
2742
+ "value": ")"
2743
+ }
2744
+ ]
2745
+ },
2746
+ {
2747
+ "type": "SEQ",
2748
+ "members": [
2749
+ {
2750
+ "type": "ALIAS",
2751
+ "content": {
2752
+ "type": "TOKEN",
2753
+ "content": {
2754
+ "type": "PATTERN",
2755
+ "value": "&After",
2756
+ "flags": "i"
2757
+ }
2758
+ },
2759
+ "named": true,
2760
+ "value": "annotation"
2761
+ },
2762
+ {
2763
+ "type": "STRING",
2764
+ "value": "("
2765
+ },
2766
+ {
2767
+ "type": "SYMBOL",
2768
+ "name": "string"
2769
+ },
2770
+ {
2771
+ "type": "STRING",
2772
+ "value": ")"
2773
+ }
2774
+ ]
2775
+ },
2776
+ {
2777
+ "type": "SEQ",
2778
+ "members": [
2779
+ {
2780
+ "type": "ALIAS",
2781
+ "content": {
2782
+ "type": "TOKEN",
2783
+ "content": {
2784
+ "type": "PATTERN",
2785
+ "value": "&Вместо",
2786
+ "flags": "i"
2787
+ }
2788
+ },
2789
+ "named": true,
2790
+ "value": "annotation"
2791
+ },
2792
+ {
2793
+ "type": "STRING",
2794
+ "value": "("
2795
+ },
2796
+ {
2797
+ "type": "SYMBOL",
2798
+ "name": "string"
2799
+ },
2800
+ {
2801
+ "type": "STRING",
2802
+ "value": ")"
2803
+ }
2804
+ ]
2805
+ },
2806
+ {
2807
+ "type": "SEQ",
2808
+ "members": [
2809
+ {
2810
+ "type": "ALIAS",
2811
+ "content": {
2812
+ "type": "TOKEN",
2813
+ "content": {
2814
+ "type": "PATTERN",
2815
+ "value": "&Around",
2816
+ "flags": "i"
2817
+ }
2818
+ },
2819
+ "named": true,
2820
+ "value": "annotation"
2821
+ },
2822
+ {
2823
+ "type": "STRING",
2824
+ "value": "("
2825
+ },
2826
+ {
2827
+ "type": "SYMBOL",
2828
+ "name": "string"
2829
+ },
2830
+ {
2831
+ "type": "STRING",
2832
+ "value": ")"
2833
+ }
2834
+ ]
2835
+ },
2836
+ {
2837
+ "type": "SEQ",
2838
+ "members": [
2839
+ {
2840
+ "type": "ALIAS",
2841
+ "content": {
2842
+ "type": "TOKEN",
2843
+ "content": {
2844
+ "type": "PATTERN",
2845
+ "value": "&ИзменениеИКонтроль",
2846
+ "flags": "i"
2847
+ }
2848
+ },
2849
+ "named": true,
2850
+ "value": "annotation"
2851
+ },
2852
+ {
2853
+ "type": "STRING",
2854
+ "value": "("
2855
+ },
2856
+ {
2857
+ "type": "SYMBOL",
2858
+ "name": "string"
2859
+ },
2860
+ {
2861
+ "type": "STRING",
2862
+ "value": ")"
2863
+ }
2864
+ ]
2865
+ },
2866
+ {
2867
+ "type": "SEQ",
2868
+ "members": [
2869
+ {
2870
+ "type": "ALIAS",
2871
+ "content": {
2872
+ "type": "TOKEN",
2873
+ "content": {
2874
+ "type": "PATTERN",
2875
+ "value": "&ChangeAndValidate",
2876
+ "flags": "i"
2877
+ }
2878
+ },
2879
+ "named": true,
2880
+ "value": "annotation"
2881
+ },
2882
+ {
2883
+ "type": "STRING",
2884
+ "value": "("
2885
+ },
2886
+ {
2887
+ "type": "SYMBOL",
2888
+ "name": "string"
2889
+ },
2890
+ {
2891
+ "type": "STRING",
2892
+ "value": ")"
2893
+ }
2894
+ ]
2895
+ },
2896
+ {
2897
+ "type": "ALIAS",
2898
+ "content": {
2899
+ "type": "TOKEN",
2900
+ "content": {
2901
+ "type": "PATTERN",
2902
+ "value": "&НаКлиенте",
2903
+ "flags": "i"
2904
+ }
2905
+ },
2906
+ "named": true,
2907
+ "value": "annotation"
2908
+ },
2909
+ {
2910
+ "type": "ALIAS",
2911
+ "content": {
2912
+ "type": "TOKEN",
2913
+ "content": {
2914
+ "type": "PATTERN",
2915
+ "value": "&AtClient",
2916
+ "flags": "i"
2917
+ }
2918
+ },
2919
+ "named": true,
2920
+ "value": "annotation"
2921
+ },
2922
+ {
2923
+ "type": "ALIAS",
2924
+ "content": {
2925
+ "type": "TOKEN",
2926
+ "content": {
2927
+ "type": "PATTERN",
2928
+ "value": "&НаСервере",
2929
+ "flags": "i"
2930
+ }
2931
+ },
2932
+ "named": true,
2933
+ "value": "annotation"
2934
+ },
2935
+ {
2936
+ "type": "ALIAS",
2937
+ "content": {
2938
+ "type": "TOKEN",
2939
+ "content": {
2940
+ "type": "PATTERN",
2941
+ "value": "&AtServer",
2942
+ "flags": "i"
2943
+ }
2944
+ },
2945
+ "named": true,
2946
+ "value": "annotation"
2947
+ },
2948
+ {
2949
+ "type": "ALIAS",
2950
+ "content": {
2951
+ "type": "TOKEN",
2952
+ "content": {
2953
+ "type": "PATTERN",
2954
+ "value": "&НаСервереБезКонтекста",
2955
+ "flags": "i"
2956
+ }
2957
+ },
2958
+ "named": true,
2959
+ "value": "annotation"
2960
+ },
2961
+ {
2962
+ "type": "ALIAS",
2963
+ "content": {
2964
+ "type": "TOKEN",
2965
+ "content": {
2966
+ "type": "PATTERN",
2967
+ "value": "&AtServerNoContext",
2968
+ "flags": "i"
2969
+ }
2970
+ },
2971
+ "named": true,
2972
+ "value": "annotation"
2973
+ },
2974
+ {
2975
+ "type": "ALIAS",
2976
+ "content": {
2977
+ "type": "TOKEN",
2978
+ "content": {
2979
+ "type": "PATTERN",
2980
+ "value": "&НаКлиентеНаСервереБезКонтекста",
2981
+ "flags": "i"
2982
+ }
2983
+ },
2984
+ "named": true,
2985
+ "value": "annotation"
2986
+ },
2987
+ {
2988
+ "type": "ALIAS",
2989
+ "content": {
2990
+ "type": "TOKEN",
2991
+ "content": {
2992
+ "type": "PATTERN",
2993
+ "value": "&AtClientAtServerNoContext",
2994
+ "flags": "i"
2995
+ }
2996
+ },
2997
+ "named": true,
2998
+ "value": "annotation"
2999
+ },
3000
+ {
3001
+ "type": "ALIAS",
3002
+ "content": {
3003
+ "type": "TOKEN",
3004
+ "content": {
3005
+ "type": "PATTERN",
3006
+ "value": "&НаКлиентеНаСервере",
3007
+ "flags": "i"
3008
+ }
3009
+ },
3010
+ "named": true,
3011
+ "value": "annotation"
3012
+ },
3013
+ {
3014
+ "type": "ALIAS",
3015
+ "content": {
3016
+ "type": "TOKEN",
3017
+ "content": {
3018
+ "type": "PATTERN",
3019
+ "value": "&AtClientAtServer",
3020
+ "flags": "i"
3021
+ }
3022
+ },
3023
+ "named": true,
3024
+ "value": "annotation"
3025
+ }
3026
+ ]
3027
+ },
3028
+ "_const_value": {
3029
+ "type": "CHOICE",
3030
+ "members": [
3031
+ {
3032
+ "type": "SYMBOL",
3033
+ "name": "number"
3034
+ },
3035
+ {
3036
+ "type": "SYMBOL",
3037
+ "name": "date"
3038
+ },
3039
+ {
3040
+ "type": "SYMBOL",
3041
+ "name": "string"
3042
+ },
3043
+ {
3044
+ "type": "ALIAS",
3045
+ "content": {
3046
+ "type": "SYMBOL",
3047
+ "name": "multiline_string"
3048
+ },
3049
+ "named": true,
3050
+ "value": "string"
3051
+ },
3052
+ {
3053
+ "type": "SYMBOL",
3054
+ "name": "boolean"
3055
+ },
3056
+ {
3057
+ "type": "SYMBOL",
3058
+ "name": "UNDEFINED_KEYWORD"
3059
+ },
3060
+ {
3061
+ "type": "SYMBOL",
3062
+ "name": "NULL_KEYWORD"
3063
+ }
3064
+ ]
3065
+ },
3066
+ "boolean": {
3067
+ "type": "CHOICE",
3068
+ "members": [
3069
+ {
3070
+ "type": "SYMBOL",
3071
+ "name": "TRUE_KEYWORD"
3072
+ },
3073
+ {
3074
+ "type": "SYMBOL",
3075
+ "name": "FALSE_KEYWORD"
3076
+ }
3077
+ ]
3078
+ },
3079
+ "null": {
3080
+ "type": "SYMBOL",
3081
+ "name": "NULL_KEYWORD"
3082
+ },
3083
+ "number": {
3084
+ "type": "PATTERN",
3085
+ "value": "\\d+(\\.\\d+)?"
3086
+ },
3087
+ "date": {
3088
+ "type": "PATTERN",
3089
+ "value": "'\\d{8,14}'"
3090
+ },
3091
+ "string": {
3092
+ "type": "SEQ",
3093
+ "members": [
3094
+ {
3095
+ "type": "STRING",
3096
+ "value": "\""
3097
+ },
3098
+ {
3099
+ "type": "ALIAS",
3100
+ "content": {
3101
+ "type": "IMMEDIATE_TOKEN",
3102
+ "content": {
3103
+ "type": "PREC",
3104
+ "value": 1,
3105
+ "content": {
3106
+ "type": "PATTERN",
3107
+ "value": "([^\\r\\n\"]|\"\")*"
3108
+ }
3109
+ }
3110
+ },
3111
+ "named": true,
3112
+ "value": "string_content"
3113
+ },
3114
+ {
3115
+ "type": "STRING",
3116
+ "value": "\""
3117
+ }
3118
+ ]
3119
+ },
3120
+ "multiline_string": {
3121
+ "type": "SEQ",
3122
+ "members": [
3123
+ {
3124
+ "type": "STRING",
3125
+ "value": "\""
3126
+ },
3127
+ {
3128
+ "type": "ALIAS",
3129
+ "content": {
3130
+ "type": "IMMEDIATE_TOKEN",
3131
+ "content": {
3132
+ "type": "PREC",
3133
+ "value": 1,
3134
+ "content": {
3135
+ "type": "PATTERN",
3136
+ "value": "([^\\r\\n\"]|\"\")*"
3137
+ }
3138
+ }
3139
+ },
3140
+ "named": true,
3141
+ "value": "string_content"
3142
+ },
3143
+ {
3144
+ "type": "REPEAT1",
3145
+ "content": {
3146
+ "type": "SEQ",
3147
+ "members": [
3148
+ {
3149
+ "type": "STRING",
3150
+ "value": "|"
3151
+ },
3152
+ {
3153
+ "type": "ALIAS",
3154
+ "content": {
3155
+ "type": "IMMEDIATE_TOKEN",
3156
+ "content": {
3157
+ "type": "PREC",
3158
+ "value": 1,
3159
+ "content": {
3160
+ "type": "PATTERN",
3161
+ "value": "([^\\r\\n\"]|\"\")*"
3162
+ }
3163
+ }
3164
+ },
3165
+ "named": true,
3166
+ "value": "string_content"
3167
+ }
3168
+ ]
3169
+ }
3170
+ },
3171
+ {
3172
+ "type": "STRING",
3173
+ "value": "\""
3174
+ }
3175
+ ]
3176
+ },
3177
+ "identifier": {
3178
+ "type": "PATTERN",
3179
+ "value": "[\\wа-я_][\\wа-я_0-9]*",
3180
+ "flags": "i"
3181
+ },
3182
+ "line_comment": {
3183
+ "type": "SEQ",
3184
+ "members": [
3185
+ {
3186
+ "type": "STRING",
3187
+ "value": "//"
3188
+ },
3189
+ {
3190
+ "type": "PATTERN",
3191
+ "value": ".*"
3192
+ }
3193
+ ]
3194
+ },
3195
+ "_non_special_token": {
3196
+ "type": "CHOICE",
3197
+ "members": [
3198
+ {
3199
+ "type": "PREC_RIGHT",
3200
+ "value": 0,
3201
+ "content": {
3202
+ "type": "REPEAT1",
3203
+ "content": {
3204
+ "type": "CHOICE",
3205
+ "members": [
3206
+ {
3207
+ "type": "STRING",
3208
+ "value": "+"
3209
+ },
3210
+ {
3211
+ "type": "STRING",
3212
+ "value": "-"
3213
+ },
3214
+ {
3215
+ "type": "STRING",
3216
+ "value": "*"
3217
+ },
3218
+ {
3219
+ "type": "STRING",
3220
+ "value": "/"
3221
+ },
3222
+ {
3223
+ "type": "STRING",
3224
+ "value": "%"
3225
+ },
3226
+ {
3227
+ "type": "STRING",
3228
+ "value": "<>"
3229
+ },
3230
+ {
3231
+ "type": "STRING",
3232
+ "value": "="
3233
+ },
3234
+ {
3235
+ "type": "STRING",
3236
+ "value": ">"
3237
+ },
3238
+ {
3239
+ "type": "STRING",
3240
+ "value": "<"
3241
+ },
3242
+ {
3243
+ "type": "STRING",
3244
+ "value": ">="
3245
+ },
3246
+ {
3247
+ "type": "STRING",
3248
+ "value": "<="
3249
+ },
3250
+ {
3251
+ "type": "STRING",
3252
+ "value": "."
3253
+ },
3254
+ {
3255
+ "type": "STRING",
3256
+ "value": ","
3257
+ },
3258
+ {
3259
+ "type": "STRING",
3260
+ "value": ";"
3261
+ },
3262
+ {
3263
+ "type": "STRING",
3264
+ "value": ":"
3265
+ },
3266
+ {
3267
+ "type": "STRING",
3268
+ "value": "?"
3269
+ },
3270
+ {
3271
+ "type": "STRING",
3272
+ "value": "~"
3273
+ },
3274
+ {
3275
+ "type": "STRING",
3276
+ "value": "|"
3277
+ },
3278
+ {
3279
+ "type": "STRING",
3280
+ "value": "&"
3281
+ },
3282
+ {
3283
+ "type": "STRING",
3284
+ "value": "#"
3285
+ }
3286
+ ]
3287
+ }
3288
+ }
3289
+ }
3290
+ ]
3291
+ }
3292
+ },
3293
+ "extras": [
3294
+ {
3295
+ "type": "PATTERN",
3296
+ "value": "\\s"
3297
+ },
3298
+ {
3299
+ "type": "SYMBOL",
3300
+ "name": "line_comment"
3301
+ }
3302
+ ],
3303
+ "conflicts": [],
3304
+ "precedences": [],
3305
+ "externals": [],
3306
+ "inline": [],
3307
+ "supertypes": [
3308
+ "statement"
3309
+ ],
3310
+ "reserved": {}
3311
+ }