Lexical Elements Overview

The following topics provide a formal definition of the mikroBasic PRO for PIC lexical elements. They describe different categories of word-like units (tokens) recognized by the language.

In the tokenizing phase of compilation, the source code file is parsed (that is, broken down) into tokens and whitespace. The tokens in mikroBasic PRO for PIC are derived from a series of operations performed on your programs by the compiler.

A mikroBasic PRO for PIC 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 PIC Code Editor). The basic program unit in mikroBasic PRO for PIC is a file. This usually corresponds to a named file located in RAM or on disk, having the extension .mbas.

Copyright (c) 2002-2012 mikroElektronika. All rights reserved.
What do you think about this topic ? Send us feedback!
Want more examples and libraries? 
Find them on LibStock - A place for the code