Next: , Up: Project File Syntax

11.3.1 Basic Syntax

As seen in the earlier examples, project files have an Ada-like syntax. The minimal project file is:

     project Empty is
     end Empty;

The identifier Empty is the name of the project. This project name must be present after the reserved word end at the end of the project file, followed by a semi-colon.

Any name in a project file, such as the project name or a variable name, has the same syntax as an Ada identifier.

The reserved words of project files are the Ada reserved words plus extends, external, and project. Note that the only Ada reserved words currently used in project file syntax are:

Comments in project files have the same syntax as in Ada, two consecutive hyphens through the end of the line.