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/vcl/sublanguage.ml | |
| parent | b81586ee4a0543a5f9866586c78dccdd6328934a (diff) | |
| download | Sakura-c284fcd570342c31bc21169960579a20a763e32e.tar.gz Sakura-c284fcd570342c31bc21169960579a20a763e32e.zip | |
Format
Diffstat (limited to '')
| -rw-r--r-- | lib/vcl/sublanguage.ml | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/vcl/sublanguage.ml b/lib/vcl/sublanguage.ml index 4319eb8..437c93b 100644 --- a/lib/vcl/sublanguage.ml +++ b/lib/vcl/sublanguage.ml @@ -1,7 +1,9 @@ module Make (NT : Nt.S) = struct module Error = struct open Condition - let unrecognized_command expr = condition "unrecognized-command" "Unrecognized command" ("expression" |=| (of_sexp expr)) + + let unrecognized_command expr = + condition "unrecognized-command" "Unrecognized command" ("expression" |=| of_sexp expr) end module Exec = Executor.Make (NT) @@ -13,9 +15,8 @@ module Make (NT : Nt.S) = struct let parse _ = Ok () let parse_sexp = function - | Sexplib.Sexp.(List [ Atom "use"; Atom branch ]) -> Ok (Ast.Use branch) - | sexp -> - Error (Error.unrecognized_command sexp) + | Sexplib.Sexp.(List [Atom "use"; Atom branch]) -> Ok (Ast.Use branch) + | sexp -> Error (Error.unrecognized_command sexp) let execute = Exec.execute end |
