@algosail/tree-sitter 0.1.5 → 0.1.6

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 CHANGED
@@ -57,6 +57,8 @@ module.exports = grammar({
57
57
  module_group_ref: ($) => /~[A-Z][a-zA-Z0-9_]*&[A-Z][a-zA-Z0-9_]*/,
58
58
  // ~Module#Tag
59
59
  module_tag_ref: ($) => /~[A-Z][a-zA-Z0-9_]*#[A-Z][a-zA-Z0-9_]*/,
60
+ // ~Module#Tag
61
+ module_tag_pattern: ($) => /~[A-Z][a-zA-Z0-9_]*\_[A-Z][a-zA-Z0-9_]*/,
60
62
  // ~Module$Map
61
63
  module_map_ref: ($) => /~[A-Z][a-zA-Z0-9_]*\$[A-Z][a-zA-Z0-9_]*/,
62
64
  // ~Module$Map.field
@@ -77,10 +79,10 @@ module.exports = grammar({
77
79
  effect_remove: ($) => /\-[A-Z][a-zA-Z0-9_]*/,
78
80
 
79
81
  // :name
80
- slot_push: ($) => /:[a-z][a-zA-Z0-9_]*/,
82
+ slot_write: ($) => /:[a-z][a-zA-Z0-9_]*/,
81
83
 
82
84
  // ;name
83
- slot_pop: ($) => /;[a-z][a-zA-Z0-9_]*/,
85
+ slot_read: ($) => /;[a-z][a-zA-Z0-9_]*/,
84
86
 
85
87
  // 'raw string literal'
86
88
  raw_string: ($) => /\'[^\']*\'/,
@@ -180,11 +182,12 @@ module.exports = grammar({
180
182
  $.tag_ref,
181
183
  $.module_tag_ref,
182
184
  $.tag_pattern,
185
+ $.module_tag_pattern,
183
186
  $.default_pattern,
184
187
  $.field_ref,
185
188
  $.module_field_ref,
186
- $.slot_push,
187
- $.slot_pop,
189
+ $.slot_write,
190
+ $.slot_read,
188
191
  $.raw_string,
189
192
  $.raw_value,
190
193
  ),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@algosail/tree-sitter",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "description": "Tree-sitter grammar for the Sail language",
5
5
  "main": "bindings/node",
6
6
  "types": "bindings/node",
package/src/grammar.json CHANGED
@@ -101,6 +101,10 @@
101
101
  "type": "PATTERN",
102
102
  "value": "~[A-Z][a-zA-Z0-9_]*#[A-Z][a-zA-Z0-9_]*"
103
103
  },
104
+ "module_tag_pattern": {
105
+ "type": "PATTERN",
106
+ "value": "~[A-Z][a-zA-Z0-9_]*\\_[A-Z][a-zA-Z0-9_]*"
107
+ },
104
108
  "module_map_ref": {
105
109
  "type": "PATTERN",
106
110
  "value": "~[A-Z][a-zA-Z0-9_]*\\$[A-Z][a-zA-Z0-9_]*"
@@ -133,11 +137,11 @@
133
137
  "type": "PATTERN",
134
138
  "value": "\\-[A-Z][a-zA-Z0-9_]*"
135
139
  },
136
- "slot_push": {
140
+ "slot_write": {
137
141
  "type": "PATTERN",
138
142
  "value": ":[a-z][a-zA-Z0-9_]*"
139
143
  },
140
- "slot_pop": {
144
+ "slot_read": {
141
145
  "type": "PATTERN",
142
146
  "value": ";[a-z][a-zA-Z0-9_]*"
143
147
  },
@@ -704,6 +708,10 @@
704
708
  "type": "SYMBOL",
705
709
  "name": "tag_pattern"
706
710
  },
711
+ {
712
+ "type": "SYMBOL",
713
+ "name": "module_tag_pattern"
714
+ },
707
715
  {
708
716
  "type": "SYMBOL",
709
717
  "name": "default_pattern"
@@ -718,11 +726,11 @@
718
726
  },
719
727
  {
720
728
  "type": "SYMBOL",
721
- "name": "slot_push"
729
+ "name": "slot_write"
722
730
  },
723
731
  {
724
732
  "type": "SYMBOL",
725
- "name": "slot_pop"
733
+ "name": "slot_read"
726
734
  },
727
735
  {
728
736
  "type": "SYMBOL",
@@ -279,6 +279,10 @@
279
279
  "type": "module_field_ref",
280
280
  "named": true
281
281
  },
282
+ {
283
+ "type": "module_tag_pattern",
284
+ "named": true
285
+ },
282
286
  {
283
287
  "type": "module_tag_ref",
284
288
  "named": true
@@ -300,11 +304,11 @@
300
304
  "named": true
301
305
  },
302
306
  {
303
- "type": "slot_pop",
307
+ "type": "slot_read",
304
308
  "named": true
305
309
  },
306
310
  {
307
- "type": "slot_push",
311
+ "type": "slot_write",
308
312
  "named": true
309
313
  },
310
314
  {
@@ -589,6 +593,10 @@
589
593
  "type": "module_field_ref",
590
594
  "named": true
591
595
  },
596
+ {
597
+ "type": "module_tag_pattern",
598
+ "named": true
599
+ },
592
600
  {
593
601
  "type": "module_tag_ref",
594
602
  "named": true
@@ -610,11 +618,11 @@
610
618
  "named": true
611
619
  },
612
620
  {
613
- "type": "slot_pop",
621
+ "type": "slot_read",
614
622
  "named": true
615
623
  },
616
624
  {
617
- "type": "slot_push",
625
+ "type": "slot_write",
618
626
  "named": true
619
627
  },
620
628
  {
@@ -711,6 +719,10 @@
711
719
  "type": "module_map_ref",
712
720
  "named": true
713
721
  },
722
+ {
723
+ "type": "module_tag_pattern",
724
+ "named": true
725
+ },
714
726
  {
715
727
  "type": "module_tag_ref",
716
728
  "named": true
@@ -736,11 +748,11 @@
736
748
  "named": true
737
749
  },
738
750
  {
739
- "type": "slot_pop",
751
+ "type": "slot_read",
740
752
  "named": true
741
753
  },
742
754
  {
743
- "type": "slot_push",
755
+ "type": "slot_write",
744
756
  "named": true
745
757
  },
746
758
  {