From c284fcd570342c31bc21169960579a20a763e32e Mon Sep 17 00:00:00 2001 From: Marcos Magueta Date: Tue, 23 Jun 2026 23:53:26 -0300 Subject: Format --- lib/prl/parser.ml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'lib/prl/parser.ml') diff --git a/lib/prl/parser.ml b/lib/prl/parser.ml index 2567eea..e009b97 100644 --- a/lib/prl/parser.ml +++ b/lib/prl/parser.ml @@ -1,12 +1,11 @@ module Error = struct open Condition + let parse_error msg = condition "parse-error" msg empty end let of_sexp sexp = - let sexp = - match sexp with Sexplib.Sexp.List [ atom ] -> atom | other -> other - in + let sexp = match sexp with Sexplib.Sexp.List [atom] -> atom | other -> other in match Ast.statement_of_sexp sexp with | stmt -> Ok stmt | exception exn -> Error (Error.parse_error (Printexc.to_string exn)) -- cgit v1.2.3