Processing Program Block
This is where the main compilation routines are called. This procedure resets many compiler flags and variables, initializes intermediate code, saves source line number, resets compiler switches, and...
View ArticleProcessing Label Declarations
Processing Label declarations is trivial. They are simply stored into symbol table as identifiers. Procedure ProcessLabelDeclarations; Var Id: PIdentifier; AddData: Pointer; begin GetNextToken; Repeat...
View ArticleProcessing Procedure Declarations
Turbo Pascal uses few procedures to process declaration of procedures and functions. The same code is also used to process methods, constructors and destructors. The first procedure processes header....
View ArticleProcessing Variable Declarations
This procedure expects a list of identifiers followed by a colon and variable type and processes declaration of variables: global, local and absolute. Procedure ProcessVariableDeclarations; begin...
View ArticleProcessing Object Types
Turbo Pascal includes many functions and procedures to process object type declaration. The reason is in the complexity of object type. It can contain fields, methods, constructors, destructors,...
View ArticleProcessing Non-object Types
This procedure processes all types except Objects and creates type definition records. One one hand objects need different and more complex processing and on the other hand they can not be declared...
View ArticleProcessing Type Declarations
This procedure processes type declarations – identifiers that denote types. Object types have their own processing. Procedure ProcessTypeDeclarations; Var TypeIdentifier: PIdentifier;...
View ArticleProcessing Typed Constants
This procedure processes and stores the value of typed constants. For complex types like Arrays, Records and Objects recursion is used to process elements and fields. Procedure ProcessTypedConstant...
View ArticleProcessing Constant Declarations
Turbo Pascal constants can be of two types: ordinary constants which are only stored to the symbol table and typed constants which are also embedded into the program. Therefore, typed constant values...
View ArticleProcessing Declarations
This procedure processes Pascal declarations: Constants, Types, Variables, Procedures, Functions, and if declarations are not in the Interface part of the unit, also Lables, Constructors and...
View Article
More Pages to Explore .....