aboutsummaryrefslogtreecommitdiff
path: root/lib/data_types/types.ml
diff options
context:
space:
mode:
authorSébastien Dailly <sebastien@dailly.me>2024-03-14 08:26:58 +0100
committerSébastien Dailly <sebastien@dailly.me>2024-03-14 08:26:58 +0100
commit6b377719c10d5ab3343fd5221f99a4a21008e25a (patch)
treea7c1e9a820d339a2f161af3e09cf9e3161286796 /lib/data_types/types.ml
Initial commitmain
Diffstat (limited to 'lib/data_types/types.ml')
-rw-r--r--lib/data_types/types.ml15
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/data_types/types.ml b/lib/data_types/types.ml
new file mode 100644
index 0000000..37fd90f
--- /dev/null
+++ b/lib/data_types/types.ml
@@ -0,0 +1,15 @@
+type t =
+ | Number
+ | String
+ | Bool
+ | None
+ | Extern
+ | Float
+
+let string_of_t : t -> string = function
+ | Number -> "Number"
+ | String -> "String"
+ | Bool -> "Bool"
+ | None -> "None"
+ | Extern -> "Extern"
+ | Float -> "Float"