User manual

188
mikoPascal PRO for dsPIC30/33 and PIC24
MikroElektronika
Identiers
Identiers are arbitrary names of any length given to functions, variables, symbolic constants, user-dened data types
and labels. All these program elements will be referred to as objects throughout the help (don’t get confused with the
meaning of object in object-oriented programming).
Identiers can contain letters from a to z and A to Z, the underscore character “_” and digits from 0 to 9. The only
restriction is that the rst character must be a letter or an underscore.
Case Sensitivity
mikroPascal PRO for dsPIC30/33 and PIC24 is not case sensitive, so Sum, sum, and suM are equivalent identiers.
Uniqueness and Scope
Although identier names are arbitrary (according to the stated rules), if the same name is used for more than one
identier within the same scope then error arises. Duplicated names are illegal within same scope. For more information,
refer to Scope and Visibility.
Identier Examples
Here are some valid identiers:
temperature_V1
Pressure
no_hit
dat2string
SUM3
_vtext
… and here are some invalid identiers:
7temp // NO -- cannot begin with a numeral
%higher // NO -- cannot contain special characters
xor // NO -- cannot match reserved word
j23.07.04 // NO -- cannot contain special characters (dot)
Punctuators
The mikroPascal PRO for dsPIC30/33 and PIC24 punctuators (also known as separators) are:
- [ ] – Brackets
- ( ) – Parentheses
- , – Comma
- ; – Semicolon
- : – Colon
- . – Dot