Skip to main content

Module load

Module load 

Source
Expand description

Combined file loading, lexing, and parsing for multiple modules.

Re-exports§

pub use lex::Lexer;
pub use parse::Parser;

Modules§

lex
Lexing.
parse
Parsing.

Structs§

File
Contents C and path P of a (module) file.
Import
Information to resolve module/data imports.
Loader
Combined file loader, lexer, and parser for multiple modules.
Module
Module containing strings S and a body B.
Modules
Tree of modules containing definitions, and a main module.

Enums§

Error
Error occurring during loading of a single module.

Functions§

import
Apply function to path of every imported data file, accumulating errors.
parse
Lex a string and parse resulting tokens, returning None if any error occurred.
span
Return the span of a string slice part relative to a string slice whole.

Type Aliases§

Arena
Storage for loaded modules.
Errors
Errors occurring during loading of multiple modules.