OpenMD 3.1
Molecular Dynamics in the Open
Loading...
Searching...
No Matches
antlr::ParserInputState Class Reference

This object contains the data associated with an input stream of tokens. More...

#include <ParserSharedInputState.hpp>

Public Member Functions

 ParserInputState (TokenBuffer *in)
 Construct a new ParserInputState.
 
 ParserInputState (TokenBuffer &in)
 Construct a new ParserInputState.
 
TokenBuffergetInput (void)
 
void reset (void)
 Reset the ParserInputState and the underlying TokenBuffer.
 

Public Attributes

int guessing
 Are we guessing (guessing>0)?
 
std::string filename
 What file (if known) caused the problem?
 

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.

Definition at line 25 of file ParserSharedInputState.hpp.

Constructor & Destructor Documentation

◆ ParserInputState() [1/2]

antlr::ParserInputState::ParserInputState ( TokenBuffer * in)
inline

Construct a new ParserInputState.

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

Definition at line 31 of file ParserSharedInputState.hpp.

◆ ParserInputState() [2/2]

antlr::ParserInputState::ParserInputState ( TokenBuffer & in)
inline

Construct a new ParserInputState.

Parameters
inthe TokenBuffer to read from.

Definition at line 41 of file ParserSharedInputState.hpp.

◆ ~ParserInputState()

virtual antlr::ParserInputState::~ParserInputState ( )
inlinevirtual

Definition at line 49 of file ParserSharedInputState.hpp.

Member Function Documentation

◆ getInput()

TokenBuffer & antlr::ParserInputState::getInput ( void )
inline

Definition at line 55 of file ParserSharedInputState.hpp.

◆ reset()

void antlr::ParserInputState::reset ( void )
inline

Reset the ParserInputState and the underlying TokenBuffer.

Definition at line 61 of file ParserSharedInputState.hpp.

Member Data Documentation

◆ filename

std::string antlr::ParserInputState::filename

What file (if known) caused the problem?

Todo
wrap this one..

Definition at line 73 of file ParserSharedInputState.hpp.

◆ guessing

int antlr::ParserInputState::guessing

Are we guessing (guessing>0)?

Definition at line 69 of file ParserSharedInputState.hpp.


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