Sign in Join
FPDoc Onlineexperiment

TParser.NextToken function

Member of TParserpublicIn unit Classes

Reads the next token and returns its type.

Declaration

pascal
function NextToken: AnsiChar

Description

NextToken parses the next token in the stream and returns its type. The type of the token can also be retrieved later reading Token property.

If the end of the stream is reached, toEOF is returned.

For details about token types, see Token

Errors

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

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.