Class TCasScriptLexer

Unit

Declaration

type TCasScriptLexer = class(TObject)

Description

This item has no description.

Source: src/castlescript/castlescriptlexer.pas (line 51).

Hierarchy

  • TObject
  • TCasScriptLexer

Overview

Methods

Public function NextToken: TToken;
Public constructor Create(const AText: string);
Public function TokenDescription: string;
Public procedure CheckTokenIs(Tok: TToken);

Properties

Public property Token: TToken read FToken;
Public property TokenInteger: Int64 read FTokenInteger;
Public property TokenFloat: Float read FTokenFloat;
Public property TokenString: string read FTokenString;
Public property TokenBoolean: boolean read FTokenBoolean;
Public property TokenFunctionClass: TCasScriptFunctionClass read FTokenFunctionClass;
Public property TextPos: Integer read FTextPos;
Public property Text: string read FText;

Description

Methods

Public function NextToken: TToken;

NextToken moves to next token (updating fields Token, and eventually TokenFloat, TokenString and TokenFunctionClass) and returns the value of field Token.

When Token is tokEnd, then NextToken doesn't do anything, i.e. Token will remain tokEnd forever.

Exceptions raised
ECasScriptLexerError

Source: src/castlescript/castlescriptlexer.pas (line 85).

Public constructor Create(const AText: string);

This item has no description.

Source: src/castlescript/castlescriptlexer.pas (line 87).

Public function TokenDescription: string;

Current token textual description. Useful mainly for debugging lexer.

Source: src/castlescript/castlescriptlexer.pas (line 90).

Public procedure CheckTokenIs(Tok: TToken);

Check is current token Tok, eventually rise parser error. This is an utility for parser.

Exceptions raised
ECasScriptParserError
if current Token doesn't match required Tok.

Source: src/castlescript/castlescriptlexer.pas (line 97).

Properties

Public property Token: TToken read FToken;

This item has no description.

Source: src/castlescript/castlescriptlexer.pas (line 63).

Public property TokenInteger: Int64 read FTokenInteger;

This item has no description.

Source: src/castlescript/castlescriptlexer.pas (line 65).

Public property TokenFloat: Float read FTokenFloat;

This item has no description.

Source: src/castlescript/castlescriptlexer.pas (line 66).

Public property TokenString: string read FTokenString;

This item has no description.

Source: src/castlescript/castlescriptlexer.pas (line 67).

Public property TokenBoolean: boolean read FTokenBoolean;

This item has no description.

Source: src/castlescript/castlescriptlexer.pas (line 68).

Public property TokenFunctionClass: TCasScriptFunctionClass read FTokenFunctionClass;

This item has no description.

Source: src/castlescript/castlescriptlexer.pas (line 69).

Public property TextPos: Integer read FTextPos;

Position of lexer in the Text string.

Source: src/castlescript/castlescriptlexer.pas (line 72).

Public property Text: string read FText;

Text that this lexer reads.

Source: src/castlescript/castlescriptlexer.pas (line 75).


Generated by PasDoc 0.17.0.snapshot.