Mikroelektronika MIKROE-742 데이터 시트

다운로드
페이지 532
Semicolon
Semicolon (
;
) is a statement terminator. Every statement in Pascal must be termi-
nated with a semicolon. The exceptions are: the last (outer most) end statement in
the program which is terminated with a dot and the last statement before end which
doesn't need to be terminated with a semicolon.
For more information, see Statements.
Colon
Colon (
:
) is used in declarations to separate identifier list from type identifier. For
example:
var
i, j : byte;
k    : word;
In the program, use the colon to indicate a labeled statement:
start:  nop;
...
goto start;
For more information, refer to Labels.
Dot
Dot (
.
) indicates an access to a field of a record. For example:
person.surname := 'Smith';
For more information, refer to Records.
Dot is a necessary part of floating point literals. Also, dot can be used for accessing
individual bits of registers in mikroPascal.
128
MIKROELEKTRONIKA
- SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Language Reference
mikroPASCAL PRO for AVR
CHAPTER 5