From c2f87ff1e6e5676968804cd50b86fc2f0f9ad672 Mon Sep 17 00:00:00 2001 From: Chimrod <> Date: Sat, 7 Oct 2023 12:24:37 +0200 Subject: Made explicit the use of the report in the parser --- lib/syntax/tree.mli | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'lib/syntax/tree.mli') diff --git a/lib/syntax/tree.mli b/lib/syntax/tree.mli index c54a9ff..c16a02a 100644 --- a/lib/syntax/tree.mli +++ b/lib/syntax/tree.mli @@ -7,8 +7,6 @@ (** This module is the result of the evaluation. *) module Ast : sig - type pos = Lexing.position * Lexing.position - type 'a variable = { pos : 'a; name : string; index : 'a expression option } [@@deriving eq, show] (** A variable, used both in an expression (reference) or in a statement @@ -46,6 +44,6 @@ end include S.Analyzer - with type Expression.t = Ast.pos Ast.expression - and type Instruction.repr = Ast.pos Ast.statement - and type Location.repr = Ast.pos * Ast.pos Ast.statement list + with type Expression.t' = S.pos Ast.expression + and type Instruction.t' = S.pos Ast.statement + and type Location.repr = S.pos * S.pos Ast.statement list -- cgit v1.2.3