udbLexerNew

Description

Creates a lexer for the specified entity. The original source file must be readable and unchanged since the last database parse.

Syntax

#include “udb/udb.h” 
UdbStatus udbLexerNew(UdbEntity entity, 
                       int ents, 
                        UdbLexer lexer) 

Arguments

Argument
Description
UdbEntity entity
Specify the entity for which to create a lexer.
int ents
If TRUE, associate identifiers with entities.
UdbLexer *lexer
Location at which to create the lexer.

Return Values

Return Values
Description
Udb_statusOkay
Lexer created successfully.
Udb_statusLexerFileModified
Lexer cannot be created because the file was modified since the database was analyzed.
Udb_statusLexerFileUnreadable
Lexer cannot be created because the file is unreadable.
Udb_statusLexerUnsupportedLanguage
Lexer cannot be created because the file is in an unsupported language.

Example Usage

status = udbLexerNew(entity, numLexemes, *lexer); 

See Also

udbLexerDelete


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