Skip to content

destroyhimmyrobots/librarian

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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]

About

Library loader & collection for the k programming language.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published