Version statement
The version statement is mandatory and indicates which version of the cQASM language the program is written in. Apart from comments, it must be the first statement of the program and occur only once. It has the following general form:
version
major-version.
minor-version
Grammar for version statement
version:
version
major-version minor-version-suffixopt
major-version:
digit-sequence
minor-version-suffix:
.
minor-version
minor-version:
digit-sequence
where the version number is to be given as two period separated integers,
respectively indicating the major and minor version of the cQASM language.
It is permitted to only specify the major version number, i.e.,
the specification of the minor version number is optional.
In that case, the minor-version will be interpreted as 0
.