TParser.Create¶
Creates a new parser instance.
Declaration¶
Source position: classesh.inc line 2341
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¶
| Name | Description |
|---|---|
| TParser.NextToken | Reads the next token and returns its type. |
| TParser.Token | The type of the current token. |