<?xml version="1.0" encoding="UTF-8"?>

<?context-directive job ctxfile x-setups.ctx ?>

<cd:interface xmlns:cd="http://www.pragma-ade.com/commands">

    <cd:command name="usemodule" level="style" category="structure" file="file-mod.mklx">
        <cd:arguments>
            <cd:keywords optional="yes">
                <cd:constant type="m"/>
                <cd:constant type="p"/>
                <cd:constant type="s"/>
                <cd:constant type="x"/>
                <cd:constant type="t"/>
            </cd:keywords>
            <cd:resolve name="keyword-file-list"/>
            <cd:assignments list="yes" optional="yes">
                <cd:parameter name="cd:key">
                    <cd:constant type="cd:value"/>
                </cd:parameter>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <!--

        <cd:command name="usemodules" level="style" category="structure" file="file-mod.mklx">
            <cd:arguments>
                <cd:keywords optional="yes">
                    <cd:constant type="m"/>
                    <cd:constant type="p"/>
                    <cd:constant type="s"/>
                    <cd:constant type="x"/>
                    <cd:constant type="t"/>
                </cd:keywords>
                <cd:resolve name="keyword-file-list"/>
                <cd:assignments list="yes" optional="yes">
                    <cd:parameter name="cd:key">
                        <cd:constant type="cd:value"/>
                    </cd:parameter>
                </cd:assignments>
            </cd:arguments>
        </cd:command>

    -->

    <cd:command name="usetexmodule" level="style" category="structure" file="file-mod.mklx">
        <cd:arguments>
            <cd:keywords optional="yes">
                <cd:constant type="m"/>
                <cd:constant type="p"/>
                <cd:constant type="s"/>
                <cd:constant type="x"/>
                <cd:constant type="t"/>
            </cd:keywords>
            <cd:resolve name="keyword-file-list"/>
            <cd:assignments list="yes" optional="yes">
                <cd:parameter name="cd:key">
                    <cd:constant type="cd:value"/>
                </cd:parameter>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="module" type="environment" level="system" category="structure" file="file-mod.mklx">
        <cd:arguments>
            <cd:resolve name="keyword-file"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="module" type="environment" variant="string" level="system" category="structure" file="file-mod.mklx">
        <cd:arguments>
            <cd:resolve name="string-file"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="setupmodule" level="system" category="structure" file="file-mod.mklx">
        <cd:arguments>
            <cd:resolve name="keyword-file-optional"/>
            <cd:assignments list="yes">
                <cd:parameter name="test">
                    <cd:constant type="yes"/>
                    <cd:constant type="no" default="yes"/>
                </cd:parameter>
                <cd:parameter name="cd:key">
                    <cd:constant type="cd:value"/>
                </cd:parameter>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="moduleparameter" level="system" category="structure" file="file-mod.mklx">
        <cd:arguments>
            <cd:resolve name="argument-file"/>
            <cd:resolve name="argument-key"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="currentmoduleparameter" level="system" category="structure" file="file-mod.mklx">
        <cd:arguments>
            <cd:resolve name="argument-key"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="moduletestsection" type="environment" level="system" category="structure" file="file-mod.mklx"/>

    <cd:command name="fetchruntinecommand" level="system" category="structure" file="file-mod.mklx">
        <cd:arguments>
            <cd:csname/>
            <cd:resolve name="argument-file"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="luaenvironment" level="system" category="structure" file="file-mod.mklx">
        <cd:arguments>
            <cd:resolve name="string-file"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="useluamodule" level="system" category="structure" file="file-mod.mklx">
        <cd:arguments>
            <cd:resolve name="keyword-file"/>
        </cd:arguments>
    </cd:command>

</cd:interface>
