Class ALinearCStringExpression

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type ALinearCStringExpression = class(ALinearCExpression)

Description

This class represents a string expression in LinearC, which is an expression that consists of a single string, delimited by either lcdlQuote1String or lcdlQuote2String.

Hierarchy

Overview

Methods

Public function init: boolean; override;
Public function parse: int64; override;
Public function convertEscapeSequence: string; virtual;

Description

Methods

Public function init: boolean; override;

Initializer

Public function parse: int64; override;

Parse the expression.

This method processes tokens until another delimiter which matched the opening delimiter is found. The literal value of each token is appended to the value of the expression.

On return from this routine, the current token in the parent expression will refer to the token immediately following the string's closing delimiter.

Public function convertEscapeSequence: string; virtual;

Convert a C-style escape sequence into a string value.

This method converts a C-style escape sequence into a string of one or more characters that can be appended to a string. It is called by ALinearCStringExpression.parse whenever it encounters what appears to be a C-style escape sequence.


Generated by PasDoc 0.13.0 on 2015-06-25 11:07:51