Class ALinearCNumericExpression

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type ALinearCNumericExpression = class(ALinearCExpression)

Description

This class represents a numeric expression in LinearC, which is an expression that consists of a single number, either integer or floating-point.

Hierarchy

Overview

Methods

Public function init: boolean; override;
Public function parse: int64; override;

Description

Methods

Public function init: boolean; override;

Initializer

Public function parse: int64; override;

Parse the expression.

This method processes the current token, which should evaluate to a valid number. If so, the value of the token is assigned to the ALinearCExpression.value of the expression. If not, this method emits a syntax error.

The current token encountered on entering this routine should be an instance of ANumericConstantToken. The method checks the opcode of the token to determine whether the token represents a valid number; if it does, the token opcode will evaluate to TOKCAT_NUMBER. Otherwise, it will be TOKCAT_ERROR.

On return from this routine, the current token in the parent expression will refer to the token immediately following the number.


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