udbLexemeToken

Description

Returns the token kind of the lexeme.

Syntax

#include “udb/udb.h” 
UdbToken udbLexemeToken(UdbLexeme lexeme) 

Arguments

Argument
Description
UdbLexeme lexeme
Specify the lexeme.

Return Values

Return Value
Description
UdbToken
The reference associated with the specified lexeme.

UdbToken indicates the type of lexeme. Valid values are:

Return Values
Description
Udb_tokenEOF
Lexeme is an End of File marker or does not exist.
Udb_tokenComment
Lexeme is a comment.
Udb_tokenIdentifier
Lexeme is an identifier.
Udb_tokenKeyword
Lexeme is a programming language keyword.
Udb_tokenLiteral
Lexeme is a literal.
Udb_tokenNewline
Lexeme is a newline.
Udb_tokenOperator
Lexeme is an operator.
Udb_tokenPreprocessor
Lexeme is a preprocessor command.
Udb_tokenPunctuation
Lexeme is a form of punctuation.
Udb_tokenString
Lexeme is a string.
Udb_tokenWhitespace
Lexeme is whitespace.

Example Usage

lexType = udbLexemeToken(udbLexemeNext(lexeme)); 

See Also

udbLexemeEntity

udbLexemeInactive

udbLexemeReference

udbLexemeText


Scientific Toolworks, Inc.
http://www.scitools.com