tree-sitter-bynk 0.377.2 → 0.403.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
@@ -414,6 +414,10 @@
414
414
  {
415
415
  "type": "SYMBOL",
416
416
  "name": "asset_decl"
417
+ },
418
+ {
419
+ "type": "SYMBOL",
420
+ "name": "embed_decl"
417
421
  }
418
422
  ]
419
423
  },
@@ -471,6 +475,14 @@
471
475
  {
472
476
  "type": "SYMBOL",
473
477
  "name": "asset_decl"
478
+ },
479
+ {
480
+ "type": "SYMBOL",
481
+ "name": "embed_decl"
482
+ },
483
+ {
484
+ "type": "SYMBOL",
485
+ "name": "removed_agent_decl"
474
486
  }
475
487
  ]
476
488
  },
@@ -532,6 +544,10 @@
532
544
  {
533
545
  "type": "SYMBOL",
534
546
  "name": "asset_decl"
547
+ },
548
+ {
549
+ "type": "SYMBOL",
550
+ "name": "embed_decl"
535
551
  }
536
552
  ]
537
553
  },
@@ -709,6 +725,89 @@
709
725
  "name": "string_literal"
710
726
  }
711
727
  },
728
+ {
729
+ "type": "CHOICE",
730
+ "members": [
731
+ {
732
+ "type": "SEQ",
733
+ "members": [
734
+ {
735
+ "type": "ALIAS",
736
+ "content": {
737
+ "type": "STRING",
738
+ "value": "includes"
739
+ },
740
+ "named": true,
741
+ "value": "includes_keyword"
742
+ },
743
+ {
744
+ "type": "STRING",
745
+ "value": "["
746
+ },
747
+ {
748
+ "type": "CHOICE",
749
+ "members": [
750
+ {
751
+ "type": "SEQ",
752
+ "members": [
753
+ {
754
+ "type": "FIELD",
755
+ "name": "include",
756
+ "content": {
757
+ "type": "SYMBOL",
758
+ "name": "string_literal"
759
+ }
760
+ },
761
+ {
762
+ "type": "REPEAT",
763
+ "content": {
764
+ "type": "SEQ",
765
+ "members": [
766
+ {
767
+ "type": "STRING",
768
+ "value": ","
769
+ },
770
+ {
771
+ "type": "FIELD",
772
+ "name": "include",
773
+ "content": {
774
+ "type": "SYMBOL",
775
+ "name": "string_literal"
776
+ }
777
+ }
778
+ ]
779
+ }
780
+ }
781
+ ]
782
+ },
783
+ {
784
+ "type": "BLANK"
785
+ }
786
+ ]
787
+ },
788
+ {
789
+ "type": "CHOICE",
790
+ "members": [
791
+ {
792
+ "type": "STRING",
793
+ "value": ","
794
+ },
795
+ {
796
+ "type": "BLANK"
797
+ }
798
+ ]
799
+ },
800
+ {
801
+ "type": "STRING",
802
+ "value": "]"
803
+ }
804
+ ]
805
+ },
806
+ {
807
+ "type": "BLANK"
808
+ }
809
+ ]
810
+ },
712
811
  {
713
812
  "type": "CHOICE",
714
813
  "members": [
@@ -1316,6 +1415,35 @@
1316
1415
  }
1317
1416
  ]
1318
1417
  },
1418
+ "embed_decl": {
1419
+ "type": "SEQ",
1420
+ "members": [
1421
+ {
1422
+ "type": "STRING",
1423
+ "value": "embed"
1424
+ },
1425
+ {
1426
+ "type": "FIELD",
1427
+ "name": "name",
1428
+ "content": {
1429
+ "type": "SYMBOL",
1430
+ "name": "identifier"
1431
+ }
1432
+ },
1433
+ {
1434
+ "type": "STRING",
1435
+ "value": "="
1436
+ },
1437
+ {
1438
+ "type": "FIELD",
1439
+ "name": "path",
1440
+ "content": {
1441
+ "type": "SYMBOL",
1442
+ "name": "string_literal"
1443
+ }
1444
+ }
1445
+ ]
1446
+ },
1319
1447
  "sum_type": {
1320
1448
  "type": "PREC_RIGHT",
1321
1449
  "value": 0,
@@ -3637,6 +3765,31 @@
3637
3765
  "name": "identifier"
3638
3766
  }
