aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChimrod <>2024-12-09 10:38:12 +0100
committerChimrod <>2024-12-09 10:38:12 +0100
commitcd25e70d1623ac5bd50be1ca2b30db793063c1cc (patch)
treea72094d235c42c5c4f2099ebe4cedd35be6aff40 /lib
parent65164f2ebe61a566d96119c2cde23eee6771007b (diff)
Added documentation
Diffstat (limited to 'lib')
-rw-r--r--lib/checks/get_type.ml7
-rw-r--r--lib/checks/nested_strings.mli2
2 files changed, 8 insertions, 1 deletions
diff --git a/lib/checks/get_type.ml b/lib/checks/get_type.ml
index b34dc17..a73eb1b 100644
--- a/lib/checks/get_type.ml
+++ b/lib/checks/get_type.ml
@@ -1,3 +1,8 @@
+(** This module extract the type for an expression.
+
+ The module does not check anything, but is intended to be composed in
+ another one check. *)
+
open StdLabels
module S = Qsp_syntax.S
module T = Qsp_syntax.T
@@ -5,7 +10,7 @@ module Report = Qsp_syntax.Report
type type_of =
| Integer (** A numeric value *)
- | Bool (** A boolean, not a real type *)
+ | Bool (** A boolean, not a real type *)
| String (** String value *)
| NumericString
[@printer fun fmt _ -> Format.pp_print_string fmt "Integer as String"]
diff --git a/lib/checks/nested_strings.mli b/lib/checks/nested_strings.mli
index 6446c67..1ef2e33 100644
--- a/lib/checks/nested_strings.mli
+++ b/lib/checks/nested_strings.mli
@@ -1 +1,3 @@
include Qsp_syntax.S.Analyzer
+(** The module [Nested_strings] report errors for each unnecessary raw string
+ encoded inside a string expression *)