Base project for the functional programming course
Find a file
2025-12-01 10:21:26 +01:00
.github/workflows ci: change to use latest ubuntu version with ocaml 4.14 2023-11-24 16:40:26 +01:00
.vscode Minor changes to readme and vscode config 2023-11-24 15:22:28 +01:00
graphs Ajout de graphes 2023-11-14 14:54:49 +01:00
src feat: implement Tools module 2025-12-01 10:21:26 +01:00
.gitignore ignore exe 2023-11-13 20:43:58 +01:00
.merlin Add merlin configuration 2019-11-06 13:49:12 +01:00
dune-project Le module Graph contient désormais un type arc. 2023-11-13 18:47:46 +01:00
Makefile Modif essentielle. 2023-11-13 20:47:46 +01:00
README.md Minor changes to readme and vscode config 2023-11-24 15:22:28 +01:00

Base project for Ocaml project on Ford-Fulkerson. This project contains some simple configuration files to facilitate editing Ocaml in VSCode.

To use, you should install the OCaml Platform extension in VSCode. Then open VSCode in the root directory of this repository (command line: code path/to/ocaml-maxflow-project).

Features :

  • full compilation as VSCode build task (Ctrl+Shift+b)
  • highlights of compilation errors as you type
  • code completion
  • view of variable types

A Makefile provides some useful commands:

  • make build to compile. This creates an ftest.exe executable
  • make demo to run the ftest program with some arguments
  • make format to indent the entire project
  • make edit to open the project in VSCode
  • make clean to remove build artifacts

In case of trouble with the VSCode extension (e.g. the project does not build, there are strange mistakes), a common workaround is to (1) close vscode, (2) make clean, (3) make build and (4) reopen vscode (make edit).