3639
3767
  },
3768
+ {
3769
+ "type": "CHOICE",
3770
+ "members": [
3771
+ {
3772
+ "type": "SEQ",
3773
+ "members": [
3774
+ {
3775
+ "type": "STRING",
3776
+ "value": "replaces"
3777
+ },
3778
+ {
3779
+ "type": "FIELD",
3780
+ "name": "replaces",
3781
+ "content": {
3782
+ "type": "SYMBOL",
3783
+ "name": "identifier"
3784
+ }
3785
+ }
3786
+ ]
3787
+ },
3788
+ {
3789
+ "type": "BLANK"
3790
+ }
3791
+ ]
3792
+ },
3640
3793
  {
3641
3794
  "type": "STRING",
3642
3795
  "value": "{"
@@ -3668,6 +3821,10 @@
3668
3821
  {
3669
3822
  "type": "SYMBOL",
3670
3823
  "name": "transition_decl"
3824
+ },
3825
+ {
3826
+ "type": "SYMBOL",
3827
+ "name": "migrate_decl"
3671
3828
  }
3672
3829
  ]
3673
3830
  }
@@ -3759,6 +3916,134 @@
3759
3916
  }
3760
3917
  ]
3761
3918
  },
3919
+ "migrate_decl": {
3920
+ "type": "SEQ",
3921
+ "members": [
3922
+ {
3923
+ "type": "STRING",
3924
+ "value": "migrate"
3925
+ },
3926
+ {
3927
+ "type": "STRING",
3928
+ "value": "from"
3929
+ },
3930
+ {
3931
+ "type": "FIELD",
3932
+ "name": "from",
3933
+ "content": {
3934
+ "type": "SYMBOL",
3935
+ "name": "number_literal"
3936
+ }
3937
+ },
3938
+ {
3939
+ "type": "CHOICE",
3940
+ "members": [
3941
+ {
3942
+ "type": "SEQ",
3943
+ "members": [
3944
+ {
3945
+ "type": "STRING",
3946
+ "value": "("
3947
+ },
3948
+ {
3949
+ "type": "FIELD",
3950
+ "name": "old",
3951
+ "content": {
3952
+ "type": "SYMBOL",
3953
+ "name": "identifier"
3954
+ }
3955
+ },
3956
+ {
3957
+ "type": "STRING",
3958
+ "value": ":"
3959
+ },
3960
+ {
3961
+ "type": "FIELD",
3962
+ "name": "old_type",
3963
+ "content": {
3964
+ "type": "SYMBOL",
3965
+ "name": "_type_ref"
3966
+ }
3967
+ },
3968
+ {
3969
+ "type": "STRING",
3970
+ "value": ")"
3971
+ }
3972
+ ]
3973
+ },
3974
+ {
3975
+ "type": "BLANK"
3976
+ }
3977
+ ]
3978
+ },
3979
+ {
3980
+ "type": "STRING",
3981
+ "value": "{"
3982
+ },
3983
+ {
3984
+ "type": "REPEAT",
3985
+ "content": {
3986
+ "type": "CHOICE",
3987
+ "members": [
3988
+ {
3989
+ "type": "SYMBOL",
3990
+ "name": "let_stmt"
3991
+ },
3992
+ {
3993
+ "type": "SYMBOL",
3994
+ "name": "assign_stmt"
3995
+ },
3996
+ {
3997
+ "type": "SYMBOL",
3998
+ "name": "migrate_drop"
3999
+ }
4000
+ ]
4001
+ }
4002
+ },
4003
+ {
4004
+ "type": "STRING",
4005
+ "value": "}"
4006
+ }
4007
+ ]
4008
+ },
4009
+ "migrate_drop": {
4010
+ "type": "SEQ",
4011
+ "members": [
4012
+ {
4013
+ "type": "STRING",
4014
+ "value": "drop"
4015
+ },
4016
+ {
4017
+ "type": "FIELD",
4018
+ "name": "field",
4019
+ "content": {
4020
+ "type": "SYMBOL",
4021
+ "name": "identifier"
4022
+ }
4023
+ }
4024
+ ]
4025
+ },
4026
+ "removed_agent_decl": {
4027
+ "type": "SEQ",
4028
+ "members": [
4029
+ {
4030
+ "type": "STRING",
4031
+ "value": "removed"
4032
+ },
4033
+ {
4034
+ "type": "STRING",
4035
+ "value": "agent"
4036
+ },
4037
+ {
4038
+ "type": "FIELD",
4039
+ "name": "name",
4040
+ "content": {
4041
+ "type": "SYMBOL",
4042
+ "name": "identifier"
4043
+ }
4044
+ }
4045
+ ]
4046
+ },
3762
4047
  "key_decl": {
3763
4048
  "type": "SEQ",
3764
4049
  "members": [
@@ -4063,6 +4348,128 @@
4063
4348
  {
4064
4349
  "type": "SYMBOL",
4065
4350
  "name": "event_handler"
4351
+ },
4352
+ {
4353
+ "type": "SYMBOL",
4354
+ "name": "rejected_handler"
4355
+ }
4356
+ ]
4357
+ },
4358
+ "rejected_handler": {
4359
+ "type": "SEQ",
4360
+ "members": [
4361
+ {
4362
+ "type": "STRING",
4363
+ "value": "on"
4364
+ },
4365
+ {
4366
+ "type": "STRING",
4367
+ "value": "rejected"
4368
+ },
4369
+ {
4370
+ "type": "STRING",
4371
+ "value": "("
4372
+ },
4373
+ {
4374
+ "type": "CHOICE",
4375
+ "members": [
4376
+ {
4377
+ "type": "SEQ",
4378
+ "members": [
4379
+ {
4380
+ "type": "SYMBOL",
4381
+ "name": "param"
4382
+ },
4383
+ {
4384
+ "type": "REPEAT",
4385
+ "content": {
4386
+ "type": "SEQ",
4387
+ "members": [
4388
+ {
4389
+ "type": "STRING",
4390
+ "value": ","
4391
+ },
4392
+ {
4393
+ "type": "SYMBOL",
4394
+ "name": "param"
4395
+ }
4396
+ ]
4397
+ }
4398
+ }
4399
+ ]
4400
+ },
4401
+ {
4402
+ "type": "BLANK"
4403
+ }
4404
+ ]
4405
+ },
4406
+ {
4407
+ "type": "CHOICE",
4408
+ "members": [
4409
+ {
4410
+ "type": "STRING",
4411
+ "value": ","
4412
+ },
4413
+ {
4414
+ "type": "BLANK"
4415
+ }
4416
+ ]
4417
+ },
4418
+ {
4419
+ "type": "STRING",
4420
+ "value": ")"
4421
+ },
4422
+ {
4423
+ "type": "STRING",
4424
+ "value": "->"
4425
+ },
4426
+ {
4427
+ "type": "FIELD",
4428
+ "name": "return_type",
4429
+ "content": {
4430
+ "type": "SYMBOL",
4431
+ "name": "_type_ref"
4432
+ }
4433
+ },
4434
+ {
4435
+ "type": "CHOICE",
4436
+ "members": [
4437
+ {
4438
+ "type": "FIELD",
4439
+ "name": "by",
4440
+ "content": {
4441
+ "type": "SYMBOL",
4442
+ "name": "by_clause"
4443
+ }
4444
+ },
4445
+ {
4446
+ "type": "BLANK"
4447
+ }
4448
+ ]
4449
+ },
4450
+ {
4451
+ "type": "CHOICE",
4452
+ "members": [
4453
+ {
4454
+ "type": "FIELD",
4455
+ "name": "given",
4456
+ "content": {
4457
+ "type": "SYMBOL",
4458
+ "name": "given_clause"
4459
+ }
4460
+ },
4461
+ {
4462
+ "type": "BLANK"
4463
+ }
4464
+ ]
4465
+ },
4466
+ {
4467
+ "type": "FIELD",
4468
+ "name": "body",
4469
+ "content": {
4470
+ "type": "SYMBOL",
4471
+ "name": "block"
4472
+ }
4066
4473
  }
4067
4474
  ]
4068
4475
  },
