Castle Game Engine: CastleScriptLexer: Class TCasScriptLexer

# Class TCasScriptLexer
Description | Hierarchy | Fields | Methods | Properties
## Unit CastleScriptLexer ## Declaration `type TCasScriptLexer = class(TObject)` ## Description ## Hierarchy TObject TCasScriptLexer ## Overview ### Methods
| `function NextToken: TToken;`
| `constructor Create(const AText: string);`
| `function TokenDescription: string;`
| `procedure CheckTokenIs(Tok: TToken);`
### 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 TokenFunctionClass: TCasScriptFunctionClass read FTokenFunctionClass;`
| `property TextPos: Integer read FTextPos;`
| `property Text: string read FText;`
## Description ### Methods
| `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
| `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 TokenFunctionClass: TCasScriptFunctionClass read FTokenFunctionClass;`
| `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.13.0 on 2015-06-15 04:43:11