Skip to content

bbense/erlman

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Erlman

** Library for accessing erl man pages **

This module attempts to duplicate the functionality of Code.get_docs by parsing the erlang man pages. The intent is to eventually extend the iex h command to provide documenatation for at least the standard erlang modules.

It also includes a minimal duplication of the iex h helper for testing. This h function requires quoting the string. Some examples below:

Erlh.h ":os"

os 3 "kernel 3.2" "Ericsson AB" "Erlang Module Definition"

NAME os - Operating System Specific Functions

DESCRIPTION

The functions in this module are operating system specific. Careless use of these functions will result in programs that will only run on a specific platform. On the other hand, with careful use these functions can be of help in enabling a program to run on most platforms.

Erlh.h ":erlang.element"

element(N, Tuple) -> term()

Types:

N = integer() >= 1 1..tuple_size(Tuple)

Tuple = tuple()

Returns the Nth element (numbering from 1) of Tuple.

> element(2, {a, b, c}).
b

Allowed in guard tests.

About

Elixir code to read Erlang man pages from iex

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages