pub fn load_modules(
entry_file: &Path,
search_paths: Vec<PathBuf>,
) -> Result<ModuleResolver, ModuleError>Expand description
Load and validate modules for a source file.
This function:
- Determines the module path from the entry file name
- Loads the entry module and all its dependencies
- Validates imports (checks for conflicts, private predicates, etc.)
§Arguments
entry_file- Path to the main .xlog filesearch_paths- Additional directories to search for modules
§Returns
The loaded module resolver with all dependencies resolved, or an error if module resolution fails.