Documentation
¶
Overview ¶
Package loader reads the source files of a program together with the modules they use ("use name;"), directly or through other modules.
Index ¶
Constants ¶
const ( Ext = ".kkl" CompiledExt = ".kkc" )
Ext is the extension of Kukel source files, CompiledExt of bytecode files (a module compiled on its own, kukel build -module).
Variables ¶
This section is empty.
Functions ¶
func Load ¶
Load parses the program's files and every module they use, and returns them in compile order: each module before the files that use it, then the program's files in the order given.
Module name is a module written in Go (package native) if one is registered under that name; else a standard module written in Kukel (package stdlib) if there is one; else the file name.kkl, looked up first in the directory of the file that uses it, then in the directories of path (KUKEL_PATH); in each directory, name.kkc (compiled on its own) if there is no name.kkl. A name stands for one file in the whole program; modules may not use each other in a cycle.
func LoadWith ¶
LoadWith is Load for a program limited by config: the modules written in Go it may use, and where (and whether) it finds modules written in Kukel.
Types ¶
This section is empty.