A Tour of Morfa

A Tour of Morfa

by the Morfa Team

This book is written in the gitbook format (https://github.com/GitbookIO/gitbook).

In this tutorial we will be working with command line morfa tools in a Linux environment. Interactions with the shell will be typeset like this:

$ morfai -run hello.morfa
Hello World!

How to use the code in this book

Code snippets may be put in a .morfa file—one per chapter—and run with morfai:

$ morfai -unit-tests -run code/control_flow.morfa

The argument -unit-tests ensures that the code inside unittest { ... } blocks will be executed.