commit 1561720e5f89c6aa10dd1d358aa727cf497828c4 Author: Owen Date: Thu May 28 09:16:15 2026 +0200 initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d261bfa --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +_build/ +.idea/ diff --git a/bin/dune b/bin/dune new file mode 100644 index 0000000..927ecae --- /dev/null +++ b/bin/dune @@ -0,0 +1,4 @@ +(executable + (public_name pgn_to_tex) + (name main) + (libraries pgn_to_tex)) diff --git a/bin/main.ml b/bin/main.ml new file mode 100644 index 0000000..7bf6048 --- /dev/null +++ b/bin/main.ml @@ -0,0 +1 @@ +let () = print_endline "Hello, World!" diff --git a/dune-project b/dune-project new file mode 100644 index 0000000..243cf0e --- /dev/null +++ b/dune-project @@ -0,0 +1,41 @@ +(lang dune 3.21) + +(name pgn_to_tex) + +(generate_opam_files true) + +(source + (github therealowenrees/pgn_to_tex)) + +(authors "Owen Rees ") + +(maintainers "Owen Rees ") + +(license AGPLv3) + +(documentation https://url/to/documentation) + +(package + (name pgn_to_tex) + (synopsis "A chess PGN to TeX conversion tool") + (description + "Convert PGN files to LaTeX markdown, including rendered images of selected positions") + (depends + (ocaml + (>= 5.4)) + (sedlex + (>= 3.7)) + (menhir + (>= 20260209)) + (yojson + (>= 3.0)) + (ounit2 + (and + :with-test + (>= 2.2.7))) + ("ocamlformat" + (and :with-dev-setup))) + (tags + ("pgn" "latex" "chess" "parser"))) + +; See the complete stanza docs at https://dune.readthedocs.io/en/stable/reference/dune-project/index.html diff --git a/lib/dune b/lib/dune new file mode 100644 index 0000000..46be8db --- /dev/null +++ b/lib/dune @@ -0,0 +1,2 @@ +(library + (name pgn_to_tex)) diff --git a/pgn_to_tex.opam b/pgn_to_tex.opam new file mode 100644 index 0000000..3ab1729 --- /dev/null +++ b/pgn_to_tex.opam @@ -0,0 +1,38 @@ +# This file is generated by dune, edit dune-project instead +opam-version: "2.0" +synopsis: "A chess PGN to TeX conversion tool" +description: + "Convert PGN files to LaTeX markdown, including rendered images of selected positions" +maintainer: ["Owen Rees "] +authors: ["Owen Rees "] +license: "AGPLv3" +tags: ["pgn" "latex" "chess" "parser"] +homepage: "https://github.com/therealowenrees/pgn_to_tex" +doc: "https://url/to/documentation" +bug-reports: "https://github.com/therealowenrees/pgn_to_tex/issues" +depends: [ + "dune" {>= "3.21"} + "ocaml" {>= "5.4"} + "sedlex" {>= "3.7"} + "menhir" {>= "20260209"} + "yojson" {>= "3.0"} + "ounit2" {with-test & >= "2.2.7"} + "ocamlformat" {with-dev-setup} + "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/therealowenrees/pgn_to_tex.git" +x-maintenance-intent: ["(latest)"] diff --git a/test/dune b/test/dune new file mode 100644 index 0000000..d4e693b --- /dev/null +++ b/test/dune @@ -0,0 +1,3 @@ +(test + (name test_pgn_to_tex) + (libraries pgn_to_tex)) diff --git a/test/test_pgn_to_tex.ml b/test/test_pgn_to_tex.ml new file mode 100644 index 0000000..e69de29