aboutsummaryrefslogtreecommitdiffstats
path: root/lib/vcl
diff options
context:
space:
mode:
authorMarcos Magueta <maguetamarcos@gmail.com>2026-06-23 23:53:26 -0300
committerGitHub <noreply@github.com>2026-06-23 23:53:26 -0300
commitc284fcd570342c31bc21169960579a20a763e32e (patch)
treece7485055116d794c55090ad0978e0b3f5ff4c2a /lib/vcl
parentb81586ee4a0543a5f9866586c78dccdd6328934a (diff)
downloadSakura-c284fcd570342c31bc21169960579a20a763e32e.tar.gz
Sakura-c284fcd570342c31bc21169960579a20a763e32e.zip
Format
Diffstat (limited to 'lib/vcl')
-rw-r--r--lib/vcl/executor.ml4
-rw-r--r--lib/vcl/sublanguage.ml9
2 files changed, 6 insertions, 7 deletions
diff --git a/lib/vcl/executor.ml b/lib/vcl/executor.ml
index 4ac5eff..ff95583 100644
--- a/lib/vcl/executor.ml
+++ b/lib/vcl/executor.ml
@@ -3,9 +3,7 @@ module Make (NT : Nt.S) = struct
(Sublanguage_types.result, Condition.t) result =
match stmt with
| Ast.Use branch_name ->
- Result.map
- (fun delta -> Sublanguage_types.Transition delta)
- (ctx.switch_branch branch_name)
+ Result.map (fun delta -> Sublanguage_types.Transition delta) (ctx.switch_branch branch_name)
let _ = (module NT : Nt.S)
end
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