Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

LexerInputState Class Reference

#include <LexerSharedInputState.hpp>

List of all members.

Public Methods

 LexerInputState (InputBuffer *inbuf)
 LexerInputState (InputBuffer &inbuf)
 LexerInputState (ANTLR_USE_NAMESPACE(std) istream &in)
virtual void initialize (ANTLR_USE_NAMESPACE(std) istream &in, const char *file="")
virtual void reset (void)
void setPosition (int line_, int column_)
virtual ~LexerInputState ()
 ANTLR_USE_NAMESPACE (std) string filename
InputBuffer & getInput ()

Public Attributes

int column
int line
int tokenStartColumn
int tokenStartLine
int guessing


Detailed Description

This object contains the data associated with an input stream of characters. Multiple lexers share a single LexerSharedInputState to lex the same input stream.


Constructor & Destructor Documentation

LexerInputState::LexerInputState (  InputBuffer *    inbuf )  [inline]
 

Construct a new LexerInputState

Parameters:
inbuf  the InputBuffer to read from. The object is deleted together with the LexerInputState object.

LexerInputState::LexerInputState (  InputBuffer &    inbuf )  [inline]
 

Construct a new LexerInputState

Parameters:
inbuf  the InputBuffer to read from.

LexerInputState::LexerInputState (  ANTLR_USE_NAMESPACE(std) istream &    in )  [inline]
 

Construct a new LexerInputState

Parameters:
in  an istream to read from.
See also:
antlr.CharBuffer

virtual LexerInputState::~LexerInputState (    )  [inline, virtual]
 


Member Function Documentation

LexerInputState::ANTLR_USE_NAMESPACE (  std    ) 
 

What file (if known) caused the problem?

InputBuffer & LexerInputState::getInput (    )  [inline]
 

virtual void LexerInputState::initialize (  ANTLR_USE_NAMESPACE(std) istream &    in,
const char *    file = ""
)  [inline, virtual]
 

Reset the LexerInputState with a specified stream and filename. This method is a hack, dunno what I was thinking when I added it. This should actually be done in a subclass.

Deprecated:

virtual void LexerInputState::reset (  void    )  [inline, virtual]
 

Reset the LexerInputState to initial state. The underlying InputBuffer is also reset.

void LexerInputState::setPosition (  int    line_,
int    column_
)  [inline]
 

Set the file position of the SharedLexerInputState.

Parameters:
line_  line number to be set
column_  column number to be set


Member Data Documentation

int LexerInputState::column
 

int LexerInputState::guessing
 

int LexerInputState::line
 

int LexerInputState::tokenStartColumn
 

int LexerInputState::tokenStartLine
 


The documentation for this class was generated from the following file:
Generated on Wed Nov 3 12:59:44 2004 for Lemur Toolkit by doxygen1.2.18