Importing other sources

You can import other LDPL source codes to your LDPL source by using the INCLUDE statement. For example, say you have two sources:

firstSource.ldpl
procedure:
call someSubprocedure

and

included.ldpl
procedure:
sub someSubprocedure
display "Hi there!"
end sub

You can import the second source into the first one in order to create one big source file like this:

firstSource.ldpl
include "included.ldpl"
procedure:
call someSubprocedure

The location where the included files are searched is relative to the file that includes them.