Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

4.2 Prelude Processing

Before tokenization, leading prelude directives are processed:

  1. Parse the leading prelude at the beginning of the file
  2. Check any $supported_targets declaration against the selected compile target
  3. Evaluate narrow if $target ... blocks and skip inactive block bodies
  4. Emit any active $warning or $error diagnostics
  5. For each active import, recursively process the imported file
  6. Prepend imported content to the main source
  7. Remove prelude directives from the source being compiled
  8. Track imported files to prevent duplicate inclusion