Orb Programming Language

Import

Used to import definitions from a source file into the current project.

import file<String>

Switches compiler context to process nodes in the file file. Once finished, returns to this file to process proceeding nodes.

file must be an evaluated value.

This instruction must be at the top of parsing - it must not be nested within other instructions.

If the file was already processed, will not process it again. Importing must not cause a cyclical dependency between source files.

Imported definitions persist for the entire compilation of the program (even in other source files).

import "base.orb";