@@ -6409,6 +6816,31 @@
6409
6816
  "name": "_expression"
6410
6817
  }
6411
6818
  },
6819
+ {
6820
+ "type": "CHOICE",
6821
+ "members": [
6822
+ {
6823
+ "type": "SEQ",
6824
+ "members": [
6825
+ {
6826
+ "type": "STRING",
6827
+ "value": ","
6828
+ },
6829
+ {
6830
+ "type": "FIELD",
6831
+ "name": "claims",
6832
+ "content": {
6833
+ "type": "SYMBOL",
6834
+ "name": "_expression"
6835
+ }
6836
+ }
6837
+ ]
6838
+ },
6839
+ {
6840
+ "type": "BLANK"
6841
+ }
6842
+ ]
6843
+ },
6412
6844
  {
6413
6845
  "type": "STRING",
6414
6846
  "value": ")"
@@ -6464,8 +6896,17 @@
6464
6896
  "type": "FIELD",
6465
6897
  "name": "target",
6466
6898
  "content": {
6467
- "type": "SYMBOL",
6468
- "name": "identifier"
6899
+ "type": "CHOICE",
6900
+ "members": [
6901
+ {
6902
+ "type": "SYMBOL",
6903
+ "name": "identifier"
6904
+ },
6905
+ {
6906
+ "type": "SYMBOL",
6907
+ "name": "_contextual_identifier"
6908
+ }
6909
+ ]
6469
6910
  }
6470
6911
  },
