Skip to main content

Module dependencies

Module dependencies 

Source
Expand description

Dependency Scanner for the Hyperlink Module System.

Scans the “Abstract” (first paragraph) of a LOGOS document for Markdown links, which are interpreted as module dependencies.

Syntax: [Alias](URI) where:

  • Alias: The name to reference the module by (e.g., “Geometry”)
  • URI: The location of the module source (e.g., “file:./geo.md”, “logos:std”)

Structs§

Dependency
A dependency declaration found in the document’s abstract.
SelectedName
One name selected by a per-name import (Import double as dbl from Util.).

Functions§

first_section_header
A file’s first ## section header outside a ``` fence, as its 1-based line and its text: the line above which an Import must stand to import anything.
misplaced_imports
Every Import sentence below a file’s first ## header, each with its byte span. That is where scan_dependencies does not read, so such a sentence imports nothing: the module is never spliced and the program runs on without it. A caller refuses each at its own line. A line inside a
scan_dependencies
Scans the first paragraph (Abstract) of a LOGOS file for [Alias](URI) links.