User`s manual

mikroBASIC
- Basic Compiler for Microchip PIC microcontrollers
Identifiers are names used for referencing the stored values, such as variables and
constants. Every program, procedure, and function must be identified (hence the
term) by an identifier.
Valid identifier:
1. must begin with a letter of English alphabet or possibly the underscore (_)
2. can be followed by alphanumeric characters and the underscore (_)
3. may not contain special characters:
~ ! @ # $ % ^ & * ( ) + ` - = { } [ ] : " ; ' < > ? , . / | \
mikroBasic is not case sensitive. First, FIRST, and fIrST are an equivalent identifi-
er.
Elements ignored by the compiler include spaces, new lines, and tabs. All these
elements are collectively known as the white space. White space serves only to
make the code more legible; it does not affect the actual compiling.
Several identifiers are reserved in mikroBasic - you cannot use them as your own
identifiers. Please refer to Kewords. Also, mikroBasic has several pre-defined
identifiers. Pre-defined identifiers are listed in the chapter Library Functions and
Procedures.
' Valid identifier examples
temperature_V1
Pressure
no_hit
dat
sum
vtext
' Some invalid identifier examples
7temp
' cannot begin with a numeral
%higher
' cannot contain special characters
xor
' cannot match reserved word
j23.07.04
' cannot contain special characters
MikroElektronika:
Development
tools
-
Books
-
Compilers
mikroBASIC
making it simple...
29
page
IDENTIFIERS
Rules
Note
Examples