commit 2c1ce8d70f5b03689fa270f9f90738bbaab886e4 Author: Lucàs <86352901+LucasVbr@users.noreply.github.com> Date: Mon Jul 1 13:52:48 2024 +0200 Setup dune project diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2c26c86 --- /dev/null +++ b/.gitignore @@ -0,0 +1,10 @@ +# IDE folders +.idea/ +.vscode/ +.fleet/ + +# Build folder +_build/ + +# Mac OS +.DS_Store diff --git a/README.md b/README.md new file mode 100644 index 0000000..41e54cb --- /dev/null +++ b/README.md @@ -0,0 +1,45 @@ +

Welcome to Croissant 👋

+

+ Version + + License: MIT + +

+ +> Custom programming language in french + +## Install + +This project uses [Dune](https://dune.build/) as a build system. You can install it with the following command: + +```sh +opam install dune +``` + +## Usage + +Run the following commands to build and run the project: + +```sh +dune build +dune exec croissant +``` + +## Run tests + +```sh +dune test +``` + +## Author(s) 👤 + +- **[@LucasVbr](https://github.com/LucasVbr)** + +## Show your support + +Give a ⭐️ if this project helped you! + +## 📝 License + +Copyright © 2024 [LucasVbr](https://github.com/LucasVbr).
+This project is [MIT](LICENCE) licensed. \ No newline at end of file diff --git a/bin/dune b/bin/dune new file mode 100644 index 0000000..1fc34ed --- /dev/null +++ b/bin/dune @@ -0,0 +1,4 @@ +(executable + (public_name croissant) + (name main) + (libraries croissant)) 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/croissant.opam b/croissant.opam new file mode 100644 index 0000000..e69de29 diff --git a/dune-project b/dune-project new file mode 100644 index 0000000..fffb0c1 --- /dev/null +++ b/dune-project @@ -0,0 +1,26 @@ +(lang dune 3.10) + +(name croissant) + +(generate_opam_files true) + +(source + (github username/reponame)) + +(authors "Author Name") + +(maintainers "Maintainer Name") + +(license LICENSE) + +(documentation https://url/to/documentation) + +(package + (name croissant) + (synopsis "A short synopsis") + (description "A longer description") + (depends ocaml dune) + (tags + (topics "to describe" your project))) + +; See the complete stanza docs at https://dune.readthedocs.io/en/stable/dune-files.html#dune-project diff --git a/lib/dune b/lib/dune new file mode 100644 index 0000000..130ec86 --- /dev/null +++ b/lib/dune @@ -0,0 +1,2 @@ +(library + (name croissant)) diff --git a/test/croissant.ml b/test/croissant.ml new file mode 100644 index 0000000..e69de29 diff --git a/test/dune b/test/dune new file mode 100644 index 0000000..075a202 --- /dev/null +++ b/test/dune @@ -0,0 +1,2 @@ +(test + (name croissant))