@felixtensor/tree-sitter-mlir 0.1.1 → 0.1.3

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/src/grammar.json CHANGED
@@ -3,20 +3,11 @@
3
3
  "name": "mlir",
4
4
  "rules": {
5
5
  "toplevel": {
6
- "type": "SEQ",
7
- "members": [
8
- {
9
- "type": "SYMBOL",
10
- "name": "_toplevel"
11
- },
12
- {
13
- "type": "REPEAT",
14
- "content": {
15
- "type": "SYMBOL",
16
- "name": "_toplevel"
17
- }
18
- }
19
- ]
6
+ "type": "REPEAT",
7
+ "content": {
8
+ "type": "SYMBOL",
9
+ "name": "_toplevel"
10
+ }
20
11
  },
21
12
  "_toplevel": {
22
13
  "type": "CHOICE",
@@ -103,6 +94,29 @@
103
94
  ]
104
95
  }
105
96
  },
97
+ "_unsigned_decimal_literal": {
98
+ "type": "TOKEN",
99
+ "content": {
100
+ "type": "REPEAT1",
101
+ "content": {
102
+ "type": "PATTERN",
103
+ "value": "[0-9]"
104
+ }
105
+ }
106
+ },
107
+ "_unsigned_integer_literal": {
108
+ "type": "CHOICE",
109
+ "members": [
110
+ {
111
+ "type": "SYMBOL",
112
+ "name": "_unsigned_decimal_literal"
113
+ },
114
+ {
115
+ "type": "SYMBOL",
116
+ "name": "_hexadecimal_literal"
117
+ }
118
+ ]
119
+ },
106
120
  "_hexadecimal_literal": {
107
121
  "type": "TOKEN",
108
122
  "content": {
@@ -355,20 +369,17 @@
355
369
  "type": "SEQ",
356
370
  "members": [
357
371
  {
358
- "type": "TOKEN",
359
- "content": {
360
- "type": "CHOICE",
361
- "members": [
362
- {
363
- "type": "STRING",
364
- "value": "dense"
365
- },
366
- {
367
- "type": "STRING",
368
- "value": "sparse"
369
- }
370
- ]
371
- }
372
+ "type": "CHOICE",
373
+ "members": [
374
+ {
375
+ "type": "SYMBOL",
376
+ "name": "_dense_keyword"
377
+ },
378
+ {
379
+ "type": "SYMBOL",
380
+ "name": "_sparse_keyword"
381
+ }
382
+ ]
372
383
  },
373
384
  {
374
385
  "type": "STRING",
@@ -1540,6 +1551,10 @@
1540
1551
  "name": "_affine_for_operation"
1541
1552
  }
1542
1553
  },
1554
+ {
1555
+ "type": "SYMBOL",
1556
+ "name": "_generic_custom_operation_with_location_attr_dict"
1557
+ },
1543
1558
  {
1544
1559
  "type": "SYMBOL",
1545
1560
  "name": "_generic_custom_operation"
@@ -1608,6 +1623,22 @@
1608
1623
  ]
1609
1624
  }
1610
1625
  },
1626
+ {
1627
+ "type": "REPEAT",
1628
+ "content": {
1629
+ "type": "FIELD",
1630
+ "name": "specifier",
1631
+ "content": {
1632
+ "type": "ALIAS",
1633
+ "content": {
1634
+ "type": "SYMBOL",
1635
+ "name": "bare_id"
1636
+ },
1637
+ "named": true,
1638
+ "value": "function_specifier"
1639
+ }
1640
+ }
1641
+ },
1611
1642
  {
1612
1643
  "type": "FIELD",
1613
1644
  "name": "sym_name",
@@ -1879,6 +1910,43 @@
1879
1910
  }
1880
1911
  }
1881
1912
  },
