diff options
author | Chimrod <> | 2024-03-27 15:50:56 +0100 |
---|---|---|
committer | Chimrod <> | 2024-03-27 15:50:56 +0100 |
commit | 246d3c93e6c628e333c047e225edd284ed156ecb (patch) | |
tree | b0e017132fdf587b83269441d1c54b2446cf0c02 /lib/syntax/tree.mli | |
parent | 14504f36b603984c14b05995a8928cbd40dfa670 (diff) | |
parent | baa258ac91df8a80209b322e8d42c5deb2ada536 (diff) |
Added the check (I should have had order my commit betters)
Diffstat (limited to 'lib/syntax/tree.mli')
-rw-r--r-- | lib/syntax/tree.mli | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/syntax/tree.mli b/lib/syntax/tree.mli index 8ce577e..9ed442b 100644 --- a/lib/syntax/tree.mli +++ b/lib/syntax/tree.mli @@ -43,9 +43,18 @@ module Ast : sig [@@deriving eq, show] end +(** Extend the default Expression module with an eq operator *) +module Expression : sig + include S.Expression with type t' = S.pos Ast.expression + + val eq : (S.pos -> S.pos -> bool) -> t' -> t' -> bool + val hash : (S.pos -> int) -> t' -> int + val exists : f:(t' -> bool) -> t' -> bool +end + include S.Analyzer - with type Expression.t' = S.pos Ast.expression + with module Expression := Expression and type Instruction.t' = S.pos Ast.statement and type Location.t = S.pos * S.pos Ast.statement list and type context = unit |