Resource file definition

A source file consists of any number of statements:

<source-file>
source-file ::=
    <statement-list> <statement>
statement ::=
    <uid2-statement> | <uid3-statement> | <character_set-statement> | <enum-statement> | <name-statement> | <resource-statement> | <struct-statement>

A summary of the keywords that are used for these statement types respectively is given below:

CHARACTER_SET

Defines the character set to be used

ENUM

Defines a set of integer values

NAME

By default, the resource IDs in the generated header file are allocated from 1 in ascending sequence. The sequence can be made to begin from another value using this statement.

RESOURCE

Defines an actual resource instance of the type defined in a struct, gives it a resource id, and causes it to be generated in the resource file.

STRUCT

Defines a type of resource.

UID2

Defines the second UID for the resource file

UID3

Defines the third UID for the resource file

The most usual statements are STRUCT and RESOURCE.