@felixtensor/tree-sitter-mlir 0.1.3 → 0.1.5
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/grammar.js +197 -49
- package/package.json +4 -3
- package/prebuilds/darwin-arm64/@felixtensor+tree-sitter-mlir.node +0 -0
- package/prebuilds/darwin-x64/@felixtensor+tree-sitter-mlir.node +0 -0
- package/prebuilds/linux-arm64/@felixtensor+tree-sitter-mlir.node +0 -0
- package/prebuilds/linux-x64/@felixtensor+tree-sitter-mlir.node +0 -0
- package/prebuilds/win32-arm64/@felixtensor+tree-sitter-mlir.node +0 -0
- package/prebuilds/win32-x64/@felixtensor+tree-sitter-mlir.node +0 -0
- package/src/grammar.json +544 -191
- package/src/node-types.json +8 -56
- package/src/parser.c +47796 -50424
- package/tree-sitter-mlir.wasm +0 -0
- package/tree-sitter.json +1 -1
package/src/grammar.json
CHANGED
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"type": "REPEAT",
|
|
42
42
|
"content": {
|
|
43
43
|
"type": "SYMBOL",
|
|
44
|
-
"name": "
|
|
44
|
+
"name": "_external_resource_content"
|
|
45
45
|
}
|
|
46
46
|
},
|
|
47
47
|
{
|
|
@@ -50,6 +50,34 @@
|
|
|
50
50
|
}
|
|
51
51
|
]
|
|
52
52
|
},
|
|
53
|
+
"_external_resource_content": {
|
|
54
|
+
"type": "CHOICE",
|
|
55
|
+
"members": [
|
|
56
|
+
{
|
|
57
|
+
"type": "SYMBOL",
|
|
58
|
+
"name": "string_literal"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"type": "TOKEN",
|
|
62
|
+
"content": {
|
|
63
|
+
"type": "PREC",
|
|
64
|
+
"value": -1,
|
|
65
|
+
"content": {
|
|
66
|
+
"type": "PATTERN",
|
|
67
|
+
"value": "[^#\"\\/]+"
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"type": "STRING",
|
|
73
|
+
"value": "#"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"type": "STRING",
|
|
77
|
+
"value": "/"
|
|
78
|
+
}
|
|
79
|
+
]
|
|
80
|
+
},
|
|
53
81
|
"_digit": {
|
|
54
82
|
"type": "PATTERN",
|
|
55
83
|
"value": "[0-9]"
|
|
@@ -1525,6 +1553,19 @@
|
|
|
1525
1553
|
]
|
|
1526
1554
|
},
|
|
1527
1555
|
"custom_operation": {
|
|
1556
|
+
"type": "CHOICE",
|
|
1557
|
+
"members": [
|
|
1558
|
+
{
|
|
1559
|
+
"type": "SYMBOL",
|
|
1560
|
+
"name": "_tier1_custom_operation"
|
|
1561
|
+
},
|
|
1562
|
+
{
|
|
1563
|
+
"type": "SYMBOL",
|
|
1564
|
+
"name": "_tier2_custom_operation"
|
|
1565
|
+
}
|
|
1566
|
+
]
|
|
1567
|
+
},
|
|
1568
|
+
"_tier1_custom_operation": {
|
|
1528
1569
|
"type": "CHOICE",
|
|
1529
1570
|
"members": [
|
|
1530
1571
|
{
|
|
@@ -1550,6 +1591,15 @@
|
|
|
1550
1591
|
"type": "SYMBOL",
|
|
1551
1592
|
"name": "_affine_for_operation"
|
|
1552
1593
|
}
|
|
1594
|
+
}
|
|
1595
|
+
]
|
|
1596
|
+
},
|
|
1597
|
+
"_tier2_custom_operation": {
|
|
1598
|
+
"type": "CHOICE",
|
|
1599
|
+
"members": [
|
|
1600
|
+
{
|
|
1601
|
+
"type": "SYMBOL",
|
|
1602
|
+
"name": "_pdl_interp_record_match_operation"
|
|
1553
1603
|
},
|
|
1554
1604
|
{
|
|
1555
1605
|
"type": "SYMBOL",
|
|
@@ -1882,6 +1932,57 @@
|
|
|
1882
1932
|
]
|
|
1883
1933
|
}
|
|
1884
1934
|
},
|
|
1935
|
+
"_pdl_interp_record_match_operation": {
|
|
1936
|
+
"type": "PREC_DYNAMIC",
|
|
1937
|
+
"value": -1,
|
|
1938
|
+
"content": {
|
|
1939
|
+
"type": "PREC_RIGHT",
|
|
1940
|
+
"value": 0,
|
|
1941
|
+
"content": {
|
|
1942
|
+
"type": "SEQ",
|
|
1943
|
+
"members": [
|
|
1944
|
+
{
|
|
1945
|
+
"type": "FIELD",
|
|
1946
|
+
"name": "name",
|
|
1947
|
+
"content": {
|
|
1948
|
+
"type": "ALIAS",
|
|
1949
|
+
"content": {
|
|
1950
|
+
"type": "TOKEN",
|
|
1951
|
+
"content": {
|
|
1952
|
+
"type": "PREC",
|
|
1953
|
+
"value": 20,
|
|
1954
|
+
"content": {
|
|
1955
|
+
"type": "STRING",
|
|
1956
|
+
"value": "pdl_interp.record_match"
|
|
1957
|
+
}
|
|
1958
|
+
}
|
|
1959
|
+
},
|
|
1960
|
+
"named": true,
|
|
1961
|
+
"value": "custom_op_name"
|
|
1962
|
+
}
|
|
1963
|
+
},
|
|
1964
|
+
{
|
|
1965
|
+
"type": "REPEAT",
|
|
1966
|
+
"content": {
|
|
1967
|
+
"type": "SYMBOL",
|
|
1968
|
+
"name": "_custom_body_element"
|
|
1969
|
+
}
|
|
1970
|
+
},
|
|
1971
|
+
{
|
|
1972
|
+
"type": "SYMBOL",
|
|
1973
|
+
"name": "_custom_body_location_list"
|
|
1974
|
+
},
|
|
1975
|
+
{
|
|
1976
|
+
"type": "REPEAT",
|
|
1977
|
+
"content": {
|
|
1978
|
+
"type": "SYMBOL",
|
|
1979
|
+
"name": "_custom_body_element"
|
|
1980
|
+
}
|
|
1981
|
+
}
|
|
1982
|
+
]
|
|
1983
|
+
}
|
|
1984
|
+
}
|
|
1985
|
+
},
|
|
1885
1986
|
"_generic_custom_operation": {
|
|
1886
1987
|
"type": "PREC_DYNAMIC",
|
|
1887
1988
|
"value": -1,
|
|
@@ -2060,32 +2161,75 @@
|
|
|
2060
2161
|
"members": [
|
|
2061
2162
|
{
|
|
2062
2163
|
"type": "SYMBOL",
|
|
2063
|
-
"name": "
|
|
2164
|
+
"name": "_custom_body_reference_element"
|
|
2064
2165
|
},
|
|
2065
2166
|
{
|
|
2066
2167
|
"type": "SYMBOL",
|
|
2067
|
-
"name": "
|
|
2168
|
+
"name": "_custom_body_type_element"
|
|
2068
2169
|
},
|
|
2069
2170
|
{
|
|
2070
2171
|
"type": "SYMBOL",
|
|
2071
|
-
"name": "
|
|
2172
|
+
"name": "_custom_body_attribute_or_braced_element"
|
|
2072
2173
|
},
|
|
2073
2174
|
{
|
|
2074
2175
|
"type": "SYMBOL",
|
|
2075
|
-
"name": "
|
|
2176
|
+
"name": "_custom_body_dialect_marker"
|
|
2076
2177
|
},
|
|
2077
2178
|
{
|
|
2078
|
-
"type": "
|
|
2079
|
-
"
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2179
|
+
"type": "SYMBOL",
|
|
2180
|
+
"name": "_custom_body_group"
|
|
2181
|
+
},
|
|
2182
|
+
{
|
|
2183
|
+
"type": "SYMBOL",
|
|
2184
|
+
"name": "_custom_body_atom"
|
|
2185
|
+
},
|
|
2186
|
+
{
|
|
2187
|
+
"type": "SYMBOL",
|
|
2188
|
+
"name": "_custom_body_punctuation"
|
|
2189
|
+
}
|
|
2190
|
+
]
|
|
2191
|
+
},
|
|
2192
|
+
"_custom_body_reference_element": {
|
|
2193
|
+
"type": "CHOICE",
|
|
2194
|
+
"members": [
|
|
2195
|
+
{
|
|
2196
|
+
"type": "SYMBOL",
|
|
2197
|
+
"name": "value_use"
|
|
2084
2198
|
},
|
|
2199
|
+
{
|
|
2200
|
+
"type": "SYMBOL",
|
|
2201
|
+
"name": "symbol_ref_id"
|
|
2202
|
+
},
|
|
2203
|
+
{
|
|
2204
|
+
"type": "SYMBOL",
|
|
2205
|
+
"name": "successor"
|
|
2206
|
+
}
|
|
2207
|
+
]
|
|
2208
|
+
},
|
|
2209
|
+
"_custom_body_type_element": {
|
|
2210
|
+
"type": "PREC",
|
|
2211
|
+
"value": 2,
|
|
2212
|
+
"content": {
|
|
2213
|
+
"type": "SYMBOL",
|
|
2214
|
+
"name": "type"
|
|
2215
|
+
}
|
|
2216
|
+
},
|
|
2217
|
+
"_custom_body_attribute_or_braced_element": {
|
|
2218
|
+
"type": "CHOICE",
|
|
2219
|
+
"members": [
|
|
2085
2220
|
{
|
|
2086
2221
|
"type": "SYMBOL",
|
|
2087
2222
|
"name": "attribute"
|
|
2088
2223
|
},
|
|
2224
|
+
{
|
|
2225
|
+
"type": "SYMBOL",
|
|
2226
|
+
"name": "_custom_body_brace_payload"
|
|
2227
|
+
}
|
|
2228
|
+
]
|
|
2229
|
+
},
|
|
2230
|
+
"_custom_body_brace_payload": {
|
|
2231
|
+
"type": "CHOICE",
|
|
2232
|
+
"members": [
|
|
2089
2233
|
{
|
|
2090
2234
|
"type": "SYMBOL",
|
|
2091
2235
|
"name": "_custom_body_tuple_group"
|
|
@@ -2101,11 +2245,33 @@
|
|
|
2101
2245
|
{
|
|
2102
2246
|
"type": "SYMBOL",
|
|
2103
2247
|
"name": "_custom_body_ssa_dict"
|
|
2248
|
+
}
|
|
2249
|
+
]
|
|
2250
|
+
},
|
|
2251
|
+
"_custom_body_dialect_marker": {
|
|
2252
|
+
"type": "CHOICE",
|
|
2253
|
+
"members": [
|
|
2254
|
+
{
|
|
2255
|
+
"type": "SYMBOL",
|
|
2256
|
+
"name": "_custom_body_arrow"
|
|
2104
2257
|
},
|
|
2105
2258
|
{
|
|
2106
2259
|
"type": "SYMBOL",
|
|
2107
|
-
"name": "
|
|
2260
|
+
"name": "_custom_body_complex_label"
|
|
2108
2261
|
},
|
|
2262
|
+
{
|
|
2263
|
+
"type": "SYMBOL",
|
|
2264
|
+
"name": "_custom_body_module_symbol_arg"
|
|
2265
|
+
},
|
|
2266
|
+
{
|
|
2267
|
+
"type": "SYMBOL",
|
|
2268
|
+
"name": "_custom_body_sparse_operand"
|
|
2269
|
+
}
|
|
2270
|
+
]
|
|
2271
|
+
},
|
|
2272
|
+
"_custom_body_group": {
|
|
2273
|
+
"type": "CHOICE",
|
|
2274
|
+
"members": [
|
|
2109
2275
|
{
|
|
2110
2276
|
"type": "SYMBOL",
|
|
2111
2277
|
"name": "_custom_body_paren"
|
|
@@ -2117,23 +2283,71 @@
|
|
|
2117
2283
|
{
|
|
2118
2284
|
"type": "SYMBOL",
|
|
2119
2285
|
"name": "_custom_body_angle_group"
|
|
2286
|
+
}
|
|
2287
|
+
]
|
|
2288
|
+
},
|
|
2289
|
+
"_custom_body_atom": {
|
|
2290
|
+
"type": "CHOICE",
|
|
2291
|
+
"members": [
|
|
2292
|
+
{
|
|
2293
|
+
"type": "SYMBOL",
|
|
2294
|
+
"name": "_custom_body_literal_element"
|
|
2120
2295
|
},
|
|
2121
2296
|
{
|
|
2122
2297
|
"type": "SYMBOL",
|
|
2123
|
-
"name": "
|
|
2298
|
+
"name": "_custom_body_reserved_keyword"
|
|
2124
2299
|
},
|
|
2125
2300
|
{
|
|
2126
|
-
"type": "
|
|
2127
|
-
"
|
|
2301
|
+
"type": "SYMBOL",
|
|
2302
|
+
"name": "bare_id"
|
|
2303
|
+
}
|
|
2304
|
+
]
|
|
2305
|
+
},
|
|
2306
|
+
"_custom_body_literal_element": {
|
|
2307
|
+
"type": "CHOICE",
|
|
2308
|
+
"members": [
|
|
2309
|
+
{
|
|
2310
|
+
"type": "SYMBOL",
|
|
2311
|
+
"name": "variadic"
|
|
2312
|
+
},
|
|
2313
|
+
{
|
|
2314
|
+
"type": "SYMBOL",
|
|
2315
|
+
"name": "_literal"
|
|
2316
|
+
}
|
|
2317
|
+
]
|
|
2318
|
+
},
|
|
2319
|
+
"_custom_body_reserved_keyword": {
|
|
2320
|
+
"type": "CHOICE",
|
|
2321
|
+
"members": [
|
|
2322
|
+
{
|
|
2323
|
+
"type": "SYMBOL",
|
|
2324
|
+
"name": "_custom_body_array_keyword"
|
|
2128
2325
|
},
|
|
2129
2326
|
{
|
|
2130
2327
|
"type": "STRING",
|
|
2131
2328
|
"value": "vector"
|
|
2132
2329
|
},
|
|
2133
2330
|
{
|
|
2134
|
-
"type": "
|
|
2135
|
-
"
|
|
2331
|
+
"type": "SYMBOL",
|
|
2332
|
+
"name": "_custom_body_tensor_keyword"
|
|
2136
2333
|
},
|
|
2334
|
+
{
|
|
2335
|
+
"type": "SYMBOL",
|
|
2336
|
+
"name": "_custom_body_affine_keyword"
|
|
2337
|
+
}
|
|
2338
|
+
]
|
|
2339
|
+
},
|
|
2340
|
+
"_custom_body_array_keyword": {
|
|
2341
|
+
"type": "STRING",
|
|
2342
|
+
"value": "array"
|
|
2343
|
+
},
|
|
2344
|
+
"_custom_body_tensor_keyword": {
|
|
2345
|
+
"type": "STRING",
|
|
2346
|
+
"value": "tensor"
|
|
2347
|
+
},
|
|
2348
|
+
"_custom_body_affine_keyword": {
|
|
2349
|
+
"type": "CHOICE",
|
|
2350
|
+
"members": [
|
|
2137
2351
|
{
|
|
2138
2352
|
"type": "STRING",
|
|
2139
2353
|
"value": "ceildiv"
|
|
@@ -2145,15 +2359,25 @@
|
|
|
2145
2359
|
{
|
|
2146
2360
|
"type": "STRING",
|
|
2147
2361
|
"value": "mod"
|
|
2148
|
-
}
|
|
2362
|
+
}
|
|
2363
|
+
]
|
|
2364
|
+
},
|
|
2365
|
+
"_custom_body_punctuation": {
|
|
2366
|
+
"type": "CHOICE",
|
|
2367
|
+
"members": [
|
|
2149
2368
|
{
|
|
2150
2369
|
"type": "SYMBOL",
|
|
2151
|
-
"name": "
|
|
2370
|
+
"name": "_custom_body_separator_punctuation"
|
|
2152
2371
|
},
|
|
2153
2372
|
{
|
|
2154
2373
|
"type": "SYMBOL",
|
|
2155
|
-
"name": "
|
|
2156
|
-
}
|
|
2374
|
+
"name": "_custom_body_operator_punctuation"
|
|
2375
|
+
}
|
|
2376
|
+
]
|
|
2377
|
+
},
|
|
2378
|
+
"_custom_body_separator_punctuation": {
|
|
2379
|
+
"type": "CHOICE",
|
|
2380
|
+
"members": [
|
|
2157
2381
|
{
|
|
2158
2382
|
"type": "STRING",
|
|
2159
2383
|
"value": ","
|
|
@@ -2169,7 +2393,12 @@
|
|
|
2169
2393
|
{
|
|
2170
2394
|
"type": "STRING",
|
|
2171
2395
|
"value": "->"
|
|
2172
|
-
}
|
|
2396
|
+
}
|
|
2397
|
+
]
|
|
2398
|
+
},
|
|
2399
|
+
"_custom_body_operator_punctuation": {
|
|
2400
|
+
"type": "CHOICE",
|
|
2401
|
+
"members": [
|
|
2173
2402
|
{
|
|
2174
2403
|
"type": "STRING",
|
|
2175
2404
|
"value": "*"
|
|
@@ -2187,8 +2416,8 @@
|
|
|
2187
2416
|
"value": "+"
|
|
2188
2417
|
},
|
|
2189
2418
|
{
|
|
2190
|
-
"type": "
|
|
2191
|
-
"
|
|
2419
|
+
"type": "SYMBOL",
|
|
2420
|
+
"name": "_custom_body_minus_punctuation"
|
|
2192
2421
|
},
|
|
2193
2422
|
{
|
|
2194
2423
|
"type": "STRING",
|
|
@@ -2208,6 +2437,10 @@
|
|
|
2208
2437
|
}
|
|
2209
2438
|
]
|
|
2210
2439
|
},
|
|
2440
|
+
"_custom_body_minus_punctuation": {
|
|
2441
|
+
"type": "STRING",
|
|
2442
|
+
"value": "-"
|
|
2443
|
+
},
|
|
2211
2444
|
"_custom_body_paren": {
|
|
2212
2445
|
"type": "SEQ",
|
|
2213
2446
|
"members": [
|
|
@@ -2549,6 +2782,30 @@
|
|
|
2549
2782
|
}
|
|
2550
2783
|
]
|
|
2551
2784
|
},
|
|
2785
|
+
"_custom_body_module_symbol_arg": {
|
|
2786
|
+
"type": "SEQ",
|
|
2787
|
+
"members": [
|
|
2788
|
+
{
|
|
2789
|
+
"type": "TOKEN",
|
|
2790
|
+
"content": {
|
|
2791
|
+
"type": "PREC",
|
|
2792
|
+
"value": 20,
|
|
2793
|
+
"content": {
|
|
2794
|
+
"type": "STRING",
|
|
2795
|
+
"value": "module("
|
|
2796
|
+
}
|
|
2797
|
+
}
|
|
2798
|
+
},
|
|
2799
|
+
{
|
|
2800
|
+
"type": "SYMBOL",
|
|
2801
|
+
"name": "symbol_ref_id"
|
|
2802
|
+
},
|
|
2803
|
+
{
|
|
2804
|
+
"type": "STRING",
|
|
2805
|
+
"value": ")"
|
|
2806
|
+
}
|
|
2807
|
+
]
|
|
2808
|
+
},
|
|
2552
2809
|
"_custom_body_sparse_operand": {
|
|
2553
2810
|
"type": "SEQ",
|
|
2554
2811
|
"members": [
|
|
@@ -2562,39 +2819,83 @@
|
|
|
2562
2819
|
}
|
|
2563
2820
|
]
|
|
2564
2821
|
},
|
|
2565
|
-
"
|
|
2822
|
+
"_custom_body_location_list": {
|
|
2566
2823
|
"type": "SEQ",
|
|
2567
2824
|
"members": [
|
|
2825
|
+
{
|
|
2826
|
+
"type": "TOKEN",
|
|
2827
|
+
"content": {
|
|
2828
|
+
"type": "STRING",
|
|
2829
|
+
"value": "loc"
|
|
2830
|
+
}
|
|
2831
|
+
},
|
|
2568
2832
|
{
|
|
2569
2833
|
"type": "STRING",
|
|
2570
|
-
"value": "
|
|
2834
|
+
"value": "("
|
|
2571
2835
|
},
|
|
2572
2836
|
{
|
|
2573
|
-
"type": "
|
|
2574
|
-
"
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2837
|
+
"type": "STRING",
|
|
2838
|
+
"value": "["
|
|
2839
|
+
},
|
|
2840
|
+
{
|
|
2841
|
+
"type": "CHOICE",
|
|
2842
|
+
"members": [
|
|
2843
|
+
{
|
|
2844
|
+
"type": "SYMBOL",
|
|
2845
|
+
"name": "_value_use_list"
|
|
2846
|
+
},
|
|
2847
|
+
{
|
|
2848
|
+
"type": "BLANK"
|
|
2849
|
+
}
|
|
2850
|
+
]
|
|
2578
2851
|
},
|
|
2579
2852
|
{
|
|
2580
2853
|
"type": "STRING",
|
|
2581
|
-
"value": "
|
|
2854
|
+
"value": "]"
|
|
2855
|
+
},
|
|
2856
|
+
{
|
|
2857
|
+
"type": "STRING",
|
|
2858
|
+
"value": ")"
|
|
2582
2859
|
}
|
|
2583
2860
|
]
|
|
2584
2861
|
},
|
|
2585
|
-
"
|
|
2862
|
+
"_custom_body_angle_group": {
|
|
2586
2863
|
"type": "SEQ",
|
|
2587
2864
|
"members": [
|
|
2588
2865
|
{
|
|
2589
2866
|
"type": "STRING",
|
|
2590
2867
|
"value": "<"
|
|
2591
2868
|
},
|
|
2869
|
+
{
|
|
2870
|
+
"type": "REPEAT",
|
|
2871
|
+
"content": {
|
|
2872
|
+
"type": "SYMBOL",
|
|
2873
|
+
"name": "_nested_custom_body_element"
|
|
2874
|
+
}
|
|
2875
|
+
},
|
|
2592
2876
|
{
|
|
2593
2877
|
"type": "STRING",
|
|
2594
|
-
"value": "
|
|
2878
|
+
"value": ">"
|
|
2595
2879
|
}
|
|
2596
2880
|
]
|
|
2597
2881
|
},
|
|
2882
|
+
"_custom_body_arrow": {
|
|
2883
|
+
"type": "PREC",
|
|
2884
|
+
"value": 1,
|
|
2885
|
+
"content": {
|
|
2886
|
+
"type": "SEQ",
|
|
2887
|
+
"members": [
|
|
2888
|
+
{
|
|
2889
|
+
"type": "STRING",
|
|
2890
|
+
"value": "<"
|
|
2891
|
+
},
|
|
2892
|
+
{
|
|
2893
|
+
"type": "STRING",
|
|
2894
|
+
"value": "-"
|
|
2895
|
+
}
|
|
2896
|
+
]
|
|
2897
|
+
}
|
|
2898
|
+
},
|
|
2598
2899
|
"_nested_custom_body_element": {
|
|
2599
2900
|
"type": "CHOICE",
|
|
2600
2901
|
"members": [
|
|
@@ -2810,36 +3111,40 @@
|
|
|
2810
3111
|
]
|
|
2811
3112
|
},
|
|
2812
3113
|
"region": {
|
|
2813
|
-
"type": "
|
|
2814
|
-
"
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
|
|
2822
|
-
|
|
3114
|
+
"type": "PREC",
|
|
3115
|
+
"value": 1,
|
|
3116
|
+
"content": {
|
|
3117
|
+
"type": "SEQ",
|
|
3118
|
+
"members": [
|
|
3119
|
+
{
|
|
3120
|
+
"type": "STRING",
|
|
3121
|
+
"value": "{"
|
|
3122
|
+
},
|
|
3123
|
+
{
|
|
3124
|
+
"type": "CHOICE",
|
|
3125
|
+
"members": [
|
|
3126
|
+
{
|
|
3127
|
+
"type": "SYMBOL",
|
|
3128
|
+
"name": "entry_block"
|
|
3129
|
+
},
|
|
3130
|
+
{
|
|
3131
|
+
"type": "BLANK"
|
|
3132
|
+
}
|
|
3133
|
+
]
|
|
3134
|
+
},
|
|
3135
|
+
{
|
|
3136
|
+
"type": "REPEAT",
|
|
3137
|
+
"content": {
|
|
2823
3138
|
"type": "SYMBOL",
|
|
2824
|
-
"name": "
|
|
2825
|
-
}
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
},
|
|
2831
|
-
{
|
|
2832
|
-
"type": "REPEAT",
|
|
2833
|
-
"content": {
|
|
2834
|
-
"type": "SYMBOL",
|
|
2835
|
-
"name": "block"
|
|
3139
|
+
"name": "block"
|
|
3140
|
+
}
|
|
3141
|
+
},
|
|
3142
|
+
{
|
|
3143
|
+
"type": "STRING",
|
|
3144
|
+
"value": "}"
|
|
2836
3145
|
}
|
|
2837
|
-
|
|
2838
|
-
|
|
2839
|
-
"type": "STRING",
|
|
2840
|
-
"value": "}"
|
|
2841
|
-
}
|
|
2842
|
-
]
|
|
3146
|
+
]
|
|
3147
|
+
}
|
|
2843
3148
|
},
|
|
2844
3149
|
"entry_block": {
|
|
2845
3150
|
"type": "REPEAT1",
|
|
@@ -3209,119 +3514,19 @@
|
|
|
3209
3514
|
"members": [
|
|
3210
3515
|
{
|
|
3211
3516
|
"type": "SYMBOL",
|
|
3212
|
-
"name": "
|
|
3213
|
-
},
|
|
3214
|
-
{
|
|
3215
|
-
"type": "SYMBOL",
|
|
3216
|
-
"name": "_pretty_dialect_bang_body_token"
|
|
3217
|
-
},
|
|
3218
|
-
{
|
|
3219
|
-
"type": "SYMBOL",
|
|
3220
|
-
"name": "_pretty_dialect_body_attribute"
|
|
3221
|
-
},
|
|
3222
|
-
{
|
|
3223
|
-
"type": "SYMBOL",
|
|
3224
|
-
"name": "dialect_dim_list"
|
|
3225
|
-
},
|
|
3226
|
-
{
|
|
3227
|
-
"type": "SYMBOL",
|
|
3228
|
-
"name": "type"
|
|
3229
|
-
},
|
|
3230
|
-
{
|
|
3231
|
-
"type": "PREC",
|
|
3232
|
-
"value": 2,
|
|
3233
|
-
"content": {
|
|
3234
|
-
"type": "SYMBOL",
|
|
3235
|
-
"name": "attribute"
|
|
3236
|
-
}
|
|
3237
|
-
},
|
|
3238
|
-
{
|
|
3239
|
-
"type": "SYMBOL",
|
|
3240
|
-
"name": "_literal"
|
|
3517
|
+
"name": "_pretty_dialect_structural_content"
|
|
3241
3518
|
},
|
|
3242
3519
|
{
|
|
3243
3520
|
"type": "SYMBOL",
|
|
3244
|
-
"name": "
|
|
3521
|
+
"name": "_pretty_dialect_value_content"
|
|
3245
3522
|
},
|
|
3246
3523
|
{
|
|
3247
3524
|
"type": "SYMBOL",
|
|
3248
|
-
"name": "
|
|
3249
|
-
},
|
|
3250
|
-
{
|
|
3251
|
-
"type": "STRING",
|
|
3252
|
-
"value": "array"
|
|
3253
|
-
},
|
|
3254
|
-
{
|
|
3255
|
-
"type": "STRING",
|
|
3256
|
-
"value": "vector"
|
|
3257
|
-
},
|
|
3258
|
-
{
|
|
3259
|
-
"type": "STRING",
|
|
3260
|
-
"value": "tensor"
|
|
3261
|
-
},
|
|
3262
|
-
{
|
|
3263
|
-
"type": "STRING",
|
|
3264
|
-
"value": "opaque"
|
|
3525
|
+
"name": "_pretty_dialect_keyword_content"
|
|
3265
3526
|
},
|
|
3266
3527
|
{
|
|
3267
3528
|
"type": "SYMBOL",
|
|
3268
|
-
"name": "
|
|
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
|
-
"type": "STRING",
|
|
3288
|
-
"value": "("
|
|
3289
|
-
},
|
|
3290
|
-
{
|
|
3291
|
-
"type": "STRING",
|
|
3292
|
-
"value": ")"
|
|
3293
|
-
},
|
|
3294
|
-
{
|
|
3295
|
-
"type": "STRING",
|
|
3296
|
-
"value": "["
|
|
3297
|
-
},
|
|
3298
|
-
{
|
|
3299
|
-
"type": "STRING",
|
|
3300
|
-
"value": "]"
|
|
3301
|
-
},
|
|
3302
|
-
{
|
|
3303
|
-
"type": "STRING",
|
|
3304
|
-
"value": "{"
|
|
3305
|
-
},
|
|
3306
|
-
{
|
|
3307
|
-
"type": "STRING",
|
|
3308
|
-
"value": "}"
|
|
3309
|
-
},
|
|
3310
|
-
{
|
|
3311
|
-
"type": "STRING",
|
|
3312
|
-
"value": "*"
|
|
3313
|
-
},
|
|
3314
|
-
{
|
|
3315
|
-
"type": "STRING",
|
|
3316
|
-
"value": "?"
|
|
3317
|
-
},
|
|
3318
|
-
{
|
|
3319
|
-
"type": "STRING",
|
|
3320
|
-
"value": "@"
|
|
3321
|
-
},
|
|
3322
|
-
{
|
|
3323
|
-
"type": "STRING",
|
|
3324
|
-
"value": "#"
|
|
3529
|
+
"name": "_pretty_dialect_punctuation_content"
|
|
3325
3530
|
},
|
|
3326
3531
|
{
|
|
3327
3532
|
"type": "TOKEN",
|
|
@@ -3337,6 +3542,142 @@
|
|
|
3337
3542
|
]
|
|
3338
3543
|
}
|
|
3339
3544
|
},
|
|
3545
|
+
"_pretty_dialect_structural_content": {
|
|
3546
|
+
"type": "CHOICE",
|
|
3547
|
+
"members": [
|
|
3548
|
+
{
|
|
3549
|
+
"type": "SYMBOL",
|
|
3550
|
+
"name": "pretty_dialect_item_body"
|
|
3551
|
+
},
|
|
3552
|
+
{
|
|
3553
|
+
"type": "SYMBOL",
|
|
3554
|
+
"name": "_pretty_dialect_bang_body_token"
|
|
3555
|
+
},
|
|
3556
|
+
{
|
|
3557
|
+
"type": "SYMBOL",
|
|
3558
|
+
"name": "_pretty_dialect_body_attribute"
|
|
3559
|
+
}
|
|
3560
|
+
]
|
|
3561
|
+
},
|
|
3562
|
+
"_pretty_dialect_value_content": {
|
|
3563
|
+
"type": "CHOICE",
|
|
3564
|
+
"members": [
|
|
3565
|
+
{
|
|
3566
|
+
"type": "SYMBOL",
|
|
3567
|
+
"name": "dialect_dim_list"
|
|
3568
|
+
},
|
|
3569
|
+
{
|
|
3570
|
+
"type": "SYMBOL",
|
|
3571
|
+
"name": "type"
|
|
3572
|
+
},
|
|
3573
|
+
{
|
|
3574
|
+
"type": "PREC",
|
|
3575
|
+
"value": 2,
|
|
3576
|
+
"content": {
|
|
3577
|
+
"type": "SYMBOL",
|
|
3578
|
+
"name": "attribute"
|
|
3579
|
+
}
|
|
3580
|
+
},
|
|
3581
|
+
{
|
|
3582
|
+
"type": "SYMBOL",
|
|
3583
|
+
"name": "_literal"
|
|
3584
|
+
}
|
|
3585
|
+
]
|
|
3586
|
+
},
|
|
3587
|
+
"_pretty_dialect_keyword_content": {
|
|
3588
|
+
"type": "CHOICE",
|
|
3589
|
+
"members": [
|
|
3590
|
+
{
|
|
3591
|
+
"type": "SYMBOL",
|
|
3592
|
+
"name": "_dense_keyword"
|
|
3593
|
+
},
|
|
3594
|
+
{
|
|
3595
|
+
"type": "SYMBOL",
|
|
3596
|
+
"name": "_sparse_keyword"
|
|
3597
|
+
},
|
|
3598
|
+
{
|
|
3599
|
+
"type": "STRING",
|
|
3600
|
+
"value": "array"
|
|
3601
|
+
},
|
|
3602
|
+
{
|
|
3603
|
+
"type": "STRING",
|
|
3604
|
+
"value": "vector"
|
|
3605
|
+
},
|
|
3606
|
+
{
|
|
3607
|
+
"type": "STRING",
|
|
3608
|
+
"value": "tensor"
|
|
3609
|
+
},
|
|
3610
|
+
{
|
|
3611
|
+
"type": "STRING",
|
|
3612
|
+
"value": "opaque"
|
|
3613
|
+
},
|
|
3614
|
+
{
|
|
3615
|
+
"type": "SYMBOL",
|
|
3616
|
+
"name": "bare_id"
|
|
3617
|
+
}
|
|
3618
|
+
]
|
|
3619
|
+
},
|
|
3620
|
+
"_pretty_dialect_punctuation_content": {
|
|
3621
|
+
"type": "CHOICE",
|
|
3622
|
+
"members": [
|
|
3623
|
+
{
|
|
3624
|
+
"type": "STRING",
|
|
3625
|
+
"value": ","
|
|
3626
|
+
},
|
|
3627
|
+
{
|
|
3628
|
+
"type": "STRING",
|
|
3629
|
+
"value": ":"
|
|
3630
|
+
},
|
|
3631
|
+
{
|
|
3632
|
+
"type": "STRING",
|
|
3633
|
+
"value": "="
|
|
3634
|
+
},
|
|
3635
|
+
{
|
|
3636
|
+
"type": "STRING",
|
|
3637
|
+
"value": "->"
|
|
3638
|
+
},
|
|
3639
|
+
{
|
|
3640
|
+
"type": "STRING",
|
|
3641
|
+
"value": "("
|
|
3642
|
+
},
|
|
3643
|
+
{
|
|
3644
|
+
"type": "STRING",
|
|
3645
|
+
"value": ")"
|
|
3646
|
+
},
|
|
3647
|
+
{
|
|
3648
|
+
"type": "STRING",
|
|
3649
|
+
"value": "["
|
|
3650
|
+
},
|
|
3651
|
+
{
|
|
3652
|
+
"type": "STRING",
|
|
3653
|
+
"value": "]"
|
|
3654
|
+
},
|
|
3655
|
+
{
|
|
3656
|
+
"type": "STRING",
|
|
3657
|
+
"value": "{"
|
|
3658
|
+
},
|
|
3659
|
+
{
|
|
3660
|
+
"type": "STRING",
|
|
3661
|
+
"value": "}"
|
|
3662
|
+
},
|
|
3663
|
+
{
|
|
3664
|
+
"type": "STRING",
|
|
3665
|
+
"value": "*"
|
|
3666
|
+
},
|
|
3667
|
+
{
|
|
3668
|
+
"type": "STRING",
|
|
3669
|
+
"value": "?"
|
|
3670
|
+
},
|
|
3671
|
+
{
|
|
3672
|
+
"type": "STRING",
|
|
3673
|
+
"value": "@"
|
|
3674
|
+
},
|
|
3675
|
+
{
|
|
3676
|
+
"type": "STRING",
|
|
3677
|
+
"value": "#"
|
|
3678
|
+
}
|
|
3679
|
+
]
|
|
3680
|
+
},
|
|
3340
3681
|
"_pretty_dialect_bang_body_token": {
|
|
3341
3682
|
"type": "TOKEN",
|
|
3342
3683
|
"content": {
|
|
@@ -5553,14 +5894,6 @@
|
|
|
5553
5894
|
"_static_dim_list",
|
|
5554
5895
|
"_static_dim_list"
|
|
5555
5896
|
],
|
|
5556
|
-
[
|
|
5557
|
-
"dictionary_attribute",
|
|
5558
|
-
"region"
|
|
5559
|
-
],
|
|
5560
|
-
[
|
|
5561
|
-
"custom_op_name",
|
|
5562
|
-
"attribute_entry"
|
|
5563
|
-
],
|
|
5564
5897
|
[
|
|
5565
5898
|
"type_alias",
|
|
5566
5899
|
"dialect_namespace"
|
|
@@ -5573,41 +5906,61 @@
|
|
|
5573
5906
|
"pretty_dialect_item"
|
|
5574
5907
|
],
|
|
5575
5908
|
[
|
|
5576
|
-
"
|
|
5577
|
-
"
|
|
5909
|
+
"_value_use_list",
|
|
5910
|
+
"_value_use_and_type"
|
|
5578
5911
|
],
|
|
5579
5912
|
[
|
|
5580
|
-
"
|
|
5581
|
-
"
|
|
5913
|
+
"_type_list_no_parens",
|
|
5914
|
+
"_type_or_func_type"
|
|
5582
5915
|
],
|
|
5583
5916
|
[
|
|
5584
|
-
"
|
|
5585
|
-
"
|
|
5917
|
+
"_type_list_parens",
|
|
5918
|
+
"_multi_dim_affine_expr_parens"
|
|
5586
5919
|
],
|
|
5587
5920
|
[
|
|
5588
|
-
"
|
|
5589
|
-
"
|
|
5921
|
+
"custom_op_name",
|
|
5922
|
+
"attribute_entry"
|
|
5590
5923
|
],
|
|
5591
5924
|
[
|
|
5592
|
-
"
|
|
5593
|
-
"
|
|
5925
|
+
"array_literal",
|
|
5926
|
+
"_custom_body_array_keyword"
|
|
5594
5927
|
],
|
|
5595
5928
|
[
|
|
5596
|
-
"
|
|
5597
|
-
"
|
|
5929
|
+
"_custom_body_tensor_keyword",
|
|
5930
|
+
"tensor_type"
|
|
5598
5931
|
],
|
|
5599
5932
|
[
|
|
5600
|
-
"
|
|
5601
|
-
"
|
|
5933
|
+
"_generic_custom_operation_with_location_attr_dict",
|
|
5934
|
+
"custom_op_name"
|
|
5602
5935
|
],
|
|
5603
5936
|
[
|
|
5604
|
-
"
|
|
5605
|
-
"
|
|
5937
|
+
"_custom_body_dict_key",
|
|
5938
|
+
"attribute_entry"
|
|
5606
5939
|
]
|
|
5607
5940
|
],
|
|
5608
5941
|
"precedences": [],
|
|
5609
5942
|
"externals": [],
|
|
5610
|
-
"inline": [
|
|
5943
|
+
"inline": [
|
|
5944
|
+
"_tier1_custom_operation",
|
|
5945
|
+
"_tier2_custom_operation",
|
|
5946
|
+
"_custom_body_reference_element",
|
|
5947
|
+
"_custom_body_type_element",
|
|
5948
|
+
"_custom_body_attribute_or_braced_element",
|
|
5949
|
+
"_custom_body_dialect_marker",
|
|
5950
|
+
"_custom_body_group",
|
|
5951
|
+
"_custom_body_atom",
|
|
5952
|
+
"_custom_body_literal_element",
|
|
5953
|
+
"_custom_body_reserved_keyword",
|
|
5954
|
+
"_custom_body_affine_keyword",
|
|
5955
|
+
"_custom_body_brace_payload",
|
|
5956
|
+
"_custom_body_punctuation",
|
|
5957
|
+
"_custom_body_separator_punctuation",
|
|
5958
|
+
"_custom_body_operator_punctuation",
|
|
5959
|
+
"_pretty_dialect_structural_content",
|
|
5960
|
+
"_pretty_dialect_value_content",
|
|
5961
|
+
"_pretty_dialect_keyword_content",
|
|
5962
|
+
"_pretty_dialect_punctuation_content"
|
|
5963
|
+
],
|
|
5611
5964
|
"supertypes": [],
|
|
5612
5965
|
"reserved": {}
|
|
5613
5966
|
}
|