Datasheet

LEXICAL ELEMENTS OVERVIEW
The following topics provide a formal definition of the mikroC PRO for AVR lexical
elements. They describe different categories of word-like units (tokens) recognized
by the mikroC PRO for AVR.
In the tokenizing phase of compilation, the source code file is parsed (that is, bro-
ken down) into tokens and whitespace. The tokens in the mikroC PRO for AVR are
derived from a series of operations performed on your programs by the compiler and
its built-in preprocessor.
WHITESPACE
Whitespace is a collective name given to spaces (blanks), horizontal and vertical
tabs, newline characters and comments. Whitespace can serve to indicate where
tokens start and end, but beyond this function, any surplus whitespace is discarded.
For example, two sequences
int i; float f;
and
int
i;
float f;
are lexically equivalent and parse identically to give six tokens:
int
i
;
float
f
;
Whitespace in Strings
The ASCII characters representing whitespace can occur within string literals. In that
case they are protected from the normal parsing process (they remain as a part of
the string). For example,
char name[] = "mikro foo";
parses into seven tokens, including a single string literal token:
122
MIKROELEKTRONIKA - SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Language Reference
mikroC PRO for AVR
CHAPTER 5