Browse Source

Handle the for…end syntax

Chimrod 5 months ago
parent
commit
73ce7caccb
1 changed files with 9 additions and 0 deletions
  1. 9 0
      lib/syntax/S.ml

+ 9 - 0
lib/syntax/S.ml

@@ -90,6 +90,15 @@ module type Instruction = sig
     T.assignation_operator ->
     expression ->
     t
+
+  val for_ :
+    pos ->
+    (pos, expression) variable ->
+    start:expression ->
+    to_:expression ->
+    step:expression option ->
+    t list ->
+    t
 end
 
 module type Location = sig