Go to the first, previous, next, last section, table of contents.


5.2 Declaration Specifiers

The syntax of declaration specifiers is as in C++. This is a correction from previous versions of Larch/C++ which restricted the order of decl-specifier-seq. Note that the new ANSI standard no longer supports the "implicit int" rule of C. See section 5.2.3 Type Specifiers for the syntax of type-specifier-seq.

decl-specifier ::= storage-class-specifier
         | type-specifier | function-specifier
         | friend | typedef
decl-specifier-seq ::= decl-specifier [ decl-specifier ] ...

For example, one can write decl-specifier-seqs such as the following.

int
extern int
static double
friend void
inline double
typedef int
unsigned long int


Go to the first, previous, next, last section, table of contents.