JCL Help:TExprNodeFactory
JCL Help: TExprNodeFactory Class
Search in JCL Help
Search in all projectsClass Hierarchy
TExprNodeFactory
|
TExprVirtMachNodeFactory
Summary
A factory class for TExprNode objects.
Pascal
public TExprNodeFactory = class(TObject);
Description
When compiling an expression, the expression must be broken down into 'atomic' components, like add, subtract, load constant, load variable, call function etc. Because different compilation strategies may involve different atomic node classes, the task of atomic node construction is given to a separate factory object. This object should keep a list of all the nodes it has constructed, and act as an interface for the construction of new nodes. Concrete descendants of this factory should have a GenCode method that is specific to the implementation strategy. That GenCode method is a prime candidate for expression optimizations like common sub-expression elimination, constant sub-expression evaluation, etc.
About
Unit
Donator
Barry Kelly
Contribute to this help topic
This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page