aboutsummaryrefslogtreecommitdiff
path: root/lib/syntax/dead_end.ml
diff options
context:
space:
mode:
authorChimrod <>2023-10-07 12:24:37 +0200
committerChimrod <>2023-10-18 09:49:47 +0200
commitc2f87ff1e6e5676968804cd50b86fc2f0f9ad672 (patch)
treeab0770cc70bbe6ed26606200110cc503390ac420 /lib/syntax/dead_end.ml
parenta70c88bd727c7938c3d8d1355bf5474546d7d72e (diff)
Made explicit the use of the report in the parser
Diffstat (limited to 'lib/syntax/dead_end.ml')
-rw-r--r--lib/syntax/dead_end.ml10
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/syntax/dead_end.ml b/lib/syntax/dead_end.ml
index 78eadda..bb78263 100644
--- a/lib/syntax/dead_end.ml
+++ b/lib/syntax/dead_end.ml
@@ -6,9 +6,8 @@ type ('a, 'b) variable = { pos : 'a; name : string; index : 'b option }
module Expression = Default.Expression
module Instruction = struct
+ type expression = Default.Expression.t' S.repr
type repr = unit
- type expression = Expression.repr
- type variable = Expression.variable
(** Call for an instruction like [GT] or [*CLR] *)
let call : pos -> string -> expression list -> repr = fun _ _ _ -> ()
@@ -35,7 +34,12 @@ module Instruction = struct
ignore label;
()
- let assign : pos -> variable -> T.assignation_operator -> expression -> repr =
+ let assign :
+ pos ->
+ (S.pos, expression) S.variable ->
+ T.assignation_operator ->
+ expression ->
+ repr =
fun _ _ _ _ -> ()
end