diff options
| author | Marcos Magueta <maguetamarcos@gmail.com> | 2026-06-23 23:53:26 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-06-23 23:53:26 -0300 |
| commit | c284fcd570342c31bc21169960579a20a763e32e (patch) | |
| tree | ce7485055116d794c55090ad0978e0b3f5ff4c2a /lib/prl/parser.ml | |
| parent | b81586ee4a0543a5f9866586c78dccdd6328934a (diff) | |
| download | Sakura-c284fcd570342c31bc21169960579a20a763e32e.tar.gz Sakura-c284fcd570342c31bc21169960579a20a763e32e.zip | |
Format
Diffstat (limited to '')
| -rw-r--r-- | lib/prl/parser.ml | 5 |
1 files changed, 2 insertions, 3 deletions
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)) |
