diff options
Diffstat (limited to 'alv')
| -rw-r--r-- | alv/builtin.moon | 10 | ||||
| -rw-r--r-- | alv/config.ld | 4 | ||||
| -rw-r--r-- | alv/extensions.md | 6 |
3 files changed, 10 insertions, 10 deletions
diff --git a/alv/builtin.moon b/alv/builtin.moon index 23412bf..98b4198 100644 --- a/alv/builtin.moon +++ b/alv/builtin.moon @@ -98,7 +98,7 @@ require_ = ValueStream.meta name = result\const! L\trace @, "loading module #{name}" - scope = ValueStream.wrap require "lib.#{name\unwrap 'str'}" + scope = ValueStream.wrap require "alv-lib.#{name\unwrap 'str'}" Result :value import_ = ValueStream.meta @@ -117,8 +117,8 @@ current scope." for child in *tail name = (child\quote scope)\unwrap 'sym' - value = ValueStream.wrap require "lib.#{name}" - scope\set name, Result :value -- (require "lib.#{name})\unwrap 'scope' + value = ValueStream.wrap require "alv-lib.#{name}" + scope\set name, Result :value Result! import_star = ValueStream.meta @@ -137,8 +137,8 @@ Requires modules `sym1`, `sym2`, … and merges them into the current scope." for child in *tail name = (child\quote scope)\unwrap 'sym' - value = ValueStream.wrap require "lib.#{name}" - scope\use value\unwrap 'scope' -- (require "lib.#{name}")\unwrap 'scope' + value = ValueStream.wrap require "alv-lib.#{name}" + scope\use value\unwrap 'scope' Result! diff --git a/alv/config.ld b/alv/config.ld index 01160f8..6867a56 100644 --- a/alv/config.ld +++ b/alv/config.ld @@ -1,5 +1,5 @@ -project = 'alive internals' title = 'developer docs' +project = 'alive internals' description = "`alive` developer documentation" full_description = [[This section documents the *implementation* of the alive @@ -12,5 +12,5 @@ If you are looking for the language reference for users, head over to the format = 'discount' style = 'docs' template = 'docs' -topics={'alv/extensions.md'} dir = 'docs/internals' +topics = {'alv/extensions.md'} diff --git a/alv/extensions.md b/alv/extensions.md index 82a4d10..89d1a89 100644 --- a/alv/extensions.md +++ b/alv/extensions.md @@ -2,9 +2,9 @@ Extensions for `alive` are implemented in [Lua][lua] or [MoonScript][moonscript] (which runs as Lua). When an `alive` module is [`(require)`][builtins-req]d, -alive looks for a Lua module `lib.[module]`. You can simply add a new file with -extension `.lua` or `.moon` in the `lib` directory of your alive installation or -somewhere else in your `LUA_PATH`. +alive looks for a Lua module `alv-lib.[module]`. You can simply add a new file +with extension `.lua` or `.moon` in the `alv-lib` directory of your alive +installation or somewhere else in your `LUA_PATH`. To write extensions, a number of classes and utilities are required. All of these are exported in the `base` module. |
