User manual

180
mikoBasic PRO for dsPIC30/33 and PIC24
MikroElektronika
- Statements
- Introduction to Statements
- Assignment Statements
- Conditional Statements
- If Statement
- Select Case Statement
- Iteration Statements (Loops)
- For Statement
- While Statement
- Do Statement
- Jump Statements
- Break and Continue Statements
- Exit Statement
- Goto Statement
- Gosub Statement
- asm Statement
- Directives
- Compler Directives
- Linker Directives
Lexical Elements Overview
The following topics provide a formal denition of the mikroBasic PRO for dsPIC30/33 and PIC24 lexical elements.
They describe different categories of word-like units (tokens) recognized by the language.
In the tokenizing phase of compilation, the source code le is parsed (i.e. broken down) into tokens and whitespace.
The tokens in mikroBasic PRO for dsPIC30/33 and PIC24 are derived from a series of operations performed on your
programs by the compiler.
A mikroBasic PRO for dsPIC30/33 and PIC24 program starts as a sequence of ASCII characters representing the
source code, created by keystrokes using a suitable text editor (such as the mikroBasic PRO for dsPIC30/33 and PIC24
Code Editor). The basic program unit in mikroBasic PRO for dsPIC30/33 and PIC24 is a le. This usually corresponds
to a named le located in RAM or on disk, having the extension .mbas.