Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 547 Bytes

README.md

File metadata and controls

19 lines (14 loc) · 547 Bytes

librarian.k: Library loader for the K3 language.

Usage: $ nano ~/prgm/k/hellolibrarian.k

    \l librarian
    .librarian[`freadline]
    file:"file.txt"
    `0: freadline[`getLine] f
    freadline[`close] f
    \\

Remarks:

  1. Put libraries under lib/.

  2. Libraries are loaded into handles. They are therefore accesible only by lib[`ele] notation. Dot notation (lib.ele) is not valid.

  3. Library locations mimic the k-tree. To load a nested library lib/a/b/...c/L.k, write

    .librarian[``a.b...c.L,``local_dir_name]