Class ALinearCCompoundExpression

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type ALinearCCompoundExpression = class(ALinearCExpression)

Description

This class represents a compound expression in LinearC, which can be made up of one or more subexpressions.

Hierarchy

Overview

Fields

Protected myOperation: TOpcode;

Methods

Public function parse: int64; override;
Public function performOperation: int64; virtual;
Public function operation: TOpcode;

Description

Fields

Protected myOperation: TOpcode;

Refers to the operator encountered, if any

Methods

Public function parse: int64; override;

Parse the expression.

This method simply constructs an instance of ALinearCExpression and calls ALinearCExpression.parse on it.

Public function performOperation: int64; virtual;

Perform the operation indicated by the ALinearCCompoundExpression.operation. This method is called by ALinearCCompoundExpression.parse after two subexpressions, separated by an operator, have been parsed.

Returns

The total number of errors that occurred while attempting to perform the operation. A value of zero (0) indicates success.

Public function operation: TOpcode;

Retrieve the operator encountered while parsing the compound expression, if any.

Although a compound expression will generally consist of two or more subexpressions, separated by an operator, this is not required. It is perfectly valid for a compound expression to consist of a single subexpression with no operators, in which case this method will return zero (0).


Generated by PasDoc 0.13.0 on 2015-01-10 17:13:18