From 54cd9839a08d3fee7e4521541c9381fac3f0d358 Mon Sep 17 00:00:00 2001 From: Marcos Magueta Date: Sat, 26 Sep 2026 23:01:54 -0300 Subject: dummy dml for testing --- lib/dml/parser.ml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 lib/dml/parser.ml (limited to 'lib/dml/parser.ml') diff --git a/lib/dml/parser.ml b/lib/dml/parser.ml new file mode 100644 index 0000000..e381365 --- /dev/null +++ b/lib/dml/parser.ml @@ -0,0 +1,10 @@ +module Error = struct + open Condition + + let parse_error msg = condition "parse-error" msg empty +end + +let of_sexp sexp = + match Ast.statement_of_sexp sexp with + | statement -> Ok statement + | exception exn -> Error (Error.parse_error (Printexc.to_string exn)) -- cgit v1.2.3