======================= Nimrod Standard Library ======================= :Author: Andreas Rumpf :Version: |nimrodversion| .. "The good thing about reinventing the wheel is that you can get a round one." Though the Nimrod Standard Library is still evolving, it is already quite usable. It is divided into *pure libraries*, *impure libraries* and *wrappers*. Pure libraries do not depend on any external ``*.dll`` or ``lib*.so`` binary while impure libraries do. A wrapper is an impure library that is a very low-level interface to a C library. Read this `document `_ for a quick overview of the API design. Pure libraries ============== Core ---- * `system `_ Basic procs and operators that every program needs. It also provides IO facilities for reading and writing text and binary files. It is imported implicitly by the compiler. Do not import it directly. It relies on compiler magic to work. * `macros `_ Contains the AST API and documentation of Nimrod for writing macros. String handling --------------- * `strutils `_ This module contains common string handling operations like converting a string into uppercase, splitting a string into substrings, searching for substrings, replacing substrings. * `strtabs `_ The ``strtabs`` module implements an efficient hash table that is a mapping from strings to strings. Supports a case-sensitive, case-insensitive and style-insensitive mode. An efficient string substitution operator ``%`` for the string table is also provided. * `unicode `_ This module provides support to handle the Unicode UTF-8 encoding. * `regexprs `_ This module contains procedures and operators for handling regular expressions. Consider using `pegs` instead. * `pegs `_ This module contains procedures and operators for handling PEGs. Generic Operating System Services --------------------------------- * `os `_ Basic operating system facilities like retrieving environment variables, reading command line arguments, working with directories, running shell commands, etc. * `osproc `_ Module for process communication beyond ``os.execShellCmd``. * `times `_ The ``times`` module contains basic support for working with time. * `dynlib `_ This module implements the ability to access symbols from shared libraries. * `streams `_ This module provides a stream interface and two implementations thereof: the `PFileStream` and the `PStringStream` which implement the stream interface for Nimrod file objects (`TFile`) and strings. Other modules may provide other implementations for this standard stream interface. * `terminal `_ This module contains a few procedures to control the *terminal* (also called *console*). The implementation simply uses ANSI escape sequences and does not depend on any other module. Math libraries -------------- * `math `_ Mathematical operations like cosine, square root. * `complex `_ This module implements complex numbers and their mathematical operations. Internet Protocols and Support ------------------------------ * `cgi `_ This module implements helpers for CGI applictions. Parsers ------- * `parseopt `_ The ``parseopt`` module implements a command line option parser. This supports long and short command options with optional values and command line arguments. * `parsecfg `_ The ``parsecfg`` module implements a high performance configuration file parser. The configuration file's syntax is similar to the Windows ``.ini`` format, but much more powerful, as it is not a line based parser. String literals, raw string literals and triple quote string literals are supported as in the Nimrod programming language. * `parsexml `_ The ``parsexml`` module implements a simple high performance XML/HTML parser. The only encoding that is supported is UTF-8. The parser has been designed to be somewhat error correcting, so that even some "wild HTML" found on the web can be parsed with it. * `parsecsv `_ The ``parsecsv`` module implements a simple high performance CSV parser. * `parsesql `_ The ``parsesql`` module implements a simple high performance SQL parser. * `lexbase `_ This is a low level module that implements an extremely efficient buffering scheme for lexers and parsers. This is used by the diverse parsing modules. Code generation --------------- * `xmlgen `_ This module implements macros for XML/HTML code generation. Cryptography and Hashing ------------------------ * `hashes `_ This module implements efficient computations of hash values for diverse Nimrod types. * `md5 `_ This module implements the MD5 checksum algorithm. Impure libraries ================ * `dialogs `_ This module implements portable dialogs for Nimrod; the implementation builds on the GTK interface. On Windows, native dialogs are shown if appropriate. * `zipfiles `_ This module implements a zip archive creator/reader/modifier. * `web `_ This module contains simple high-level procedures for dealing with the web like loading the contents of a web page from an URL. Wrappers ======== The generated HTML for some of these wrappers is so huge, that it is not contained in the distribution. You can then find them on the website. * `posix `_ Contains a wrapper for the POSIX standard. * `windows `_ Contains a wrapper for the Win32 API. * `mysql `_ Contains a wrapper for the mySQL API. * `sqlite3 `_ Contains a wrapper for SQLite 3 API. * `libcurl `_ Contains a wrapper for the libcurl library. * `shellapi `_ Contains a wrapper for the ``shellapi.h`` header. * `shfolder `_ Contains a wrapper for the ``shfolder.h`` header. * `mmsystem `_ Contains a wrapper for the ``mmsystem.h`` header. * `ole2 `_ Contains GUIDs for OLE2 automation support. * `nb30 `_ This module contains the definitions for portable NetBIOS 3.0 support. * `cairo `_ Wrapper for the cairo library. * `cairoft `_ Wrapper for the cairoft library. * `cairowin32 `_ Wrapper for the cairowin32 library. * `cairoxlib `_ Wrapper for the cairoxlib library. * `atk `_ Wrapper for the atk library. * `gdk2 `_ Wrapper for the gdk2 library. * `gdk2pixbuf `_ Wrapper for the gdk2pixbuf library. * `gdkglext `_ Wrapper for the gdkglext library. * `glib2 `_ Wrapper for the glib2 library. * `gtk2 `_ Wrapper for the gtk2 library. * `gtkglext `_ Wrapper for the gtkglext library. * `gtkhtml `_ Wrapper for the gtkhtml library. * `libglade2 `_ Wrapper for the libglade2 library. * `pango `_ Wrapper for the pango library. * `pangoutils `_ Wrapper for the pangoutils library. * `gl `_ Part of the wrapper for OpenGL. * `glext `_ Part of the wrapper for OpenGL. * `glu `_ Part of the wrapper for OpenGL. * `glut `_ Part of the wrapper for OpenGL. * `glx `_ Part of the wrapper for OpenGL. * `wingl `_ Part of the wrapper for OpenGL. * `lua `_ Part of the wrapper for Lua. * `lualib `_ Part of the wrapper for Lua. * `lauxlib `_ Part of the wrapper for Lua. * `tcl `_ Wrapper for the TCL programming language. * `python `_ Wrapper for the Python programming language. * `odbcsql `_ interface to the ODBC driver. * `zlib `_ Wrapper for the zlib library. * `sdl `_ Part of the wrapper for SDL. * `sdl_gfx `_ Part of the wrapper for SDL. * `sdl_image `_ Part of the wrapper for SDL. * `sdl_mixer `_ Part of the wrapper for SDL. * `sdl_net `_ Part of the wrapper for SDL. * `sdl_ttf `_ Part of the wrapper for SDL. * `smpeg `_ Part of the wrapper for SDL. * `cursorfont `_ Part of the wrapper for X11. * `keysym `_ Part of the wrapper for X11. * `x `_ Part of the wrapper for X11. * `xatom `_ Part of the wrapper for X11. * `xcms `_ Part of the wrapper for X11. * `xf86dga `_ Part of the wrapper for X11. * `xf86vmode `_ Part of the wrapper for X11. * `xi `_ Part of the wrapper for X11. * `xinerama `_ Part of the wrapper for X11. * `xkb `_ Part of the wrapper for X11. * `xkblib `_ Part of the wrapper for X11. * `xlib `_ Part of the wrapper for X11. * `xrandr `_ Part of the wrapper for X11. * `xrender `_ Part of the wrapper for X11. * `xresource `_ Part of the wrapper for X11. * `xshm `_ Part of the wrapper for X11. * `xutil `_ Part of the wrapper for X11. * `xv `_ Part of the wrapper for X11. * `xvlib `_ Part of the wrapper for X11. * `libzip `_ Interface to the `lib zip `_ library by Dieter Baron and Thomas Klausner.