The LDPL URL Resolver Library is a super easy to use library for LDPL that helps you resolve URLs into their respective IP addresses. This library requires LDPL 4.3 or greater.
You can install this library by hand or using LPM.
Open a terminal and write lpm install ldpl-url-resolver
. Once downloaded, include it in your LDPL project by adding the line:
using package ldpl-url-resolver
before the data
and procedure
sections of your source file. The library is ready to be used.
Include the library into your LDPL project by copying the folder ldpl-url-resolver to your project directory and then adding the line:
include "ldpl-url-resolver/ldpl-url-resolver.ldpl"
before the data
and procedure
sections of your source file. The library is
ready to be used.
This library adds a single new statement to the language:
resolve url <text> in <text-var>
resolves the url<text>
and stores the resulting IP in<text-var>
.
using package ldpl-url-resolver
data:
ip is text
procedure:
resolve url "www.ldpl-lang.org" in ip
display "The ip for www.ldpl-lang.org is " ip lf
This library is released under the MIT License.