Skip to content

Tutorial: write a script in Coq

Guillaume Claret edited this page Mar 4, 2015 · 5 revisions

We will explain how to write scripts in Coq with the example of repos2web, a website generator. This generator parses an OPAM repository with Coq packages (for example, the repo-stable) and generates an HTML page (see the repo-stable page).

Get started

We first create an empty Coq project. Add the following files in a new directory:

  • configure.sh:

    #!/bin/sh

    coq_makefile -f Make -o Makefile

  • Make:

    -R src Repos2Web

    src/Main.v

  • src/Main.v:

    ...

Clone this wiki locally