Chapter 3 The Application Description Language

3.1 Lexical Conventions

Lexical conventions determine how to format ADL code in a file or on the screen, including the mechanisms for embedding explanatory comments in a script.

Formatting

ADL code is not sensitive to the presence or absence of white space between language elements provided that all keywords and identifiers are distinguished. Thus the programmer has the same degree of freedom that C and C++ allow in formatting code. White space includes these characters: space (' '), newline ('\n'), carriage return ('\r'), form feed ('\f'), and vertical tab ('\v').

Commenting

Comments are indicated as they are in C++. Two contiguous slashes ( // ) indicate the start of a comment that continues to the end of the current line. This form is the usual method for annotating individual, single-line statements. A slash immediately followed by an asterisk ( /* ) indicates a comment that continues until the reverse sequence ( */ ) is encountered. This form is the usual method for inserting multi-line comments.


AM2 Documentation - 19 NOV 1996

Generated with Harlequin WebMaker