diff options
Diffstat (limited to '2025/ocaml/lib')
| -rw-r--r-- | 2025/ocaml/lib/application/d02p01.ml | 1 | ||||
| -rw-r--r-- | 2025/ocaml/lib/application/d02p01.mli | 4 | ||||
| -rw-r--r-- | 2025/ocaml/lib/presentation/cli.ml | 4 |
3 files changed, 9 insertions, 0 deletions
diff --git a/2025/ocaml/lib/application/d02p01.ml b/2025/ocaml/lib/application/d02p01.ml new file mode 100644 index 0000000..a40bd17 --- /dev/null +++ b/2025/ocaml/lib/application/d02p01.ml @@ -0,0 +1 @@ +let solve input () = failwith "not implemented" diff --git a/2025/ocaml/lib/application/d02p01.mli b/2025/ocaml/lib/application/d02p01.mli new file mode 100644 index 0000000..27f85d4 --- /dev/null +++ b/2025/ocaml/lib/application/d02p01.mli @@ -0,0 +1,4 @@ +val solve : string -> unit -> int +(** [solve input ()] is the solution for the first part of the second day of advent of code 2025 for [input]. + The solution for an empty input is 0. + Requires: [input] to be a string. *) diff --git a/2025/ocaml/lib/presentation/cli.ml b/2025/ocaml/lib/presentation/cli.ml index 184de09..df0263a 100644 --- a/2025/ocaml/lib/presentation/cli.ml +++ b/2025/ocaml/lib/presentation/cli.ml @@ -9,6 +9,10 @@ let run_day = function run_solver "D01P01" Application.D01p01.solve filepath ; run_solver "D01P02" Application.D01p02.solve filepath ; 0 + | 2 -> + let filepath = "../_input/day_01.txt" in + run_solver "D02P01" Application.D02p01.solve filepath ; + 0 | _ -> failwith "day not implemented" |