6471
6912
  {
@@ -6770,8 +7211,8 @@
6770
7211
  ]
6771
7212
  },
6772
7213
  "trace_expr": {
6773
- "type": "PREC",
6774
- "value": 11,
7214
+ "type": "PREC_DYNAMIC",
7215
+ "value": 1,
6775
7216
  "content": {
6776
7217
  "type": "SEQ",
6777
7218
  "members": [
@@ -7605,9 +8046,31 @@
7605
8046
  {
7606
8047
  "type": "SYMBOL",
7607
8048
  "name": "identifier"
8049
+ },
8050
+ {
8051
+ "type": "SYMBOL",
8052
+ "name": "_contextual_identifier"
7608
8053
  }
7609
8054
  ]
7610
8055
  },
8056
+ "_contextual_identifier": {
8057
+ "type": "ALIAS",
8058
+ "content": {
8059
+ "type": "CHOICE",
8060
+ "members": [
8061
+ {
8062
+ "type": "STRING",
8063
+ "value": "trace"
8064
+ },
8065
+ {
8066
+ "type": "STRING",
8067
+ "value": "advance"
8068
+ }
8069
+ ]
8070
+ },
8071
+ "named": true,
8072
+ "value": "identifier"
8073
+ },
7611
8074
  "lambda_expr": {
7612
8075
  "type": "SEQ",
7613
8076
  "members": [
@@ -7682,8 +8145,17 @@
7682
8145
  "type": "FIELD",
7683
8146
  "name": "name",
7684
8147
  "content": {
7685
- "type": "SYMBOL",
7686
- "name": "identifier"
8148
+ "type": "CHOICE",
8149
+ "members": [
8150
+ {
8151
+ "type": "SYMBOL",
8152
+ "name": "identifier"
8153
+ },
8154
+ {
8155
+ "type": "SYMBOL",
8156
+ "name": "_contextual_identifier"
8157
+ }
8158
+ ]
7687
8159
  }
7688
8160
  },
7689
8161
  {
@@ -7913,8 +8385,17 @@
7913
8385
  "type": "FIELD",
7914
8386
  "name": "name",
7915
8387
  "content": {
7916
- "type": "SYMBOL",
7917
- "name": "identifier"
8388
+ "type": "CHOICE",
8389
+ "members": [
8390
+ {
8391
+ "type": "SYMBOL",
8392
+ "name": "identifier"
8393
+ },
8394
+ {
8395
+ "type": "SYMBOL",
8396
+ "name": "_contextual_identifier"
8397
+ }
8398
+ ]
7918
8399
  }
7919
8400
  },
7920
8401
  {
@@ -8800,6 +9281,10 @@
8800
9281
  "observation_expr",
8801
9282
  "_primary"
8802
9283
  ],
9284
+ [
9285
+ "trace_expr",
9286
+ "_contextual_identifier"
9287
+ ],
8803
9288
  [
8804
9289
  "store_field"
8805
9290
  ]