Class DLexer

Inherits from:
Object
Declared in:
DLexer.h

Class Hierarchy

    Object
      |
      +---DLexer

Class Description

The DLexer class implements a (simple) lexical scanner. The scanner scans a text stream for constant strings and regular expressions. There are two sets of services nextString+nextExpression and checkString+checkExpression. The first set check for the string or expression and if it is a match, the scanner location is moved to the next location in the source. The second set of services only return the result of the match, the client must call the service 'next' to move the scanner location.

Last modified:
23-Jul-2006 (DLexer.h)

Instance Variables

private DList *_sources
the stack with the sources
private DSource *_source
the source for the scanner
private DText *_text
the last scanned text
private BOOL _eoff
is end of file reached ?
private unsigned _scanned
the length of the scanned text
private DRegEx *_whiteSpace
the white space expression
private DRegEx *_expression
the normally used regular expression
private BOOL _caseSensitive
is the lexer case sensitive (def: YES)

Method Index


generated 25-Jul-2006 by ObjcDoc 3.0.0