Anvil | Smiths Smiths | Register Register | Login Login |
Search:
Show links Show tools Show tree | Previous document Next document | njet.org > Anvil > Documentation > Language reference > Expressions > Primaries > Import expression

Import expression

Import evalutes an expression, converts it to a string and treats that as a path to a script. A path can be absolute, starting from a zone's container, or relative to the current script.

An import operation might generate errors, which are signaled by throwing an exception. Printing this exception produces a human-readable list of (parsing) errors.

Ab import script is returned as anvil.runtime.Scope.

  import-expr := import "(" exprpath ")" 
See also  | Primaries  | Grammar
Contributes notes:
Add a note
What's new | Anvil