The AlfCompiler class provides the basic interface for compiling Alf code. The processing of a single piece of Alf text is called a compilation, which takes place in two steps:

  1. Parsing (including constraint checking)
  2. Mapping

The API allows you to carry out these steps individually (which is useful if, for example, you wish to parse but not map some code) or using a single call.