Class TCasScriptLexer
Unit
CastleScriptLexer
Declaration
type TCasScriptLexer = class(TObject)
Description
Hierarchy
Overview
Methods
Properties
Description
Methods
  | 
constructor Create(const AText: string); | 
| 
  | 
  | 
function TokenDescription: string; | 
| 
 
Current token textual description. Useful mainly for debugging lexer. 
 | 
  | 
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.
 
 
 | 
Properties
  | 
property Token: TToken read FToken; | 
| 
  | 
  | 
property TokenInteger: Int64 read FTokenInteger; | 
| 
  | 
  | 
property TokenFloat: Float read FTokenFloat; | 
| 
  | 
  | 
property TokenString: string read FTokenString; | 
| 
  | 
  | 
property TokenBoolean: boolean read FTokenBoolean; | 
| 
  | 
  | 
property TextPos: Integer read FTextPos; | 
| 
 
Position of lexer in the Text string. 
 | 
  | 
property Text: string read FText; | 
| 
 
Text that this lexer reads. 
 | 
Generated by PasDoc 0.16.0.