udbLexerLexemes

Description

Returns an array of all lexemes in the lexer. If startLine and endLine are non-zero, returns an array of all lexemes in that range of the lexer.

Syntax

#include “udb/udb.h” 
UdbLexeme udbLexerLexemes(UdbLexer lexer,  
                         int startLine, int endLine, 
                         UdbLexeme **lexeme) 

Arguments

Argument
Description
UdbLexer lexer
Specify the lexer.
int startLine
Specify the first line in the lexer at which to look for lexemes.
int endLine
Specify the last line in the lexer at which to look for lexemes.
UdbLexeme **lexeme
Points to the array of lexemes returned.

Return Values

Return Value
Description
int
Returns true if lexemes were found at the specified location; false otherwise.

Example Usage

status = udbLexerLexemes(lexer, start, end, &lexList); 

See Also

udbLexemeNext

udbLexemePrevious

udbLexerFirst

udbLexerLexeme


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