3 Lexical Rules for VBA Programs
VBA programs are defined using text files (or other equivalent units of text) called modules (section 4.2). The role of modules in defining a VBA program is specified in section 4. This section describes the lexical rules used to interpret the text of modules.
The structure of a well-formed VBA module is defined by a set of inter-related grammars. Each grammar individually defines a distinct aspect of VBA modules. The grammars in the set are:
The Physical Line Grammar
The Logical Line Grammar
The Lexical Token Grammar
The Conditional Compilation Grammar
The Syntactic Grammar
The first four of these grammars are defined in this section. The Syntactic Grammar is defined in section 5.