Next: , Previous: Empty declarations, Up: Project File Reference


13.5 Typed string declarations

Typed strings are sequences of string literals. Typed strings are the only named types in project files. They are used in case constructions, where they provide support for conditional attribute definitions.

Syntax:

     typed_string_declaration ::=
       type <typed_string_>_simple_name is
        ( string_literal {, string_literal} );

A typed string declaration can only appear immediately within a project declaration.

All the string literals in a typed string declaration must be distinct.