User manual

178
mikoBasic PRO for PIC32
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
- Compiler Directives
- Linker Directives
Lexical Elements Overview
The following topics provide a formal denition of the mikroBasic PRO for PIC32 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 PIC32 are derived from a series of operations performed on your programs by the
compiler.
A mikroBasic PRO for PIC32 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 PIC32 Code Editor). The basic program unit
in mikroBasic PRO for PIC32 is a le. This usually corresponds to a named le located in RAM or on disk, having the
extension .mbas.