Quantcast
Channel: Parser - Turbo Pascal Compiler
Browsing all 10 articles
Browse latest View live

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 Article



Processing 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 Article

Processing 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 Article

Processing 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 Article

Processing 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 Article


Processing 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 Article

Processing Type Declarations

This procedure processes type declarations – identifiers that denote types. Object types have their own processing. Procedure ProcessTypeDeclarations; Var TypeIdentifier: PIdentifier;...

View Article

Processing 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 Article


Processing 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 Article


Processing 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
Browsing all 10 articles
Browse latest View live




Latest Images