As most programming languages, LDPL leverages a number of first and third-party libraries. Nearly all of these libraries are released in the form of a .ldpl file, a group of .ldpl files or a group of .ldpl and C++ files.
The process of installing an LDPL library is fairly straightforward: locate the library file (or the main library file, in case the library you want to import has multiple files) and import it to your LDPL source file by using the include keyword. For example, if you have two files source.ldpl and lib.ldpl in a folder and you want to import lib.ldpl into source.ldpl, you should add the line
include "lib.ldpl" into source.ldpl before the data and procedure sections.
This is explained in greater detail in the LDPL Documentation.
First-party LDPL libraries are listed on this page. You may also find libraries on GitHub by searching "LDPL" in the search box. If you have written an LDPL library and you'd like to have it listed here, please contact us.
LDPL Package Manager (LPM)
Starting from version 4.3, LDPL includes the LDPL Package Manager (LPM). When you install LDPL from source you also install LPM. If you download a pre-compiled binary, LPM is included in the same package. With LPM, downloading and using libraries (we also call them packages) is now easier than ever:
lpm info <library_name>to find information about a particular library.
- Try, for example,
lpm info std-mathand
lpm info ltb!
- Try, for example,
lpm install <library_name>to install a particular library.
lpm uninstall <library_name>to uninstall a particular library.
lpm countto display the number of installed packages.
lpm listto list all installed packages.
Once you've installed a library, you can include it to your project by just adding the line
using package <library_name>
# for example: using package std-math
PROCEDURE sections of your source file.
Official LDPL Libraries
The LDPL Standard Library
The LDPL Standard Library (STD) a collection of LDPL libraries that contain many useful pre-written statements for the LDPL Programming Language that are not included in the base language. he library is organized in a series of .ldpl files lovingly called briefcases (this is a very serious language, you know, we have ties) each containing new statements designed to extend the functionality of LDPL in many areas, for example list handling or random number generation.
The LDPL IRC Bot Library
The LDPL IRC Bot Library is a super easy to use IRC bot library for LDPL. It lets you write LDPL programs that connect to IRC servers, join channels, send messages and more in the simplest way possible.
The LDPL Telegram Bot Library
The LDPL Telegram Bot Library is a simple LDPL library lets you create a Telegram bot that can receive and send text messages. Installation instructions and documentation are included in the linked repository.
The LDPL Network Server Library
The LDPL Network Server Library is an library for creating socket based servers in LDPL. It aims to make it very easy to develop, test and deploy network servers, with as little work as possible.