1913
+ "_generic_custom_operation_with_location_attr_dict": {
1914
+ "type": "PREC_DYNAMIC",
1915
+ "value": -1,
1916
+ "content": {
1917
+ "type": "PREC_RIGHT",
1918
+ "value": 0,
1919
+ "content": {
1920
+ "type": "SEQ",
1921
+ "members": [
1922
+ {
1923
+ "type": "FIELD",
1924
+ "name": "name",
1925
+ "content": {
1926
+ "type": "ALIAS",
1927
+ "content": {
1928
+ "type": "SYMBOL",
1929
+ "name": "_dotted_op_name"
1930
+ },
1931
+ "named": true,
1932
+ "value": "custom_op_name"
1933
+ }
1934
+ },
1935
+ {
1936
+ "type": "SYMBOL",
1937
+ "name": "_custom_body_location_attr_dict"
1938
+ },
1939
+ {
1940
+ "type": "REPEAT",
1941
+ "content": {
1942
+ "type": "SYMBOL",
1943
+ "name": "_custom_body_element"
1944
+ }
1945
+ }
1946
+ ]
1947
+ }
1948
+ }
1949
+ },
1882
1950
  "custom_op_name": {
1883
1951
  "type": "CHOICE",
1884
1952
  "members": [
@@ -1975,6 +2043,19 @@
1975
2043
  }
1976
2044
  },
1977
2045
  "_custom_body_element": {
2046
+ "type": "CHOICE",
2047
+ "members": [
2048
+ {
2049
+ "type": "SYMBOL",
2050
+ "name": "_custom_body_element_base"
2051
+ },
2052
+ {
2053
+ "type": "SYMBOL",
2054
+ "name": "_custom_body_successor_marker"
2055
+ }
2056
+ ]
2057
+ },
2058
+ "_custom_body_element_base": {
1978
2059
  "type": "CHOICE",
1979
2060
  "members": [
1980
2061
  {
@@ -1989,6 +2070,10 @@
1989
2070
  "type": "SYMBOL",
1990
2071
  "name": "successor"
1991
2072
  },
2073
+ {
2074
+ "type": "SYMBOL",
2075
+ "name": "_custom_body_complex_label"
2076
+ },
1992
2077
  {
1993
2078
  "type": "PREC",
1994
2079
  "value": 2,
@@ -2001,6 +2086,10 @@
2001
2086
  "type": "SYMBOL",
2002
2087
  "name": "attribute"
2003
2088
  },
2089
+ {
2090
+ "type": "SYMBOL",
2091
+ "name": "_custom_body_tuple_group"
2092
+ },
2004
2093
  {
2005
2094
  "type": "SYMBOL",
2006
2095
  "name": "region"
@@ -2009,6 +2098,14 @@
2009
2098
  "type": "SYMBOL",
2010
2099
  "name": "_custom_body_value_group"
2011
2100
  },
2101
+ {
2102
+ "type": "SYMBOL",
2103
+ "name": "_custom_body_ssa_dict"
2104
+ },
2105
+ {
2106
+ "type": "SYMBOL",
2107
+ "name": "_custom_body_sparse_operand"
2108
+ },
2012
2109
  {
2013
2110
  "type": "SYMBOL",
2014
2111
  "name": "_custom_body_paren"
@@ -2033,6 +2130,10 @@
2033
2130
  "type": "STRING",
2034
2131
  "value": "vector"
2035
2132
  },
2133
+ {
2134
+ "type": "STRING",
2135
+ "value": "tensor"
2136
+ },
2036
2137
  {
2037
2138
  "type": "STRING",
2038
2139
  "value": "ceildiv"
@@ -2049,6 +2150,10 @@
2049
2150
  "type": "SYMBOL",
2050
2151
  "name": "bare_id"
2051
2152
  },
2153
+ {
2154
+ "type": "SYMBOL",
2155
+ "name": "_custom_body_arrow"
2156
+ },
2052
2157
  {
2053
2158
  "type": "STRING",
2054
2159
  "value": ","
@@ -2192,115 +2297,393 @@
2192
2297
  }
2193
2298
  ]
2194
2299
  },
