Creating your first Catala program

Now that you have installed the Catala tooling, you can test its correct execution with the equivalent of a Hello, world! program.

Catala programs are just text files that can be handled by any text editor/IDE. Hence, to kickstart your Catala development, we recommend you open your favorite text editor.

Text editor/IDE support

The Catala maintenance team currently only provides full support for the VSCode text editor (syntax highlighting, language server, formatter).

However the Catala community has written a number of plugins for other text editors and IDEs, whose maintenance is performed on a best-effort basis. Please contribute if you add support to your favorite text editor!

In your text editor/IDE, create a new folder for your Catala developments (for instance named catala) and inside it an empty text file (for instance named tutorial.catala_en).

Writing some specifications into a Catala file

Literate programming in Catala

Catala uses the paradigm of literate programming,

Writing your first Catala code block

Typechecking and running the Catala program