From 320954996e921d7b34eb61f462799b5c6ab8ee09 Mon Sep 17 00:00:00 2001 From: Marcos Magueta Date: Sat, 26 Sep 2026 22:09:11 -0300 Subject: new shrunk API for RNT on sakura --- lib/drl/parser.ml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 lib/drl/parser.ml (limited to 'lib/drl/parser.ml') diff --git a/lib/drl/parser.ml b/lib/drl/parser.ml new file mode 100644 index 0000000..f7d4512 --- /dev/null +++ b/lib/drl/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.query_of_sexp sexp with + | q -> Ok q + | exception exn -> Error (Error.parse_error (Printexc.to_string exn)) -- cgit v1.2.3