OpenTP1 Version 7 Programming Reference C Language

[Contents][Index][Back][Next]

6.3.1 Syntax rules

An IDL file must conform to the rules given below.

Organization of this subsection
(1) File name
(2) Phrase elements
(3) Syntax format

(1) File name

Suffix the file name with .idl. The same IDL file must be incorporated in the client and server UAPs.

(2) Phrase elements

(a) Identifier

Use the following characters for an identifier:

The first character must be an alphabetic character. Up to 31 characters can be used unless otherwise specified.

(b) Unusable term (keyword)

Some identifiers are reserved as keywords in IDL file coding. These keywords cannot be changed.

(c) Punctuation character

The following graphic characters can be used:

", ', (, ), *, ,, . /, :, ;, |, =, [, \, ], {, }

(d) Whitespace

The following characters are treated as whitespace:

A whitespace is required at the following locations:

A whitespace enclosed in double quotation marks (") or single quotation marks (') is treated as a character. Otherwise, whitespace is ignored because it is assumed as a delimiter of other punctuation elements.

(e) Comment

/* indicates the beginning and */ indicates the ending of a comment. Comments cannot be nested.

(3) Syntax format

The following character styles are used in this manual for explaining the syntax of coding an IDL file:

abc: Non-italic characters indicate that coding is to be done as noted in the expression of the syntax explanations.

abc: Italic characters indicate that coding is to be done with special values assigned.
For assignment character strings, see the syntax explanations.

The following brackets are used in this manual for explaining the syntax of coding an IDL file:

[ ]: Non-italic brackets indicate that the item must be selected. When coding an item, [ ] is needed.

[ ]: Italic brackets indicate that the item can be omitted. When coding an item, do not include [ ].