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

Relative module names

The first, and arguably simplest form, is the Relative name. It is characterized by not having a dollar sign ($) in front of the first element, unlike the other two forms.

Relative module paths form a sequence of one or more elements, which are the names between the dots (.).

Each element before the last is viewed as a directory. The last element is the file name, appended with either .rapt for FROM instructions, or .rinc for INCLUDE instructions.

In other words, a.b.c.d becomes a/b/c/d.rapt (FROM) or a/b/c/d.rinc (INCLUDE).

Examples:

StatementSource fileResulting path
FROM basetarget.raptbase.rapt
FROM baselib/target.raptlib/base.rapt
FROM utils.baselib/target.raptlib/utils/base.rapt
INCLUDE babelfishlib/target.raptlib/babelfish.rinc
INCLUDE hitchhiker.guidelib/target.raptlib/hitchhiker/guide.rinc