Syntax Rules for Configuration Files


This chapter describes the syntax rules for configuration file.

Tip: When there is an error, it is recorded in the log file (shell.log).

The following rules apply to the syntax of configuration file (shell.shl):

shell.shl structure
shell 
{
    // global variables
    var
    {
        // variables content
        variable-name = variable-value
        ...
    }
	
    default
    {
        // defaults content
        default-name = default-value
        default-name = [default-value, default-value, ...]
        ...
    }
	
    // static items
    static
    {
        // static items content
        item ( property-name = property-value   ... )
        ...
    }

    // dynamic items
    dynamic
    {
        // dynamic items content
        item ( property-name = property-value   ... )
        
        separator [( property-name = property-value   ... )]
        
        menu ( property-name = property-value   ... )
        {
           var // local variables
           {
                variable-name = variable-value
                ...
            }
            
            item ( property-name = property-value   ... )
            ...
        }
        ...
    }
}

Breaking Long Lines
For best readability, users often like to avoid lines longer than 80 characters. single quotes also allow break up a line.

shell 
{
    dynamic
    {
	  item(title='Command prompt'
	        cmd='cmd.exe')
    }
}