commit 497cb72ef5a3b92aa2ab28e3e3979fd47db12e95
parent 7721462a2e729f46bd620b449b7ab3a974836477
Author: Andrew Laack <andrew@laack.co>
Date: Thu, 12 Nov 2026 21:49:48 -0600
Init dune project
Diffstat:
9 files changed, 106 insertions(+), 0 deletions(-)
diff --git a/.gitignore b/.gitignore
@@ -0,0 +1,36 @@
+*.annot
+*.cmo
+*.cma
+*.cmi
+*.a
+*.o
+*.cmx
+*.cmxs
+*.cmxa
+
+# Files containing detailed information about the compilation (generated
+# by `ocamlc`/`ocamlopt` when invoked using the option `-bin-annot`).
+# These files are typically useful for code inspection tools
+# (e.g. Merlin).
+*.cmt
+*.cmti
+
+# ocamlbuild and Dune default working directory
+_build/
+
+# ocamlbuild targets
+*.byte
+*.native
+
+# oasis generated files
+setup.data
+setup.log
+
+# Merlin configuring file for Vim and Emacs
+.merlin
+
+# Dune generated files
+*.install
+
+# Local OPAM switch
+_opam/
diff --git a/ojudge/Makefile b/ojudge/Makefile
@@ -0,0 +1,2 @@
+run:
+ dune exec ojudge
diff --git a/ojudge/bin/dune b/ojudge/bin/dune
@@ -0,0 +1,4 @@
+(executable
+ (public_name ojudge)
+ (name main)
+ (libraries ojudge))
diff --git a/ojudge/bin/main.ml b/ojudge/bin/main.ml
@@ -0,0 +1 @@
+let () = print_endline "Hello, World!"
diff --git a/ojudge/dune-project b/ojudge/dune-project
@@ -0,0 +1,26 @@
+(lang dune 3.24)
+
+(name ojudge)
+
+(generate_opam_files true)
+
+(source
+ (github username/reponame))
+
+(authors "Author Name <author@example.com>")
+
+(maintainers "Maintainer Name <maintainer@example.com>")
+
+(license LICENSE)
+
+(documentation https://url/to/documentation)
+
+(package
+ (name ojudge)
+ (synopsis "A short synopsis")
+ (description "A longer description")
+ (depends ocaml)
+ (tags
+ ("add topics" "to describe" your project)))
+
+; See the complete stanza docs at https://dune.readthedocs.io/en/stable/reference/dune-project/index.html
diff --git a/ojudge/lib/dune b/ojudge/lib/dune
@@ -0,0 +1,2 @@
+(library
+ (name ojudge))
diff --git a/ojudge/ojudge.opam b/ojudge/ojudge.opam
@@ -0,0 +1,32 @@
+# This file is generated by dune, edit dune-project instead
+opam-version: "2.0"
+synopsis: "A short synopsis"
+description: "A longer description"
+maintainer: ["Maintainer Name <maintainer@example.com>"]
+authors: ["Author Name <author@example.com>"]
+license: "LICENSE"
+tags: ["add topics" "to describe" "your" "project"]
+homepage: "https://github.com/username/reponame"
+doc: "https://url/to/documentation"
+bug-reports: "https://github.com/username/reponame/issues"
+depends: [
+ "dune" {>= "3.24"}
+ "ocaml"
+ "odoc" {with-doc}
+]
+build: [
+ ["dune" "subst"] {dev}
+ [
+ "dune"
+ "build"
+ "-p"
+ name
+ "-j"
+ jobs
+ "@install"
+ "@runtest" {with-test}
+ "@doc" {with-doc}
+ ]
+]
+dev-repo: "git+https://github.com/username/reponame.git"
+x-maintenance-intent: ["(latest)"]
diff --git a/ojudge/test/dune b/ojudge/test/dune
@@ -0,0 +1,3 @@
+(test
+ (name test_ojudge)
+ (libraries ojudge))
diff --git a/ojudge/test/test_ojudge.ml b/ojudge/test/test_ojudge.ml