import
statements allow for functionality to be modularized and shared across multiple languages.
To differentiate between built-in modules and user-defined modules, the syntax uses different forms:
- Built-in modules are imported using wordsLoading... (unquoted identifiers):
import * from whitespace;
import * from json;
- User-defined modules are imported using string paths:
import * from "./my-language.well";
This distinction helps both the parser and the user recognize whether a module is a standard part of the system or a custom file.