help files
Z505 | PasWiki | FUQ | Search | Main Docs | API Guide



[Overview][Constants][Types][Classes][Procedures and functions][Variables] Reference for unit 'Classes' (#rtl)

TParser

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Class to parse the contents of a stream containing text data.

Declaration

Source position: classesh.inc line 1163

type TParser = class(TObject)

public

  constructor Create();

  

Creates a new parser instance.

  destructor Destroy; override;

  

Destroys the parser instance.

  procedure CheckToken();

  

Checks whether the token if of the given type.

  procedure CheckTokenSymbol();

  

Checks whether the token equals the given symbol

  procedure Error();

  

Raises an EParserError exception with the given message

  procedure ErrorFmt();

  

Raises an EParserError exception and formats the message.

  procedure ErrorStr();

  

Raises an EParserError exception with the given message

  procedure HexToBinary();

  

Writes hexadecimal data to the stream.

  function NextToken;

  

Reads the next token and returns its type.

  function SourcePos;

  

Returns the current position in the stream.

  function TokenComponentIdent;

  

Checks whether the current token is a component identifier.

  function TokenFloat;

  

Returns the current token as a float.

  function TokenInt;

  

Returns the current token as an integer.

  function TokenString;

  

Returns the current token as a string.

  function TokenWideString;

  

Token as widestring

  function TokenSymbolIs();

  

Returns True if the current token is a symbol.

  property SourceLine: Integer; [r]

  

Current source linenumber.

  property Token: Char; [r]

  

Contents of the current token.

end;

Inheritance

TParser

  

Class to parse the contents of a stream containing text data.

|

TObject

Notes

 No notes exist for this page yet. 





lufdoc, Powtils, fpc, freepascal, delphi, kylix, c/c++, mysql, cgi web framework docs, Z505