2195
- "_custom_body_angle_group": {
2300
+ "_custom_body_tuple_group": {
2196
2301
  "type": "SEQ",
2197
2302
  "members": [
2198
2303
  {
2199
2304
  "type": "STRING",
2200
- "value": "<"
2305
+ "value": "{"
2306
+ },
2307
+ {
2308
+ "type": "SYMBOL",
2309
+ "name": "_custom_body_tuple"
2201
2310
  },
2202
2311
  {
2203
2312
  "type": "REPEAT",
2204
2313
  "content": {
2205
- "type": "SYMBOL",
2206
- "name": "_nested_custom_body_element"
2314
+ "type": "SEQ",
2315
+ "members": [
2316
+ {
2317
+ "type": "STRING",
2318
+ "value": ","
2319
+ },
2320
+ {
2321
+ "type": "SYMBOL",
2322
+ "name": "_custom_body_tuple"
2323
+ }
2324
+ ]
2207
2325
  }
2208
2326
  },
2209
2327
  {
2210
2328
  "type": "STRING",
2211
- "value": ">"
2329
+ "value": "}"
2212
2330
  }
2213
2331
  ]
2214
2332
  },
2215
- "_nested_custom_body_element": {
2216
- "type": "CHOICE",
2333
+ "_custom_body_tuple": {
2334
+ "type": "SEQ",
2217
2335
  "members": [
2218
2336
  {
2219
- "type": "SYMBOL",
2220
- "name": "_custom_body_element"
2337
+ "type": "STRING",
2338
+ "value": "("
2221
2339
  },
2222
2340
  {
2223
2341
  "type": "SYMBOL",
2224
- "name": "trailing_location"
2342
+ "name": "_value_use_list"
2343
+ },
2344
+ {
2345
+ "type": "STRING",
2346
+ "value": ")"
2225
2347
  }
2226
2348
  ]
2227
2349
  },
2228
- "block": {
2350
+ "_custom_body_location_attr_dict": {
2229
2351
  "type": "SEQ",
2230
2352
  "members": [
2231
2353
  {
2232
2354
  "type": "SYMBOL",
2233
- "name": "block_label"
2355
+ "name": "trailing_location"
2234
2356
  },
2235
2357
  {
2236
- "type": "REPEAT",
2237
- "content": {
2238
- "type": "SYMBOL",
2239
- "name": "operation"
2240
- }
2358
+ "type": "SYMBOL",
2359
+ "name": "dictionary_attribute"
2241
2360
  }
2242
2361
  ]
2243
2362
  },
2244
- "block_label": {
2363
+ "_custom_body_complex_label": {
2364
+ "type": "PREC",
2365
+ "value": 1,
2366
+ "content": {
2367
+ "type": "SEQ",
2368
+ "members": [
2369
+ {
2370
+ "type": "SYMBOL",
2371
+ "name": "_complex_label_start"
2372
+ },
2373
+ {
2374
+ "type": "SYMBOL",
2375
+ "name": "value_use"
2376
+ }
2377
+ ]
2378
+ }
2379
+ },
2380
+ "_custom_body_ssa_dict": {
2245
2381
  "type": "SEQ",
2246
2382
  "members": [
2383
+ {
2384
+ "type": "STRING",
2385
+ "value": "{"
2386
+ },
2387
+ {
2388
+ "type": "REPEAT",
2389
+ "content": {
2390
+ "type": "SEQ",
2391
+ "members": [
2392
+ {
2393
+ "type": "SYMBOL",
2394
+ "name": "_custom_body_attr_dict_entry"
2395
+ },
2396
+ {
2397
+ "type": "STRING",
2398
+ "value": ","
2399
+ }
2400
+ ]
2401
+ }
2402
+ },
2247
2403
  {
2248
2404
  "type": "SYMBOL",
2249
- "name": "_block_id"
2405
+ "name": "_custom_body_ssa_dict_entry"
2250
2406
  },
2251
2407
  {
2252
- "type": "CHOICE",
2253
- "members": [
2254
- {
2255
- "type": "SYMBOL",
2256
- "name": "block_arg_list"
2257
- },
2258
- {
2259
- "type": "BLANK"
2260
- }
2261
- ]
2408
+ "type": "REPEAT",
2409
+ "content": {
2410
+ "type": "SEQ",
2411
+ "members": [
2412
+ {
2413
+ "type": "STRING",
2414
+ "value": ","
2415
+ },
2416
+ {
2417
+ "type": "SYMBOL",
2418
+ "name": "_custom_body_mixed_dict_entry"
2419
+ }
2420
+ ]
2421
+ }
2262
2422
  },
2263
2423
  {
2264
2424
  "type": "STRING",
2265
- "value": ":"
2425
+ "value": "}"
2266
2426
  }
2267
2427
  ]
2268
2428
  },
2269
- "_block_id": {
2429
+ "_custom_body_dict_key": {
2270
2430
  "type": "SYMBOL",
2271
- "name": "caret_id"
2431
+ "name": "string_literal"
2272
2432
  },
2273
- "caret_id": {
2433
+ "_custom_body_attr_dict_entry": {
2274
2434
  "type": "SEQ",
2275
2435
  "members": [
2436
+ {
2437
+ "type": "SYMBOL",
2438
+ "name": "_custom_body_dict_key"
2439
+ },
2276
2440
  {
2277
2441
  "type": "STRING",
2278
- "value": "^"
2442
+ "value": "="
2279
2443
  },
2280
2444
  {
2281
2445
  "type": "SYMBOL",
2282
- "name": "_suffix_id"
2446
+ "name": "attribute_value"
2283
2447
  }
2284
2448
  ]
2285
2449
  },
2286
- "_value_use_and_type": {
2450
+ "_custom_body_ssa_dict_entry": {
2287
2451
  "type": "SEQ",
2288
2452
  "members": [
2289
2453
  {
2290
2454
  "type": "SYMBOL",
2291
- "name": "value_use"
2455
+ "name": "_custom_body_dict_key"
2456
+ },
2457
+ {
2458
+ "type": "STRING",
2459
+ "value": "="
2292
2460
  },
2293
2461
  {
2294
2462
  "type": "CHOICE",
2295
2463
  "members": [
2296
2464
  {
2297
- "type": "SEQ",
2298
- "members": [
2299
- {
2300
- "type": "STRING",
2301
- "value": ":"
2302
- },
2303
- {
2465
+ "type": "SYMBOL",
2466
+ "name": "value_use"
2467
+ },
2468
+ {
2469
+ "type": "SYMBOL",
2470
+ "name": "_custom_body_ssa_value_array"
2471
+ }
2472
+ ]
2473
+ }
2474
+ ]
2475
+ },
2476
+ "_custom_body_mixed_dict_entry": {
2477
+ "type": "SEQ",
2478
+ "members": [
2479
+ {
2480
+ "type": "SYMBOL",
2481
+ "name": "_custom_body_dict_key"
2482
+ },
2483
+ {
2484
+ "type": "STRING",
2485
+ "value": "="
2486
+ },
2487
+ {
2488
+ "type": "CHOICE",
2489
+ "members": [
2490
+ {
2491
+ "type": "SYMBOL",
2492
+ "name": "attribute_value"
2493
+ },
2494
+ {
2495
+ "type": "SYMBOL",
2496
+ "name": "value_use"
2497
+ },
2498
+ {
2499
+ "type": "SYMBOL",
2500
+ "name": "_custom_body_ssa_value_array"
2501
+ }
2502
+ ]
2503
+ }
2504
+ ]
2505
+ },
2506
+ "_custom_body_ssa_value_array": {
2507
+ "type": "SEQ",
2508
+ "members": [
2509
+ {
2510
+ "type": "STRING",
2511
+ "value": "["
2512
+ },
2513
+ {
2514
+ "type": "SYMBOL",
2515
+ "name": "value_use"
2516
+ },
2517
+ {
2518
+ "type": "REPEAT",
2519
+ "content": {
2520
+ "type": "SEQ",
2521
+ "members": [
2522
+ {
2523
+ "type": "STRING",
2524
+ "value": ","
2525
+ },
2526
+ {
2527
+ "type": "SYMBOL",
2528
+ "name": "value_use"
2529
+ }
2530
+ ]
2531
+ }
2532
+ },
2533
+ {
2534
+ "type": "STRING",
2535
+ "value": "]"
2536
+ }
2537
+ ]
2538
+ },
2539
+ "_custom_body_successor_marker": {
2540
+ "type": "SEQ",
2541
+ "members": [
2542
+ {
2543
+ "type": "STRING",
2544
+ "value": ">"
2545
+ },
2546
+ {
2547
+ "type": "SYMBOL",
2548
+ "name": "successor"
2549
+ }
2550
+ ]
2551
+ },
2552
+ "_custom_body_sparse_operand": {
2553
+ "type": "SEQ",
2554
+ "members": [
2555
+ {
2556
+ "type": "SYMBOL",
2557
+ "name": "_sparse_keyword"
2558
+ },
2559
+ {
2560
+ "type": "SYMBOL",
2561
+ "name": "_custom_body_paren"
2562
+ }
2563
+ ]
2564
+ },
2565
+ "_custom_body_angle_group": {
2566
+ "type": "SEQ",
2567
+ "members": [
2568
+ {
2569
+ "type": "STRING",
2570
+ "value": "<"
2571
+ },
2572
+ {
2573
+ "type": "REPEAT",
2574
+ "content": {
2575
+ "type": "SYMBOL",
2576
+ "name": "_nested_custom_body_element"
2577
+ }
2578
+ },
2579
+ {
2580
+ "type": "STRING",
2581
+ "value": ">"
2582
+ }
2583
+ ]
2584
+ },
2585
+ "_custom_body_arrow": {
2586
+ "type": "SEQ",
2587
+ "members": [
2588
+ {
2589
+ "type": "STRING",
2590
+ "value": "<"
2591
+ },
2592
+ {
2593
+ "type": "STRING",
2594
+ "value": "-"
2595
+ }
2596
+ ]
2597
+ },
2598
+ "_nested_custom_body_element": {
2599
+ "type": "CHOICE",
2600
+ "members": [
2601
+ {
2602
+ "type": "SYMBOL",
2603
+ "name": "_custom_body_element_base"
2604
+ },
2605
+ {
2606
+ "type": "SYMBOL",
2607
+ "name": "trailing_location"
2608
+ }
2609
+ ]
2610
+ },
2611
+ "block": {
2612
+ "type": "SEQ",
2613
+ "members": [
2614
+ {
2615
+ "type": "SYMBOL",
2616
+ "name": "block_label"
2617
+ },
2618
+ {
2619
+ "type": "REPEAT",
2620
+ "content": {
2621
+ "type": "SYMBOL",
2622
+ "name": "operation"
2623
+ }
2624
+ }
2625
+ ]
2626
+ },
2627
+ "block_label": {
2628
+ "type": "SEQ",
2629
+ "members": [
2630
+ {
2631
+ "type": "SYMBOL",
2632
+ "name": "_block_id"
2633
+ },
2634
+ {
2635
+ "type": "CHOICE",
2636
+ "members": [
2637
+ {
2638
+ "type": "SYMBOL",
2639
+ "name": "block_arg_list"
2640
+ },
2641
+ {
2642
+ "type": "BLANK"
2643
+ }
2644
+ ]
2645
+ },
2646
+ {
2647
+ "type": "STRING",
2648
+ "value": ":"
2649
+ }
2650
+ ]
2651
+ },
2652
+ "_block_id": {
2653
+ "type": "SYMBOL",
2654
+ "name": "caret_id"
2655
+ },
2656
+ "caret_id": {
2657
+ "type": "SEQ",
2658
+ "members": [
2659
+ {
2660
+ "type": "STRING",
2661
+ "value": "^"
2662
+ },
2663
+ {
2664
+ "type": "SYMBOL",
2665
+ "name": "_suffix_id"
2666
+ }
2667
+ ]
2668
+ },
2669
+ "_value_use_and_type": {
2670
+ "type": "SEQ",
2671
+ "members": [
2672
+ {
2673
+ "type": "SYMBOL",
2674
+ "name": "value_use"
2675
+ },
2676
+ {
2677
+ "type": "CHOICE",
2678
+ "members": [
2679
+ {
2680
+ "type": "SEQ",
2681
+ "members": [
2682
+ {
2683
+ "type": "STRING",
2684
+ "value": ":"
2685
+ },
2686
+ {
2304
2687
  "type": "SYMBOL",
2305
2688
  "name": "type"
2306
2689
  }
@@ -2857,12 +3240,12 @@
2857
3240
  "name": "_literal"
2858
3241
  },
2859
3242
  {
2860
- "type": "STRING",
2861
- "value": "dense"
3243
+ "type": "SYMBOL",
3244
+ "name": "_dense_keyword"
2862
3245
  },
2863
3246
  {
2864
- "type": "STRING",
2865
- "value": "sparse"
3247
+ "type": "SYMBOL",
3248
+ "name": "_sparse_keyword"
2866
3249
  },
2867
3250
  {
2868
3251
  "type": "STRING",
@@ -2872,6 +3255,14 @@
2872
3255
  "type": "STRING",
2873
3256
  "value": "vector"
2874
3257
  },
3258
+ {
3259
+ "type": "STRING",
3260
+ "value": "tensor"
3261
+ },
3262
+ {
3263
+ "type": "STRING",
3264
+ "value": "opaque"
3265
+ },
2875
3266
  {
2876
3267
  "type": "SYMBOL",
2877
3268
  "name": "bare_id"
@@ -3109,6 +3500,14 @@
3109
3500
  "name": "type"
3110
3501
  }
3111
3502
  },
3503
+ {
3504
+ "type": "PREC",
3505
+ "value": 1,
3506
+ "content": {
3507
+ "type": "SYMBOL",
3508
+ "name": "_pretty_dialect_body_type"
3509
+ }
3510
+ },
3112
3511
  {
3113
3512
  "type": "ALIAS",
3114
3513
  "content": {
@@ -3128,6 +3527,28 @@
3128
3527
  }
3129
3528
  ]
3130
3529
  },
3530
+ "_pretty_dialect_body_type": {
3531
+ "type": "SEQ",
3532
+ "members": [
3533
+ {
3534
+ "type": "CHOICE",
3535
+ "members": [
3536
+ {
3537
+ "type": "SYMBOL",
3538
+ "name": "bare_id"
3539
+ },
3540
+ {
3541
+ "type": "STRING",
3542
+ "value": "array"
3543
+ }
3544
+ ]
3545
+ },
3546
+ {
3547
+ "type": "SYMBOL",
3548
+ "name": "pretty_dialect_item_body"
3549
+ }
3550
+ ]
3551
+ },
3131
3552
  "builtin_type": {
3132
3553
  "type": "CHOICE",
3133
3554
  "members": [
@@ -3323,15 +3744,8 @@
3323
3744
  "type": "SEQ",
3324
3745
  "members": [
3325
3746
  {
3326
- "type": "TOKEN",
3327
- "content": {
3328
- "type": "STRING",
3329
- "value": "complex"
3330
- }
3331
- },
3332
- {
3333
- "type": "STRING",
3334
- "value": "<"
3747
+ "type": "SYMBOL",
3748
+ "name": "_complex_type_start"
3335
3749
  },
3336
3750
  {
3337
3751
  "type": "SYMBOL",
@@ -3839,45 +4253,8 @@
3839
4253
  ]
3840
4254
  },
3841
4255
  {
3842
- "type": "SEQ",
3843
- "members": [
3844
- {
3845
- "type": "STRING",
3846
- "value": "["
3847
- },
3848
- {
3849
- "type": "CHOICE",
3850
- "members": [
3851
- {
3852
- "type": "SYMBOL",
3853
- "name": "_attribute_value_nobracket"
3854
- },
3855
- {
3856
- "type": "BLANK"
3857
- }
3858
- ]
3859
- },
3860
- {
3861
- "type": "REPEAT",
3862
- "content": {
3863
- "type": "SEQ",
3864
- "members": [
3865
- {
3866
- "type": "STRING",
3867
- "value": ","
3868
- },
3869
- {
3870
- "type": "SYMBOL",
3871
- "name": "_attribute_value_nobracket"
3872
- }
3873
- ]
3874
- }
3875
- },
3876
- {
3877
- "type": "STRING",
3878
- "value": "]"
3879
- }
3880
- ]
4256
+ "type": "SYMBOL",
4257
+ "name": "_attribute_array"
3881
4258
  }
3882
4259
  ]
3883
4260
  },
@@ -3885,46 +4262,63 @@
3885
4262
  "type": "CHOICE",
3886
4263
  "members": [
3887
4264
  {
3888
- "type": "SEQ",
4265
+ "type": "SYMBOL",
4266
+ "name": "_attribute_array"
4267
+ },
4268
+ {
4269
+ "type": "SYMBOL",
4270
+ "name": "_attribute_value_nobracket"
4271
+ }
4272
+ ]
4273
+ },
4274
+ "_attribute_array": {
4275
+ "type": "SEQ",
4276
+ "members": [
4277
+ {
4278
+ "type": "STRING",
4279
+ "value": "["
4280
+ },
4281
+ {
4282
+ "type": "CHOICE",
3889
4283
  "members": [
3890
4284
  {
3891
- "type": "STRING",
3892
- "value": "["
3893
- },
3894
- {
3895
- "type": "CHOICE",
3896
- "members": [
3897
- {
3898
- "type": "SYMBOL",
3899
- "name": "_attribute_value_nobracket"
3900
- },
3901
- {
3902
- "type": "BLANK"
3903
- }
3904
- ]
3905
- },
3906
- {
3907
- "type": "REPEAT",
3908
- "content": {
3909
- "type": "SEQ",
3910
- "members": [
3911
- {
3912
- "type": "STRING",
3913
- "value": ","
3914
- },
3915
- {
3916
- "type": "SYMBOL",
3917
- "name": "_attribute_value_nobracket"
3918
- }
3919
- ]
3920
- }
4285
+ "type": "SYMBOL",
4286
+ "name": "_attribute_array_element"
3921
4287
  },
3922
4288
  {
3923
- "type": "STRING",
3924
- "value": "]"
4289
+ "type": "BLANK"
3925
4290
  }
3926
4291
  ]
3927
4292
  },
4293
+ {
4294
+ "type": "REPEAT",
4295
+ "content": {
4296
+ "type": "SEQ",
4297
+ "members": [
4298
+ {
4299
+ "type": "STRING",
4300
+ "value": ","
4301
+ },
4302
+ {
4303
+ "type": "SYMBOL",
4304
+ "name": "_attribute_array_element"
4305
+ }
4306
+ ]
4307
+ }
4308
+ },
4309
+ {
4310
+ "type": "STRING",
4311
+ "value": "]"
4312
+ }
4313
+ ]
4314
+ },
4315
+ "_attribute_array_element": {
4316
+ "type": "CHOICE",
4317
+ "members": [
4318
+ {
4319
+ "type": "SYMBOL",
4320
+ "name": "_attribute_array"
4321
+ },
3928
4322
  {
3929
4323
  "type": "SYMBOL",
3930
4324
  "name": "_attribute_value_nobracket"
@@ -4109,6 +4503,10 @@
4109
4503
  {
4110
4504
  "type": "SYMBOL",
4111
4505
  "name": "dense_resource_literal"
4506
+ },
4507
+ {
4508
+ "type": "SYMBOL",
4509
+ "name": "distinct_attribute"
4112
4510
  }
4113
4511
  ]
4114
4512
  },
@@ -4118,8 +4516,12 @@
4118
4516
  {
4119
4517
  "type": "TOKEN",
4120
4518
  "content": {
4121
- "type": "STRING",
4122
- "value": "dense_resource"
4519
+ "type": "PREC",
4520
+ "value": 2,
4521
+ "content": {
4522
+ "type": "STRING",
4523
+ "value": "dense_resource"
4524
+ }
4123
4525
  }
4124
4526
  },
4125
4527
  {
@@ -4145,6 +4547,55 @@
4145
4547
  }
4146
4548
  ]
4147
4549
  },
4550
+ "distinct_attribute": {
4551
+ "type": "SEQ",
4552
+ "members": [
4553
+ {
4554
+ "type": "TOKEN",
4555
+ "content": {
4556
+ "type": "STRING",
4557
+ "value": "distinct"
4558
+ }
4559
+ },
4560
+ {
4561
+ "type": "STRING",
4562
+ "value": "["
4563
+ },
4564
+ {
4565
+ "type": "ALIAS",
4566
+ "content": {
4567
+ "type": "SYMBOL",
4568
+ "name": "_unsigned_integer_literal"
4569
+ },
4570
+ "named": true,
4571
+ "value": "integer_literal"
4572
+ },
4573
+ {
4574
+ "type": "STRING",
4575
+ "value": "]"
4576
+ },
4577
+ {
4578
+ "type": "STRING",
4579
+ "value": "<"
4580
+ },
4581
+ {
4582
+ "type": "CHOICE",
4583
+ "members": [
4584
+ {
4585
+ "type": "SYMBOL",
4586
+ "name": "attribute_value"
4587
+ },
4588
+ {
4589
+ "type": "BLANK"
4590
+ }
4591
+ ]
4592
+ },
4593
+ {
4594
+ "type": "STRING",
4595
+ "value": ">"
4596
+ }
4597
+ ]
4598
+ },
4148
4599
  "strided_layout": {
4149
4600
  "type": "SEQ",
4150
4601
  "members": [
@@ -4624,12 +5075,12 @@
4624
5075
  "name": "bare_id"
4625
5076
  },
4626
5077
  {
4627
- "type": "STRING",
4628
- "value": "dense"
5078
+ "type": "SYMBOL",
5079
+ "name": "_dense_keyword"
4629
5080
  },
4630
5081
  {
4631
- "type": "STRING",
4632
- "value": "sparse"
5082
+ "type": "SYMBOL",
5083
+ "name": "_sparse_keyword"
4633
5084
  }
4634
5085
  ]
4635
5086
  },
@@ -4651,12 +5102,12 @@
4651
5102
  "name": "bare_id"
4652
5103
  },
4653
5104
  {
4654
- "type": "STRING",
4655
- "value": "dense"
5105
+ "type": "SYMBOL",
5106
+ "name": "_dense_keyword"
4656
5107
  },
4657
5108
  {
4658
- "type": "STRING",
4659
- "value": "sparse"
5109
+ "type": "SYMBOL",
5110
+ "name": "_sparse_keyword"
4660
5111
  },
4661
5112
  {
4662
5113
  "type": "STRING",
@@ -4805,32 +5256,20 @@
4805
5256
  "value": ","
4806
5257
  },
4807
5258
  {
4808
- "type": "SYMBOL",
4809
- "name": "_value_id_and_type_attr"
5259
+ "type": "CHOICE",
5260
+ "members": [
5261
+ {
5262
+ "type": "SYMBOL",
5263
+ "name": "_value_id_and_type_attr"
5264
+ },
5265
+ {
5266
+ "type": "SYMBOL",
5267
+ "name": "variadic"
5268
+ }
5269
+ ]
4810
5270
  }
4811
5271
  ]
4812
5272
  }
4813
- },
4814
- {
4815
- "type": "CHOICE",
4816
- "members": [
4817
- {
4818
- "type": "SEQ",
4819
- "members": [
4820
- {
4821
- "type": "STRING",
4822
- "value": ","
4823
- },
4824
- {
4825
- "type": "SYMBOL",
4826
- "name": "variadic"
4827
- }
4828
- ]
4829
- },
4830
- {
4831
- "type": "BLANK"
4832
- }
4833
- ]
4834
5273
  }
4835
5274
  ]
4836
5275
  },
@@ -5053,12 +5492,56 @@
5053
5492
  }
5054
5493
  ]
5055
5494
  }
