ANTLR Support Libraries 2.7.1+
Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
ParserInputState Class Reference

#include <ParserSharedInputState.hpp>

Collaboration diagram for ParserInputState:
Collaboration graph
[legend]

Public Member Functions

 ParserInputState (TokenBuffer *in)
 
 ParserInputState (TokenBuffer &in)
 
virtual ~ParserInputState ()
 
TokenBuffergetInput (void)
 
void reset (void)
 Reset the ParserInputState and the underlying TokenBuffer. More...
 

Public Attributes

int guessing
 
std ::string filename
 

Private Member Functions

 ParserInputState (const ParserInputState &)
 
ParserInputStateoperator= (const ParserInputState &)
 

Private Attributes

TokenBufferinput
 
bool inputResponsible
 Do we need to free the TokenBuffer or is it owned by another.. More...
 

Detailed Description

This object contains the data associated with an input stream of tokens. Multiple parsers share a single ParserSharedInputState to parse the same stream of tokens.

Constructor & Destructor Documentation

◆ ParserInputState() [1/3]

ParserInputState::ParserInputState ( TokenBuffer in)
inline

Construct a new ParserInputState

Parameters
inthe TokenBuffer to read from. The object is deleted together with the ParserInputState object.

◆ ParserInputState() [2/3]

ParserInputState::ParserInputState ( TokenBuffer in)
inline

Construct a new ParserInputState

Parameters
inthe TokenBuffer to read from.

◆ ~ParserInputState()

virtual ParserInputState::~ParserInputState ( )
inlinevirtual

◆ ParserInputState() [3/3]

ParserInputState::ParserInputState ( const ParserInputState )
private

Member Function Documentation

◆ getInput()

TokenBuffer& ParserInputState::getInput ( void  )
inline

◆ operator=()

ParserInputState& ParserInputState::operator= ( const ParserInputState )
private

◆ reset()

void ParserInputState::reset ( void  )
inline

Reset the ParserInputState and the underlying TokenBuffer.

Member Data Documentation

◆ filename

std ::string ParserInputState::filename

What file (if known) caused the problem?

Todo:
wrap this one..

◆ guessing

int ParserInputState::guessing

Are we guessing (guessing>0)?

◆ input

TokenBuffer* ParserInputState::input
private

Where to get token objects

◆ inputResponsible

bool ParserInputState::inputResponsible
private

Do we need to free the TokenBuffer or is it owned by another..


The documentation for this class was generated from the following file: