Skip to main content

START/STARTENV/STARTCODE

START compiles the code, and adds that files ending environment to this one.

STARTCODE only compiles the code, and does not add the file's environment to this one.

STARTENV only gives the ending environment, and does not give the compiled code.

Syntax

<START|STARTCODE|STARTENV> <filePath>
info

All imported files are expected to have the .dkls extension. When importing, you don't need to include the extension in the name.

File we want to include.

REM My file name is greetings.dkls!

FUNC goodbye
STRING Goodbye!

STRING Hello World

Script where we START the referenced file.

START greetings
RUN goodbye

Compiled

STRING Hello World
STRING Goodbye!

Notice both the behavior from the function and the execution of the code after carry over to the final compilation.

Please checkout the readme section