Browse Source

Handle the for…end syntax

Chimrod 5 months ago
parent
commit
0093711dff
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 ->
     T.assignation_operator ->
     expression ->
     expression ->
     t
     t
+
+  val for_ :
+    pos ->
+    (pos, expression) variable ->
+    start:expression ->
+    to_:expression ->
+    step:expression option ->
+    t list ->
+    t
 end
 end
 
 
 module type Location = sig
 module type Location = sig