@acristoffers/tree-sitter-matlab 1.2.4 → 1.2.12
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.
- package/README.md +9 -23
- package/grammar.js +81 -58
- package/package.json +1 -1
- package/src/grammar.json +523 -304
- package/src/node-types.json +28 -16
- package/src/parser.c +68065 -75419
- package/src/scanner.c +109 -37
- package/tree-sitter.json +1 -1
package/src/grammar.json
CHANGED
|
@@ -3,38 +3,50 @@
|
|
|
3
3
|
"name": "matlab",
|
|
4
4
|
"rules": {
|
|
5
5
|
"source_file": {
|
|
6
|
-
"type": "
|
|
6
|
+
"type": "SEQ",
|
|
7
7
|
"members": [
|
|
8
|
+
{
|
|
9
|
+
"type": "REPEAT",
|
|
10
|
+
"content": {
|
|
11
|
+
"type": "SYMBOL",
|
|
12
|
+
"name": "_end_of_line"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
8
15
|
{
|
|
9
16
|
"type": "CHOICE",
|
|
10
17
|
"members": [
|
|
11
18
|
{
|
|
12
|
-
"type": "
|
|
19
|
+
"type": "CHOICE",
|
|
13
20
|
"members": [
|
|
14
21
|
{
|
|
15
|
-
"type": "
|
|
16
|
-
"
|
|
22
|
+
"type": "SEQ",
|
|
23
|
+
"members": [
|
|
24
|
+
{
|
|
25
|
+
"type": "SYMBOL",
|
|
26
|
+
"name": "_block"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"type": "REPEAT",
|
|
30
|
+
"content": {
|
|
31
|
+
"type": "SYMBOL",
|
|
32
|
+
"name": "function_definition"
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
]
|
|
17
36
|
},
|
|
18
37
|
{
|
|
19
|
-
"type": "
|
|
20
|
-
"content": {
|
|
21
|
-
"type": "SYMBOL",
|
|
22
|
-
"name": "function_definition"
|
|
23
|
-
}
|
|
38
|
+
"type": "BLANK"
|
|
24
39
|
}
|
|
25
40
|
]
|
|
26
41
|
},
|
|
27
42
|
{
|
|
28
|
-
"type": "
|
|
43
|
+
"type": "REPEAT1",
|
|
44
|
+
"content": {
|
|
45
|
+
"type": "SYMBOL",
|
|
46
|
+
"name": "function_definition"
|
|
47
|
+
}
|
|
29
48
|
}
|
|
30
49
|
]
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
"type": "REPEAT1",
|
|
34
|
-
"content": {
|
|
35
|
-
"type": "SYMBOL",
|
|
36
|
-
"name": "function_definition"
|
|
37
|
-
}
|
|
38
50
|
}
|
|
39
51
|
]
|
|
40
52
|
},
|
|
@@ -886,6 +898,10 @@
|
|
|
886
898
|
{
|
|
887
899
|
"type": "SYMBOL",
|
|
888
900
|
"name": "unary_operator"
|
|
901
|
+
},
|
|
902
|
+
{
|
|
903
|
+
"type": "SYMBOL",
|
|
904
|
+
"name": "not_operator"
|
|
889
905
|
}
|
|
890
906
|
]
|
|
891
907
|
},
|
|
@@ -980,8 +996,65 @@
|
|
|
980
996
|
"value": "~"
|
|
981
997
|
},
|
|
982
998
|
{
|
|
983
|
-
"type": "
|
|
984
|
-
"
|
|
999
|
+
"type": "CHOICE",
|
|
1000
|
+
"members": [
|
|
1001
|
+
{
|
|
1002
|
+
"type": "SYMBOL",
|
|
1003
|
+
"name": "cell"
|
|
1004
|
+
},
|
|
1005
|
+
{
|
|
1006
|
+
"type": "SYMBOL",
|
|
1007
|
+
"name": "function_call"
|
|
1008
|
+
},
|
|
1009
|
+
{
|
|
1010
|
+
"type": "SYMBOL",
|
|
1011
|
+
"name": "handle_operator"
|
|
1012
|
+
},
|
|
1013
|
+
{
|
|
1014
|
+
"type": "SYMBOL",
|
|
1015
|
+
"name": "identifier"
|
|
1016
|
+
},
|
|
1017
|
+
{
|
|
1018
|
+
"type": "SYMBOL",
|
|
1019
|
+
"name": "matrix"
|
|
1020
|
+
},
|
|
1021
|
+
{
|
|
1022
|
+
"type": "SYMBOL",
|
|
1023
|
+
"name": "metaclass_operator"
|
|
1024
|
+
},
|
|
1025
|
+
{
|
|
1026
|
+
"type": "SYMBOL",
|
|
1027
|
+
"name": "not_operator"
|
|
1028
|
+
},
|
|
1029
|
+
{
|
|
1030
|
+
"type": "SYMBOL",
|
|
1031
|
+
"name": "number"
|
|
1032
|
+
},
|
|
1033
|
+
{
|
|
1034
|
+
"type": "SYMBOL",
|
|
1035
|
+
"name": "parenthesis"
|
|
1036
|
+
},
|
|
1037
|
+
{
|
|
1038
|
+
"type": "SYMBOL",
|
|
1039
|
+
"name": "postfix_operator"
|
|
1040
|
+
},
|
|
1041
|
+
{
|
|
1042
|
+
"type": "SYMBOL",
|
|
1043
|
+
"name": "range"
|
|
1044
|
+
},
|
|
1045
|
+
{
|
|
1046
|
+
"type": "SYMBOL",
|
|
1047
|
+
"name": "string"
|
|
1048
|
+
},
|
|
1049
|
+
{
|
|
1050
|
+
"type": "SYMBOL",
|
|
1051
|
+
"name": "unary_operator"
|
|
1052
|
+
},
|
|
1053
|
+
{
|
|
1054
|
+
"type": "SYMBOL",
|
|
1055
|
+
"name": "field_expression"
|
|
1056
|
+
}
|
|
1057
|
+
]
|
|
985
1058
|
}
|
|
986
1059
|
]
|
|
987
1060
|
}
|
|
@@ -1430,8 +1503,17 @@
|
|
|
1430
1503
|
{
|
|
1431
1504
|
"type": "REPEAT",
|
|
1432
1505
|
"content": {
|
|
1433
|
-
"type": "
|
|
1434
|
-
"
|
|
1506
|
+
"type": "CHOICE",
|
|
1507
|
+
"members": [
|
|
1508
|
+
{
|
|
1509
|
+
"type": "PATTERN",
|
|
1510
|
+
"value": "[,]*;[ ,;]*"
|
|
1511
|
+
},
|
|
1512
|
+
{
|
|
1513
|
+
"type": "PATTERN",
|
|
1514
|
+
"value": "[\\r\\n]"
|
|
1515
|
+
}
|
|
1516
|
+
]
|
|
1435
1517
|
}
|
|
1436
1518
|
},
|
|
1437
1519
|
{
|
|
@@ -1453,8 +1535,8 @@
|
|
|
1453
1535
|
"type": "CHOICE",
|
|
1454
1536
|
"members": [
|
|
1455
1537
|
{
|
|
1456
|
-
"type": "
|
|
1457
|
-
"value": "
|
|
1538
|
+
"type": "PATTERN",
|
|
1539
|
+
"value": "[,]*;[ ,;]*"
|
|
1458
1540
|
},
|
|
1459
1541
|
{
|
|
1460
1542
|
"type": "PATTERN",
|
|
@@ -1500,8 +1582,17 @@
|
|
|
1500
1582
|
{
|
|
1501
1583
|
"type": "REPEAT",
|
|
1502
1584
|
"content": {
|
|
1503
|
-
"type": "
|
|
1504
|
-
"
|
|
1585
|
+
"type": "CHOICE",
|
|
1586
|
+
"members": [
|
|
1587
|
+
{
|
|
1588
|
+
"type": "PATTERN",
|
|
1589
|
+
"value": "[,]*;[ ,;]*"
|
|
1590
|
+
},
|
|
1591
|
+
{
|
|
1592
|
+
"type": "PATTERN",
|
|
1593
|
+
"value": "[\\r\\n]"
|
|
1594
|
+
}
|
|
1595
|
+
]
|
|
1505
1596
|
}
|
|
1506
1597
|
},
|
|
1507
1598
|
{
|
|
@@ -1523,8 +1614,8 @@
|
|
|
1523
1614
|
"type": "CHOICE",
|
|
1524
1615
|
"members": [
|
|
1525
1616
|
{
|
|
1526
|
-
"type": "
|
|
1527
|
-
"value": "
|
|
1617
|
+
"type": "PATTERN",
|
|
1618
|
+
"value": "[,]*;[ ,;]*"
|
|
1528
1619
|
},
|
|
1529
1620
|
{
|
|
1530
1621
|
"type": "PATTERN",
|
|
@@ -2077,12 +2168,22 @@
|
|
|
2077
2168
|
"type": "CHOICE",
|
|
2078
2169
|
"members": [
|
|
2079
2170
|
{
|
|
2080
|
-
"type": "
|
|
2081
|
-
"
|
|
2171
|
+
"type": "ALIAS",
|
|
2172
|
+
"content": {
|
|
2173
|
+
"type": "SYMBOL",
|
|
2174
|
+
"name": "_transpose"
|
|
2175
|
+
},
|
|
2176
|
+
"named": false,
|
|
2177
|
+
"value": "'"
|
|
2082
2178
|
},
|
|
2083
2179
|
{
|
|
2084
|
-
"type": "
|
|
2085
|
-
"
|
|
2180
|
+
"type": "ALIAS",
|
|
2181
|
+
"content": {
|
|
2182
|
+
"type": "SYMBOL",
|
|
2183
|
+
"name": "_ctranspose"
|
|
2184
|
+
},
|
|
2185
|
+
"named": false,
|
|
2186
|
+
"value": ".'"
|
|
2086
2187
|
}
|
|
2087
2188
|
]
|
|
2088
2189
|
}
|
|
@@ -3852,6 +3953,10 @@
|
|
|
3852
3953
|
"type": "SYMBOL",
|
|
3853
3954
|
"name": "identifier"
|
|
3854
3955
|
},
|
|
3956
|
+
{
|
|
3957
|
+
"type": "SYMBOL",
|
|
3958
|
+
"name": "field_expression"
|
|
3959
|
+
},
|
|
3855
3960
|
{
|
|
3856
3961
|
"type": "SYMBOL",
|
|
3857
3962
|
"name": "function_call"
|
|
@@ -4377,27 +4482,27 @@
|
|
|
4377
4482
|
{
|
|
4378
4483
|
"type": "REPEAT",
|
|
4379
4484
|
"content": {
|
|
4380
|
-
"type": "
|
|
4485
|
+
"type": "SEQ",
|
|
4381
4486
|
"members": [
|
|
4382
4487
|
{
|
|
4383
|
-
"type": "
|
|
4384
|
-
"name": "property"
|
|
4385
|
-
},
|
|
4386
|
-
{
|
|
4387
|
-
"type": "SEQ",
|
|
4488
|
+
"type": "CHOICE",
|
|
4388
4489
|
"members": [
|
|
4389
4490
|
{
|
|
4390
4491
|
"type": "SYMBOL",
|
|
4391
|
-
"name": "
|
|
4492
|
+
"name": "property"
|
|
4392
4493
|
},
|
|
4393
4494
|
{
|
|
4394
|
-
"type": "
|
|
4395
|
-
"
|
|
4396
|
-
"type": "SYMBOL",
|
|
4397
|
-
"name": "_end_of_line"
|
|
4398
|
-
}
|
|
4495
|
+
"type": "SYMBOL",
|
|
4496
|
+
"name": "class_property"
|
|
4399
4497
|
}
|
|
4400
4498
|
]
|
|
4499
|
+
},
|
|
4500
|
+
{
|
|
4501
|
+
"type": "REPEAT1",
|
|
4502
|
+
"content": {
|
|
4503
|
+
"type": "SYMBOL",
|
|
4504
|
+
"name": "_end_of_line"
|
|
4505
|
+
}
|
|
4401
4506
|
}
|
|
4402
4507
|
]
|
|
4403
4508
|
}
|
|
@@ -4473,7 +4578,7 @@
|
|
|
4473
4578
|
]
|
|
4474
4579
|
},
|
|
4475
4580
|
"function_definition": {
|
|
4476
|
-
"type": "
|
|
4581
|
+
"type": "PREC_DYNAMIC",
|
|
4477
4582
|
"value": 0,
|
|
4478
4583
|
"content": {
|
|
4479
4584
|
"type": "SEQ",
|
|
@@ -4560,22 +4665,45 @@
|
|
|
4560
4665
|
{
|
|
4561
4666
|
"type": "REPEAT",
|
|
4562
4667
|
"content": {
|
|
4563
|
-
"type": "
|
|
4564
|
-
"
|
|
4565
|
-
|
|
4566
|
-
|
|
4567
|
-
|
|
4568
|
-
|
|
4569
|
-
|
|
4570
|
-
|
|
4571
|
-
|
|
4668
|
+
"type": "SEQ",
|
|
4669
|
+
"members": [
|
|
4670
|
+
{
|
|
4671
|
+
"type": "REPEAT",
|
|
4672
|
+
"content": {
|
|
4673
|
+
"type": "CHOICE",
|
|
4674
|
+
"members": [
|
|
4675
|
+
{
|
|
4676
|
+
"type": "SYMBOL",
|
|
4677
|
+
"name": "comment"
|
|
4678
|
+
},
|
|
4679
|
+
{
|
|
4680
|
+
"type": "SYMBOL",
|
|
4681
|
+
"name": "_end_of_line"
|
|
4682
|
+
}
|
|
4683
|
+
]
|
|
4684
|
+
}
|
|
4685
|
+
},
|
|
4686
|
+
{
|
|
4687
|
+
"type": "SYMBOL",
|
|
4688
|
+
"name": "arguments_statement"
|
|
4689
|
+
}
|
|
4690
|
+
]
|
|
4572
4691
|
}
|
|
4573
4692
|
},
|
|
4574
4693
|
{
|
|
4575
4694
|
"type": "REPEAT",
|
|
4576
4695
|
"content": {
|
|
4577
|
-
"type": "
|
|
4578
|
-
"
|
|
4696
|
+
"type": "CHOICE",
|
|
4697
|
+
"members": [
|
|
4698
|
+
{
|
|
4699
|
+
"type": "SYMBOL",
|
|
4700
|
+
"name": "comment"
|
|
4701
|
+
},
|
|
4702
|
+
{
|
|
4703
|
+
"type": "SYMBOL",
|
|
4704
|
+
"name": "_end_of_line"
|
|
4705
|
+
}
|
|
4706
|
+
]
|
|
4579
4707
|
}
|
|
4580
4708
|
},
|
|
4581
4709
|
{
|
|
@@ -4637,8 +4765,8 @@
|
|
|
4637
4765
|
}
|
|
4638
4766
|
},
|
|
4639
4767
|
"_function_definition_with_end": {
|
|
4640
|
-
"type": "
|
|
4641
|
-
"value":
|
|
4768
|
+
"type": "PREC_DYNAMIC",
|
|
4769
|
+
"value": 1,
|
|
4642
4770
|
"content": {
|
|
4643
4771
|
"type": "SEQ",
|
|
4644
4772
|
"members": [
|
|
@@ -4717,56 +4845,92 @@
|
|
|
4717
4845
|
}
|
|
4718
4846
|
]
|
|
4719
4847
|
},
|
|
4720
|
-
{
|
|
4721
|
-
"type": "
|
|
4722
|
-
"
|
|
4723
|
-
|
|
4724
|
-
|
|
4725
|
-
|
|
4726
|
-
|
|
4727
|
-
|
|
4728
|
-
|
|
4729
|
-
|
|
4730
|
-
|
|
4731
|
-
|
|
4732
|
-
|
|
4733
|
-
|
|
4734
|
-
|
|
4735
|
-
|
|
4736
|
-
|
|
4737
|
-
|
|
4738
|
-
|
|
4739
|
-
|
|
4740
|
-
|
|
4741
|
-
|
|
4742
|
-
|
|
4743
|
-
|
|
4744
|
-
|
|
4745
|
-
|
|
4746
|
-
|
|
4747
|
-
|
|
4748
|
-
|
|
4749
|
-
|
|
4750
|
-
|
|
4751
|
-
|
|
4752
|
-
|
|
4753
|
-
|
|
4754
|
-
|
|
4755
|
-
|
|
4756
|
-
|
|
4757
|
-
|
|
4758
|
-
|
|
4759
|
-
|
|
4760
|
-
|
|
4761
|
-
|
|
4762
|
-
|
|
4763
|
-
|
|
4764
|
-
|
|
4765
|
-
|
|
4766
|
-
|
|
4767
|
-
|
|
4768
|
-
|
|
4769
|
-
|
|
4848
|
+
{
|
|
4849
|
+
"type": "CHOICE",
|
|
4850
|
+
"members": [
|
|
4851
|
+
{
|
|
4852
|
+
"type": "SEQ",
|
|
4853
|
+
"members": [
|
|
4854
|
+
{
|
|
4855
|
+
"type": "SYMBOL",
|
|
4856
|
+
"name": "_end_of_line"
|
|
4857
|
+
},
|
|
4858
|
+
{
|
|
4859
|
+
"type": "REPEAT",
|
|
4860
|
+
"content": {
|
|
4861
|
+
"type": "SEQ",
|
|
4862
|
+
"members": [
|
|
4863
|
+
{
|
|
4864
|
+
"type": "REPEAT",
|
|
4865
|
+
"content": {
|
|
4866
|
+
"type": "CHOICE",
|
|
4867
|
+
"members": [
|
|
4868
|
+
{
|
|
4869
|
+
"type": "SYMBOL",
|
|
4870
|
+
"name": "comment"
|
|
4871
|
+
},
|
|
4872
|
+
{
|
|
4873
|
+
"type": "SYMBOL",
|
|
4874
|
+
"name": "_end_of_line"
|
|
4875
|
+
}
|
|
4876
|
+
]
|
|
4877
|
+
}
|
|
4878
|
+
},
|
|
4879
|
+
{
|
|
4880
|
+
"type": "SYMBOL",
|
|
4881
|
+
"name": "arguments_statement"
|
|
4882
|
+
}
|
|
4883
|
+
]
|
|
4884
|
+
}
|
|
4885
|
+
},
|
|
4886
|
+
{
|
|
4887
|
+
"type": "REPEAT",
|
|
4888
|
+
"content": {
|
|
4889
|
+
"type": "CHOICE",
|
|
4890
|
+
"members": [
|
|
4891
|
+
{
|
|
4892
|
+
"type": "SYMBOL",
|
|
4893
|
+
"name": "comment"
|
|
4894
|
+
},
|
|
4895
|
+
{
|
|
4896
|
+
"type": "SYMBOL",
|
|
4897
|
+
"name": "_end_of_line"
|
|
4898
|
+
}
|
|
4899
|
+
]
|
|
4900
|
+
}
|
|
4901
|
+
},
|
|
4902
|
+
{
|
|
4903
|
+
"type": "CHOICE",
|
|
4904
|
+
"members": [
|
|
4905
|
+
{
|
|
4906
|
+
"type": "SYMBOL",
|
|
4907
|
+
"name": "block"
|
|
4908
|
+
},
|
|
4909
|
+
{
|
|
4910
|
+
"type": "BLANK"
|
|
4911
|
+
}
|
|
4912
|
+
]
|
|
4913
|
+
}
|
|
4914
|
+
]
|
|
4915
|
+
},
|
|
4916
|
+
{
|
|
4917
|
+
"type": "BLANK"
|
|
4918
|
+
}
|
|
4919
|
+
]
|
|
4920
|
+
},
|
|
4921
|
+
{
|
|
4922
|
+
"type": "CHOICE",
|
|
4923
|
+
"members": [
|
|
4924
|
+
{
|
|
4925
|
+
"type": "STRING",
|
|
4926
|
+
"value": "end"
|
|
4927
|
+
},
|
|
4928
|
+
{
|
|
4929
|
+
"type": "STRING",
|
|
4930
|
+
"value": "endfunction"
|
|
4931
|
+
}
|
|
4932
|
+
]
|
|
4933
|
+
},
|
|
4770
4934
|
{
|
|
4771
4935
|
"type": "CHOICE",
|
|
4772
4936
|
"members": [
|
|
@@ -4782,31 +4946,58 @@
|
|
|
4782
4946
|
]
|
|
4783
4947
|
}
|
|
4784
4948
|
},
|
|
4785
|
-
"
|
|
4949
|
+
"_negated_attribute": {
|
|
4786
4950
|
"type": "SEQ",
|
|
4787
4951
|
"members": [
|
|
4952
|
+
{
|
|
4953
|
+
"type": "STRING",
|
|
4954
|
+
"value": "~"
|
|
4955
|
+
},
|
|
4788
4956
|
{
|
|
4789
4957
|
"type": "SYMBOL",
|
|
4790
4958
|
"name": "identifier"
|
|
4959
|
+
}
|
|
4960
|
+
]
|
|
4961
|
+
},
|
|
4962
|
+
"attribute": {
|
|
4963
|
+
"type": "CHOICE",
|
|
4964
|
+
"members": [
|
|
4965
|
+
{
|
|
4966
|
+
"type": "ALIAS",
|
|
4967
|
+
"content": {
|
|
4968
|
+
"type": "SYMBOL",
|
|
4969
|
+
"name": "_negated_attribute"
|
|
4970
|
+
},
|
|
4971
|
+
"named": true,
|
|
4972
|
+
"value": "not_operator"
|
|
4791
4973
|
},
|
|
4792
4974
|
{
|
|
4793
|
-
"type": "
|
|
4975
|
+
"type": "SEQ",
|
|
4794
4976
|
"members": [
|
|
4795
4977
|
{
|
|
4796
|
-
"type": "
|
|
4978
|
+
"type": "SYMBOL",
|
|
4979
|
+
"name": "identifier"
|
|
4980
|
+
},
|
|
4981
|
+
{
|
|
4982
|
+
"type": "CHOICE",
|
|
4797
4983
|
"members": [
|
|
4798
4984
|
{
|
|
4799
|
-
"type": "
|
|
4800
|
-
"
|
|
4985
|
+
"type": "SEQ",
|
|
4986
|
+
"members": [
|
|
4987
|
+
{
|
|
4988
|
+
"type": "STRING",
|
|
4989
|
+
"value": "="
|
|
4990
|
+
},
|
|
4991
|
+
{
|
|
4992
|
+
"type": "SYMBOL",
|
|
4993
|
+
"name": "_expression"
|
|
4994
|
+
}
|
|
4995
|
+
]
|
|
4801
4996
|
},
|
|
4802
4997
|
{
|
|
4803
|
-
"type": "
|
|
4804
|
-
"name": "_expression"
|
|
4998
|
+
"type": "BLANK"
|
|
4805
4999
|
}
|
|
4806
5000
|
]
|
|
4807
|
-
},
|
|
4808
|
-
{
|
|
4809
|
-
"type": "BLANK"
|
|
4810
5001
|
}
|
|
4811
5002
|
]
|
|
4812
5003
|
}
|
|
@@ -5012,101 +5203,67 @@
|
|
|
5012
5203
|
},
|
|
5013
5204
|
"property_name": {
|
|
5014
5205
|
"type": "PREC_RIGHT",
|
|
5015
|
-
"value":
|
|
5206
|
+
"value": -1,
|
|
5016
5207
|
"content": {
|
|
5017
|
-
"type": "
|
|
5018
|
-
"
|
|
5019
|
-
|
|
5020
|
-
|
|
5021
|
-
|
|
5022
|
-
|
|
5023
|
-
|
|
5024
|
-
|
|
5025
|
-
|
|
5026
|
-
|
|
5027
|
-
"type": "REPEAT",
|
|
5028
|
-
"content": {
|
|
5029
|
-
"type": "SEQ",
|
|
5030
|
-
"members": [
|
|
5031
|
-
{
|
|
5032
|
-
"type": "STRING",
|
|
5033
|
-
"value": "."
|
|
5034
|
-
},
|
|
5035
|
-
{
|
|
5036
|
-
"type": "SYMBOL",
|
|
5037
|
-
"name": "identifier"
|
|
5038
|
-
}
|
|
5039
|
-
]
|
|
5040
|
-
}
|
|
5041
|
-
},
|
|
5042
|
-
{
|
|
5043
|
-
"type": "CHOICE",
|
|
5208
|
+
"type": "SEQ",
|
|
5209
|
+
"members": [
|
|
5210
|
+
{
|
|
5211
|
+
"type": "SYMBOL",
|
|
5212
|
+
"name": "identifier"
|
|
5213
|
+
},
|
|
5214
|
+
{
|
|
5215
|
+
"type": "REPEAT",
|
|
5216
|
+
"content": {
|
|
5217
|
+
"type": "SEQ",
|
|
5044
5218
|
"members": [
|
|
5045
5219
|
{
|
|
5046
|
-
"type": "
|
|
5047
|
-
"
|
|
5048
|
-
{
|
|
5049
|
-
"type": "STRING",
|
|
5050
|
-
"value": "."
|
|
5051
|
-
},
|
|
5052
|
-
{
|
|
5053
|
-
"type": "STRING",
|
|
5054
|
-
"value": "*"
|
|
5055
|
-
}
|
|
5056
|
-
]
|
|
5220
|
+
"type": "STRING",
|
|
5221
|
+
"value": "."
|
|
5057
5222
|
},
|
|
5058
5223
|
{
|
|
5059
|
-
"type": "
|
|
5224
|
+
"type": "SYMBOL",
|
|
5225
|
+
"name": "identifier"
|
|
5060
5226
|
}
|
|
5061
5227
|
]
|
|
5062
5228
|
}
|
|
5063
|
-
|
|
5064
|
-
|
|
5065
|
-
|
|
5066
|
-
|
|
5067
|
-
|
|
5068
|
-
|
|
5069
|
-
"members": [
|
|
5070
|
-
{
|
|
5071
|
-
"type": "SEQ",
|
|
5072
|
-
"members": [
|
|
5073
|
-
{
|
|
5074
|
-
"type": "FIELD",
|
|
5075
|
-
"name": "name",
|
|
5076
|
-
"content": {
|
|
5077
|
-
"type": "CHOICE",
|
|
5229
|
+
},
|
|
5230
|
+
{
|
|
5231
|
+
"type": "CHOICE",
|
|
5232
|
+
"members": [
|
|
5233
|
+
{
|
|
5234
|
+
"type": "SEQ",
|
|
5078
5235
|
"members": [
|
|
5079
5236
|
{
|
|
5080
|
-
"type": "
|
|
5081
|
-
"
|
|
5082
|
-
},
|
|
5083
|
-
{
|
|
5084
|
-
"type": "SYMBOL",
|
|
5085
|
-
"name": "property_name"
|
|
5237
|
+
"type": "STRING",
|
|
5238
|
+
"value": "."
|
|
5086
5239
|
},
|
|
5087
5240
|
{
|
|
5088
|
-
"type": "
|
|
5089
|
-
"
|
|
5241
|
+
"type": "STRING",
|
|
5242
|
+
"value": "*"
|
|
5090
5243
|
}
|
|
5091
5244
|
]
|
|
5245
|
+
},
|
|
5246
|
+
{
|
|
5247
|
+
"type": "BLANK"
|
|
5092
5248
|
}
|
|
5093
|
-
|
|
5094
|
-
|
|
5095
|
-
|
|
5096
|
-
|
|
5097
|
-
|
|
5098
|
-
|
|
5099
|
-
|
|
5100
|
-
|
|
5101
|
-
|
|
5102
|
-
|
|
5103
|
-
|
|
5104
|
-
|
|
5105
|
-
|
|
5106
|
-
|
|
5107
|
-
|
|
5108
|
-
|
|
5109
|
-
|
|
5249
|
+
]
|
|
5250
|
+
}
|
|
5251
|
+
]
|
|
5252
|
+
}
|
|
5253
|
+
},
|
|
5254
|
+
"property": {
|
|
5255
|
+
"type": "PREC_RIGHT",
|
|
5256
|
+
"value": 0,
|
|
5257
|
+
"content": {
|
|
5258
|
+
"type": "CHOICE",
|
|
5259
|
+
"members": [
|
|
5260
|
+
{
|
|
5261
|
+
"type": "SEQ",
|
|
5262
|
+
"members": [
|
|
5263
|
+
{
|
|
5264
|
+
"type": "FIELD",
|
|
5265
|
+
"name": "name",
|
|
5266
|
+
"content": {
|
|
5110
5267
|
"type": "CHOICE",
|
|
5111
5268
|
"members": [
|
|
5112
5269
|
{
|
|
@@ -5116,98 +5273,39 @@
|
|
|
5116
5273
|
{
|
|
5117
5274
|
"type": "SYMBOL",
|
|
5118
5275
|
"name": "property_name"
|
|
5276
|
+
},
|
|
5277
|
+
{
|
|
5278
|
+
"type": "SYMBOL",
|
|
5279
|
+
"name": "ignored_argument"
|
|
5119
5280
|
}
|
|
5120
5281
|
]
|
|
5121
|
-
},
|
|
5122
|
-
{
|
|
5123
|
-
"type": "BLANK"
|
|
5124
|
-
}
|
|
5125
|
-
]
|
|
5126
|
-
},
|
|
5127
|
-
{
|
|
5128
|
-
"type": "CHOICE",
|
|
5129
|
-
"members": [
|
|
5130
|
-
{
|
|
5131
|
-
"type": "SYMBOL",
|
|
5132
|
-
"name": "validation_functions"
|
|
5133
|
-
},
|
|
5134
|
-
{
|
|
5135
|
-
"type": "BLANK"
|
|
5136
5282
|
}
|
|
5137
|
-
|
|
5138
|
-
|
|
5139
|
-
{
|
|
5140
|
-
"type": "CHOICE",
|
|
5141
|
-
"members": [
|
|
5142
|
-
{
|
|
5143
|
-
"type": "SYMBOL",
|
|
5144
|
-
"name": "default_value"
|
|
5145
|
-
},
|
|
5146
|
-
{
|
|
5147
|
-
"type": "BLANK"
|
|
5148
|
-
}
|
|
5149
|
-
]
|
|
5150
|
-
},
|
|
5151
|
-
{
|
|
5152
|
-
"type": "REPEAT1",
|
|
5153
|
-
"content": {
|
|
5154
|
-
"type": "SYMBOL",
|
|
5155
|
-
"name": "_end_of_line"
|
|
5156
|
-
}
|
|
5157
|
-
}
|
|
5158
|
-
]
|
|
5159
|
-
},
|
|
5160
|
-
{
|
|
5161
|
-
"type": "SEQ",
|
|
5162
|
-
"members": [
|
|
5163
|
-
{
|
|
5164
|
-
"type": "FIELD",
|
|
5165
|
-
"name": "name",
|
|
5166
|
-
"content": {
|
|
5283
|
+
},
|
|
5284
|
+
{
|
|
5167
5285
|
"type": "CHOICE",
|
|
5168
5286
|
"members": [
|
|
5169
5287
|
{
|
|
5170
5288
|
"type": "SYMBOL",
|
|
5171
|
-
"name": "
|
|
5289
|
+
"name": "dimensions"
|
|
5172
5290
|
},
|
|
5173
5291
|
{
|
|
5174
|
-
"type": "
|
|
5175
|
-
"name": "property_name"
|
|
5176
|
-
},
|
|
5177
|
-
{
|
|
5178
|
-
"type": "SYMBOL",
|
|
5179
|
-
"name": "ignored_argument"
|
|
5292
|
+
"type": "BLANK"
|
|
5180
5293
|
}
|
|
5181
5294
|
]
|
|
5182
|
-
}
|
|
5183
|
-
|
|
5184
|
-
{
|
|
5185
|
-
"type": "STRING",
|
|
5186
|
-
"value": "@"
|
|
5187
|
-
},
|
|
5188
|
-
{
|
|
5189
|
-
"type": "SYMBOL",
|
|
5190
|
-
"name": "identifier"
|
|
5191
|
-
},
|
|
5192
|
-
{
|
|
5193
|
-
"type": "ALIAS",
|
|
5194
|
-
"content": {
|
|
5295
|
+
},
|
|
5296
|
+
{
|
|
5195
5297
|
"type": "CHOICE",
|
|
5196
5298
|
"members": [
|
|
5197
5299
|
{
|
|
5198
5300
|
"type": "CHOICE",
|
|
5199
5301
|
"members": [
|
|
5200
5302
|
{
|
|
5201
|
-
"type": "
|
|
5202
|
-
"
|
|
5203
|
-
},
|
|
5204
|
-
{
|
|
5205
|
-
"type": "STRING",
|
|
5206
|
-
"value": "matrix"
|
|
5303
|
+
"type": "SYMBOL",
|
|
5304
|
+
"name": "identifier"
|
|
5207
5305
|
},
|
|
5208
5306
|
{
|
|
5209
|
-
"type": "
|
|
5210
|
-
"
|
|
5307
|
+
"type": "SYMBOL",
|
|
5308
|
+
"name": "property_name"
|
|
5211
5309
|
}
|
|
5212
5310
|
]
|
|
5213
5311
|
},
|
|
@@ -5216,31 +5314,110 @@
|
|
|
5216
5314
|
}
|
|
5217
5315
|
]
|
|
5218
5316
|
},
|
|
5219
|
-
|
|
5220
|
-
|
|
5221
|
-
|
|
5222
|
-
|
|
5223
|
-
|
|
5224
|
-
|
|
5225
|
-
|
|
5226
|
-
|
|
5227
|
-
|
|
5228
|
-
|
|
5229
|
-
|
|
5230
|
-
|
|
5317
|
+
{
|
|
5318
|
+
"type": "CHOICE",
|
|
5319
|
+
"members": [
|
|
5320
|
+
{
|
|
5321
|
+
"type": "SYMBOL",
|
|
5322
|
+
"name": "validation_functions"
|
|
5323
|
+
},
|
|
5324
|
+
{
|
|
5325
|
+
"type": "BLANK"
|
|
5326
|
+
}
|
|
5327
|
+
]
|
|
5328
|
+
},
|
|
5329
|
+
{
|
|
5330
|
+
"type": "CHOICE",
|
|
5331
|
+
"members": [
|
|
5332
|
+
{
|
|
5333
|
+
"type": "SYMBOL",
|
|
5334
|
+
"name": "default_value"
|
|
5335
|
+
},
|
|
5336
|
+
{
|
|
5337
|
+
"type": "BLANK"
|
|
5338
|
+
}
|
|
5339
|
+
]
|
|
5340
|
+
}
|
|
5341
|
+
]
|
|
5342
|
+
},
|
|
5343
|
+
{
|
|
5344
|
+
"type": "SEQ",
|
|
5345
|
+
"members": [
|
|
5346
|
+
{
|
|
5347
|
+
"type": "FIELD",
|
|
5348
|
+
"name": "name",
|
|
5349
|
+
"content": {
|
|
5350
|
+
"type": "CHOICE",
|
|
5351
|
+
"members": [
|
|
5352
|
+
{
|
|
5353
|
+
"type": "SYMBOL",
|
|
5354
|
+
"name": "identifier"
|
|
5355
|
+
},
|
|
5356
|
+
{
|
|
5357
|
+
"type": "SYMBOL",
|
|
5358
|
+
"name": "property_name"
|
|
5359
|
+
},
|
|
5360
|
+
{
|
|
5361
|
+
"type": "SYMBOL",
|
|
5362
|
+
"name": "ignored_argument"
|
|
5363
|
+
}
|
|
5364
|
+
]
|
|
5231
5365
|
}
|
|
5232
|
-
|
|
5233
|
-
|
|
5234
|
-
|
|
5235
|
-
|
|
5236
|
-
|
|
5366
|
+
},
|
|
5367
|
+
{
|
|
5368
|
+
"type": "STRING",
|
|
5369
|
+
"value": "@"
|
|
5370
|
+
},
|
|
5371
|
+
{
|
|
5237
5372
|
"type": "SYMBOL",
|
|
5238
|
-
"name": "
|
|
5373
|
+
"name": "identifier"
|
|
5374
|
+
},
|
|
5375
|
+
{
|
|
5376
|
+
"type": "ALIAS",
|
|
5377
|
+
"content": {
|
|
5378
|
+
"type": "CHOICE",
|
|
5379
|
+
"members": [
|
|
5380
|
+
{
|
|
5381
|
+
"type": "CHOICE",
|
|
5382
|
+
"members": [
|
|
5383
|
+
{
|
|
5384
|
+
"type": "STRING",
|
|
5385
|
+
"value": "vector"
|
|
5386
|
+
},
|
|
5387
|
+
{
|
|
5388
|
+
"type": "STRING",
|
|
5389
|
+
"value": "matrix"
|
|
5390
|
+
},
|
|
5391
|
+
{
|
|
5392
|
+
"type": "STRING",
|
|
5393
|
+
"value": "scalar"
|
|
5394
|
+
}
|
|
5395
|
+
]
|
|
5396
|
+
},
|
|
5397
|
+
{
|
|
5398
|
+
"type": "BLANK"
|
|
5399
|
+
}
|
|
5400
|
+
]
|
|
5401
|
+
},
|
|
5402
|
+
"named": true,
|
|
5403
|
+
"value": "identifier"
|
|
5404
|
+
},
|
|
5405
|
+
{
|
|
5406
|
+
"type": "CHOICE",
|
|
5407
|
+
"members": [
|
|
5408
|
+
{
|
|
5409
|
+
"type": "SYMBOL",
|
|
5410
|
+
"name": "default_value"
|
|
5411
|
+
},
|
|
5412
|
+
{
|
|
5413
|
+
"type": "BLANK"
|
|
5414
|
+
}
|
|
5415
|
+
]
|
|
5239
5416
|
}
|
|
5240
|
-
|
|
5241
|
-
|
|
5242
|
-
|
|
5243
|
-
|
|
5417
|
+
]
|
|
5418
|
+
}
|
|
5419
|
+
]
|
|
5420
|
+
}
|
|
5244
5421
|
},
|
|
5245
5422
|
"properties": {
|
|
5246
5423
|
"type": "SEQ",
|
|
@@ -5262,17 +5439,36 @@
|
|
|
5262
5439
|
]
|
|
5263
5440
|
},
|
|
5264
5441
|
{
|
|
5265
|
-
"type": "
|
|
5266
|
-
"
|
|
5267
|
-
"type": "SYMBOL",
|
|
5268
|
-
"name": "_end_of_line"
|
|
5269
|
-
}
|
|
5442
|
+
"type": "SYMBOL",
|
|
5443
|
+
"name": "_end_of_line"
|
|
5270
5444
|
},
|
|
5271
5445
|
{
|
|
5272
5446
|
"type": "REPEAT",
|
|
5273
5447
|
"content": {
|
|
5274
|
-
"type": "
|
|
5275
|
-
"
|
|
5448
|
+
"type": "CHOICE",
|
|
5449
|
+
"members": [
|
|
5450
|
+
{
|
|
5451
|
+
"type": "SEQ",
|
|
5452
|
+
"members": [
|
|
5453
|
+
{
|
|
5454
|
+
"type": "SYMBOL",
|
|
5455
|
+
"name": "property"
|
|
5456
|
+
},
|
|
5457
|
+
{
|
|
5458
|
+
"type": "SYMBOL",
|
|
5459
|
+
"name": "_end_of_line"
|
|
5460
|
+
}
|
|
5461
|
+
]
|
|
5462
|
+
},
|
|
5463
|
+
{
|
|
5464
|
+
"type": "SYMBOL",
|
|
5465
|
+
"name": "_end_of_line"
|
|
5466
|
+
},
|
|
5467
|
+
{
|
|
5468
|
+
"type": "SYMBOL",
|
|
5469
|
+
"name": "comment"
|
|
5470
|
+
}
|
|
5471
|
+
]
|
|
5276
5472
|
}
|
|
5277
5473
|
},
|
|
5278
5474
|
{
|
|
@@ -5381,7 +5577,7 @@
|
|
|
5381
5577
|
]
|
|
5382
5578
|
},
|
|
5383
5579
|
{
|
|
5384
|
-
"type": "
|
|
5580
|
+
"type": "REPEAT",
|
|
5385
5581
|
"content": {
|
|
5386
5582
|
"type": "SYMBOL",
|
|
5387
5583
|
"name": "_end_of_line"
|
|
@@ -5395,6 +5591,10 @@
|
|
|
5395
5591
|
{
|
|
5396
5592
|
"type": "CHOICE",
|
|
5397
5593
|
"members": [
|
|
5594
|
+
{
|
|
5595
|
+
"type": "SYMBOL",
|
|
5596
|
+
"name": "comment"
|
|
5597
|
+
},
|
|
5398
5598
|
{
|
|
5399
5599
|
"type": "ALIAS",
|
|
5400
5600
|
"content": {
|
|
@@ -5501,6 +5701,10 @@
|
|
|
5501
5701
|
{
|
|
5502
5702
|
"type": "SYMBOL",
|
|
5503
5703
|
"name": "_end_of_line"
|
|
5704
|
+
},
|
|
5705
|
+
{
|
|
5706
|
+
"type": "SYMBOL",
|
|
5707
|
+
"name": "comment"
|
|
5504
5708
|
}
|
|
5505
5709
|
]
|
|
5506
5710
|
}
|
|
@@ -5610,6 +5814,10 @@
|
|
|
5610
5814
|
{
|
|
5611
5815
|
"type": "SYMBOL",
|
|
5612
5816
|
"name": "_end_of_line"
|
|
5817
|
+
},
|
|
5818
|
+
{
|
|
5819
|
+
"type": "SYMBOL",
|
|
5820
|
+
"name": "comment"
|
|
5613
5821
|
}
|
|
5614
5822
|
]
|
|
5615
5823
|
}
|
|
@@ -5685,8 +5893,12 @@
|
|
|
5685
5893
|
"name": "enumeration"
|
|
5686
5894
|
},
|
|
5687
5895
|
{
|
|
5688
|
-
"type": "
|
|
5689
|
-
"
|
|
5896
|
+
"type": "SYMBOL",
|
|
5897
|
+
"name": "_end_of_line"
|
|
5898
|
+
},
|
|
5899
|
+
{
|
|
5900
|
+
"type": "SYMBOL",
|
|
5901
|
+
"name": "comment"
|
|
5690
5902
|
}
|
|
5691
5903
|
]
|
|
5692
5904
|
}
|
|
@@ -5895,11 +6107,11 @@
|
|
|
5895
6107
|
},
|
|
5896
6108
|
{
|
|
5897
6109
|
"type": "PATTERN",
|
|
5898
|
-
"value": "0[xX][\\dA-Fa-f]+([
|
|
6110
|
+
"value": "0[xX][\\dA-Fa-f]+([suSU](8|16|32|64))?"
|
|
5899
6111
|
},
|
|
5900
6112
|
{
|
|
5901
6113
|
"type": "PATTERN",
|
|
5902
|
-
"value": "0[bB][01]+([
|
|
6114
|
+
"value": "0[bB][01]+([suSU](8|16|32|64))?"
|
|
5903
6115
|
}
|
|
5904
6116
|
]
|
|
5905
6117
|
},
|
|
@@ -6101,6 +6313,13 @@
|
|
|
6101
6313
|
[
|
|
6102
6314
|
"block",
|
|
6103
6315
|
"_functionless_block"
|
|
6316
|
+
],
|
|
6317
|
+
[
|
|
6318
|
+
"function_definition",
|
|
6319
|
+
"_function_definition_with_end"
|
|
6320
|
+
],
|
|
6321
|
+
[
|
|
6322
|
+
"_function_definition_with_end"
|
|
6104
6323
|
]
|
|
6105
6324
|
],
|
|
6106
6325
|
"precedences": [],
|