IBM Enterprise Console Network Router User Manual


 
Class Definition Statement File Syntax Diagrams
This section describes the syntax for statements allowed within a CDS file. The
syntax is shown in BNF-like notation where the vertical bar (|) character
represents alternatives, and optional parts are contained within braces ({}).
*
* FILE CONTENT
*/
<file> ::= <statements> | /* empty */
<statements> ::=
<statement>
| <statement> <statements>
<statement> ::=
<mapdefault_statement>
| <class_statement>
/*
* MAP_DEFAULT STATEMENT
*/
<mapdefault_statement> ::=
MAP DEFAULT
<mapdef_statements>
END
<mapdef_statements> ::=
<mapdef_statement>
| <mapdef_statement> <mapdef_statements>
<mapdef_Statement> ::=
<attribute_name> ’=’ <constant> ’;’
| <attribute_name> ’=’ <keyword> ’;’
<attribute_name> ::+ <atom>
/*
* CLASS STATEMENT
*/
<class_statement> ::=
CLASS <class_name>
{ SELECT
<select_statements> }
{ FETCH
<fetch_statements> }
{ MAP
<map_statements> }
END
<class_name> ::+
*DISCARD*
| <atom>
/*
* SELECT STATEMENT
*/
<select_statements> ::=
<select_statement>
| <select_statement> <select_statements>
<select_statement> ::=
<number> ’:’ <attr_decl>
{ ’,’ <key_decl> }
{ ’,’ <value_decl> }
’;’
| <number> ’:’ <keyword> ’=’ <v_op_val> ’;"
| <number> ’:’ <constant> ’=’ <v_op_val> ’;’
<attr_decl> ::=
ATTR ’(’ <a_op> ’,’ <a_op_val> ’)’
Appendix C. Class Definition Statement File Reference 161