Dépôt du be Ocaml 4IR
Find a file
2020-11-12 14:02:44 +01:00
.github/workflows use provided base project 2020-11-03 16:06:32 +01:00
.vscode use provided base project 2020-11-03 16:06:32 +01:00
graphs use provided base project 2020-11-03 16:06:32 +01:00
src add tools module tests 2020-11-12 14:02:44 +01:00
.gitignore use provided base project 2020-11-03 16:06:32 +01:00
.merlin use provided base project 2020-11-03 16:06:32 +01:00
_tags use provided base project 2020-11-03 16:06:32 +01:00
Makefile use vscodium instead of vscode 2020-11-03 16:47:25 +01:00
outfile.svg add tools functons 2020-11-04 12:08:22 +01:00
README.md use provided base project 2020-11-03 16:06:32 +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 extension in VSCode. Other extensions might work as well but make sure there is only one installed. 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
  • automatic indentation on file save

A makefile provides some useful commands:

  • make build to compile. This creates an ftest.native 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).