Google

Main Page   Class Hierarchy   Compound List   File List   Compound Members  

iLexicalAnalyzer Struct Reference

The interface to the lexical analyzer / regular expression virtual machine. More...

#include <lexan.h>

Inheritance diagram for iLexicalAnalyzer:

iBase List of all members.

Public Methods

virtual bool RegisterRegExp (unsigned int key, iRegExp &re)=0
 Register a regular expression for matching.

virtual bool UnregisterRegExp (unsigned int key)=0
 Unregister a previously registered expression.

virtual unsigned int GetFreeKey ()=0
 Requests a new (free) key.

virtual unsigned int GetError ()=0
 Returns the last error. Value is only valid when a member function has returned false.

virtual unsigned int GetMatchedKey ()=0
 Returns the key of the last RE matched.

virtual iStringGetMatchedText ()=0
 Returns a pointer to the last matched text.

virtual bool PushStream (iDataBuffer &buf)=0
 Saves the current input stream and state, then resets the current state and uses stream from buf.

virtual bool PopStream ()=0
 Replaces the current input stream and state with the next stream and state on the stack.

virtual unsigned int Match ()=0
 Scans the input stream for a match by one of the RegularExpression's returns 0 on failure, otherwise returns the key of the matched RE.


Detailed Description

The interface to the lexical analyzer / regular expression virtual machine.


The documentation for this struct was generated from the following file:
Generated for Crystal Space by doxygen 1.2.5 written by Dimitri van Heesch, ©1997-2000