5495
+ },
5496
+ "_dense_keyword": {
5497
+ "type": "TOKEN",
5498
+ "content": {
5499
+ "type": "PREC",
5500
+ "value": 1,
5501
+ "content": {
5502
+ "type": "STRING",
5503
+ "value": "dense"
5504
+ }
5505
+ }
5506
+ },
5507
+ "_sparse_keyword": {
5508
+ "type": "TOKEN",
5509
+ "content": {
5510
+ "type": "PREC",
5511
+ "value": 1,
5512
+ "content": {
5513
+ "type": "STRING",
5514
+ "value": "sparse"
5515
+ }
5516
+ }
5517
+ },
5518
+ "_complex_label_start": {
5519
+ "type": "TOKEN",
5520
+ "content": {
5521
+ "type": "PREC",
5522
+ "value": 2,
5523
+ "content": {
5524
+ "type": "PATTERN",
5525
+ "value": "complex:"
5526
+ }
5527
+ }
5528
+ },
5529
+ "_complex_type_start": {
5530
+ "type": "TOKEN",
5531
+ "content": {
5532
+ "type": "PREC",
5533
+ "value": 1,
5534
+ "content": {
5535
+ "type": "PATTERN",
5536
+ "value": "complex<"
5537
+ }
5538
+ }
5056
5539
  }
5057
5540
  },
5058
5541
  "extras": [
5059
5542
  {
5060
5543
  "type": "PATTERN",
5061
- "value": "\\s"
5544
+ "value": "[\\s\\x00]"
5062
5545
  },
5063
5546
  {
5064
5547
  "type": "SYMBOL",
@@ -5091,7 +5574,23 @@
5091
5574
  ],
5092
5575
  [
5093
5576
  "array_literal",
5094
- "_custom_body_element"
5577
+ "_custom_body_element_base"
5578
+ ],
5579
+ [
5580
+ "_custom_body_element_base",
5581
+ "tensor_type"
5582
+ ],
5583
+ [
5584
+ "_custom_body_element_base",
5585
+ "_custom_body_arrow"
5586
+ ],
5587
+ [
5588
+ "_generic_custom_operation_with_location_attr_dict",
5589
+ "custom_op_name"
5590
+ ],
5591
+ [
5592
+ "_custom_body_dict_key",
5593
+ "attribute_entry"
5095
5594
  ],
5096
5595
  [
5097
5596
  "_value_use_list",