Class TLexer

DescriptionHierarchyFieldsMethodsProperties

Unit

Lexer

Declaration

type TLexer = class(TObject)

Description

Class that provides the basic functionality for parsing a stream into tokens (hence the name TLexer). This is a modified version of the class TParser provided with the Delphi IDE software.

Hierarchy

TLexer > TObject

Methods

Overview

Public constructor Create(Stream: TStream);
Public destructor Destroy; override;
Public procedure CheckToken(T: Char);
Public procedure CheckTokenSymbol(const S: string);
Public procedure Error(const Ident: string);
Public procedure ErrorFmt(const Ident: string; const Args: array of const);
Public procedure ErrorStr(const Message: string);
Public function NextToken: Char;
Public function SourcePos: Longint;
Public function TokenComponentIdent: string;
Public function TokenFloat: Extended;
Public function TokenInt: Int64;
Public function TokenString: string;
Public function TokenSymbolIs(const S: string): Boolean;
Public function TokenWideString: WideString;

Description

Public constructor Create(Stream: TStream);
 
Public destructor Destroy; override;
 
Public procedure CheckToken(T: Char);
 
Public procedure CheckTokenSymbol(const S: string);
 
Public procedure Error(const Ident: string);
 
Public procedure ErrorFmt(const Ident: string; const Args: array of const);
 
Public procedure ErrorStr(const Message: string);
 
Public function NextToken: Char;
 
Public function SourcePos: Longint;
 
Public function TokenComponentIdent: string;
 
Public function TokenFloat: Extended;
 
Public function TokenInt: Int64;
 
Public function TokenString: string;
 
Public function TokenSymbolIs(const S: string): Boolean;
 
Public function TokenWideString: WideString;
 

Properties

Overview

Public property FloatType: Char;
Public property SourceLine: Integer;
Public property Token: Char;

Description

Public property FloatType: Char;
 
Public property SourceLine: Integer;
 
Public property Token: Char;
 
Generated by PasDoc 0.8.8.3 on 2005-05-28 08:13:49