Expression in Turbo Pascal is everything from constant, variable, calculation or just identifier. This unit contains over 100 functions to process every possible Turbo Pascal expression.
|
Expressions are one of core elements of Turbo Pascal. Expression is everything from variables, calculations, addresses or functions. Most of the code generated by Turbo Pascal comes from expressions. Therefore, expression processing needs a lot of functions and procedures that deal with all possible cases.
|
These routines provide basic expression processing. Each expression is divided into simpler elements according to the operator precedence: Expression, Simple Expression, Term and Factor. Once the operation and operands are determined the mathematical operation can be performed.
|
This procedure loads variable data from symbol table and sets all expression fields accordingly. Absolute variables are loaded from the target variable which is in memory and for record or object fields base address is loaded.
|
This procedure loads numeric constants and constant identifiers to expression.
|
This procedure processes unary plus or minus before factor. Plus is skipped while minus changes the sign if expression is integer, extended or real.
|
This procedure performs logical operation NOT.
|
This procedure processes type identifiers in expression.
|
This procedure processes set constants.
|
Turbo Pascal Provides two 'virtual' arrays that provide acces to memory (Mem) and I/O ports (Port).
|
Turbo Pascal expects different expression types depending on the context or language syntax. For this purposes there are many functions and procedures that process expression and report error if the expression doesn't meet expectations.
|
|
|
<< Start < Prev 1 2 3 Next > End >>
|