# [cmdlib.h] CMD Compiler Library

## contents

#include "standard.h"
#include "cmd_int.h"

## Command description parsing and evaluation

    cmdSource CMD_init(c_string ctx, c_string cmdid, c_bool envflg)

get command description from file ['ctx'/'cmdid'.cmd]
'envflg' --> 'ctx' is treated as environment variable

    void CMD_done(void)

throughout with command description

    c_string CMD_FidString(GLS_Lst(GLS_Tok) f)

translates file specification 'f' into a string; allocs memory

    c_string CMD_Val_to_String(cmdVal val)

translates argument specification 'val' into a string; allocs memory

    long CMD_NumberOfValues(void)

number of context variables