Module:Module introspection: Difference between revisions

Ganaram inukshuk (talk | contribs)
No edit summary
Ganaram inukshuk (talk | contribs)
todo
Line 4: Line 4:
local p = {}
local p = {}


-- TODO: add additional functions:
-- TODO:
-- - Determine whether a main function exists, as _main or a function of the
-- - Identify the wrapper function, if there is one (which is usually the case).
--  same name as the module with an underscore.
--  If a wrapper exists without an accompanying main, then the wrapper is
-- - Determine whether a wrapper exists, as main or a function of the same name
--  assumed to be the main function.
--  as the module, without an underscore.
-- - Identify invokable functions, which are functions that accept a single
-- - If the wrapper exists without _main, the wrapper is assumed to be the main
--  param called "frame".
--  function.
-- - Allow descriptions to be added to functions, as params called
-- - If both wrapper and _main exists, _main is the main function.
--  desc_function_name. One description per function.
-- - If neither function exists, then the module is a metamodule, a module that
--  generally provides functionality to other modules.


-- Inspects a module for its functions, its dependencies, and the functions used
-- Inspects a module for its functions, its dependencies, and the functions used