From d7a13b0e5d6e746993e67a291376bd79766e0ed1 Mon Sep 17 00:00:00 2001 From: Chimrod <> Date: Sat, 3 Feb 2024 17:42:16 +0100 Subject: Added a new check to ensure that every call to another location points to an existing one --- lib/syntax/S.ml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'lib/syntax/S.ml') diff --git a/lib/syntax/S.ml b/lib/syntax/S.ml index 583249e..e691b38 100644 --- a/lib/syntax/S.ml +++ b/lib/syntax/S.ml @@ -113,6 +113,8 @@ module type Analyzer = sig val active : bool ref (** Is the test active or not *) + val is_global : bool + type context (** Context used to keep information during the whole test *) @@ -120,10 +122,12 @@ module type Analyzer = sig (** Initialize the context before starting to parse the content *) module Expression : Expression - module Instruction : Instruction with type expression = Expression.t' + module Instruction : Instruction with type expression := Expression.t' module Location : - Location with type instruction = Instruction.t' and type context := context + Location with type instruction := Instruction.t' and type context := context + + val finalize : context -> (string * Report.t) list end (** Helper module used in order to convert elements from the differents -- cgit v1.2.3