| Cray Assembly Language (CAL) for Cray X1TM Systems Reference Manual - S-2314-50 | ||
|---|---|---|
| Prev Section | Chapter 6. CAL Source Statements | Next Section |
A tag is an identifier that does not have an associated value or attribute and cannot be used in expressions. Tags that are 1-32 characters in length are used to identify the following types of information:
Macro instructions
Micro character strings
Conditional sequences
Duplicated sequences
The first character must be one of the following:
Alphabetic character (A through Z or a through z)
Dollar sign ($)
Percent sign (%)
At sign (@)
Underscore character (_)
Characters 2-32 can also be decimal digits (0 through 9).
Tags that are 1-255 characters in length can be used to identify the following types of information:
Program modules
Sections
The first character must be one of the valid tag characters or the underscore (_) character. Characters 2-255 can also be decimal digits (0 through 9).
Different types of tags do not conflict with each other or with symbols. For example, a micro can have the same tag as a macro, and a program module can have the same tag as a section.
Examples of valid and not valid tags:
| Not valid | Comment | |
| 9knt | Begins with a numeric character | |
| Y+Z3 | Contains an illegal character | |
| +YZ3 | Begins with + |
Note: If you plan to use a source manager to store your CAL program, avoid using special character sequences such as the three-character string %U%. A source manager may replace these strings throughout your source program with other text. Because this type of string is allowed within identifiers and long-identifiers, avoid using it in names, long names, and symbols.
The underscore character (_) also is used as the concatenation character (see Section 6.10). Usually the assembler edits this character out of a source line. To insert this character into a long name, either disable editing or use the predefined concatenation micro ($CNC). To disable editing, use either the invocation statement or the EDIT pseudo instruction.
| Prev Section | Table of Contents | Title Page | Index | Next Section |
| Symbols | Up one level | Constants |