最短経路検索をDuneを使って書き直してみる(書きかけ)
#OCaml
code:sh
cd ~/src
dune init project metro
cd metro
メモ
DuneでHello World
#OCaml #Dune
以下を参考にDuneでHello Worldしてみる。
https://ocaml.org/docs/up-and-running
code:sh
$ cd ~/src
$ dune init project helloworld
$ cd helloworld
$ dune build
$ dune exec helloworld
Hello, World!
$
各種ファイル
実行ファイルの本体
dune exec helloworld を実行した場合、以下の実行ファイルが呼び出されている。
_build/install/default/bin/helloworld
コードのフォーマット
.ocamlformat ファイルが存在すれば、dune fmt コマンドでコードを整形できる。
code:sh
$ touch .ocamlformat
$ dune fmt