std/jule/mod
Index
fn ParseFile(path: str): (&Mod, []log::Log)
fn IsName(name: str): bool
type ID
struct Mod
fn Equal(&self, other: &Mod): bool
ParseFile
jule
fn ParseFile(path: str): (&Mod, []log::Log)
Parse module from the module file path.
IsName
jule
fn IsName(name: str): bool
Reports whether the name is valid to become module name.
ID
jule
type ID: int
A module identity.
Mod
jule
struct Mod {
ID: ID // Unique identity of the module.
Name: str // Name of the module.
Path: str // Path of the module. File is not included.
}
A module.
Equal
jule
fn Equal(&self, other: &Mod): bool
Reports whether the mods are same module directory. Reports true if self and other is nil.