Class ALinearCNumericExpression
Unit
linearc
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
|
function init: boolean; override; |
|
function parse: int64; override; |
Description
Methods
|
function init: boolean; override; |
Initializer
|
|
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-06-25 11:07:51
|