Unit 'Classes' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#rtl]

TParser.Create

Creates a new parser instance.

Declaration

Source position: classesh.inc line 2196

public constructor TParser.Create(

  Stream: TStream

);

Description

Create creates a new TParser instance, using Stream as the stream to read data from, and reads the first token from the stream.

Errors

If an error occurs while parsing the first token, an EParserError exception is raised.

See also

TParser.NextToken

  

Reads the next token and returns its type.

TParser.Token

  

The type of the current token.


Documentation generated on: Nov 22 2024