The Vish Visualization Shell 0.3
Vish
Public Member Functions | Public Attributes | List of all members
Eagle::ParserContext Class Reference

Internal class for communicating with the Bison/Yacc Parser and Flexical Stanza Generator. More...

#include <ocean/parzival/ParserContext.hpp>

Inheritance diagram for Eagle::ParserContext:
Eagle::Context

Public Member Functions

int getStanza () const
 Internal function to return a flex instance.
 
string getToken () const override
 Get the currently processed token.
 
 ParserContext (istream *arg_yyin=0, ostream *arg_yyout=0)
 Prepare an input stream for parsing.
 
- Public Member Functions inherited from Eagle::Context
virtual bool accessVariable (const type_info &type, const Context::id_t &id, const string &name)
 Allow a derived parser context to determine if a specific variable has actually been used in the parsing process at all.
 
size_t findNumberOfVariables (const type_info &type) const
 Inspect how many variables exist of the given type.
 
id_t findVariable (const type_info &type, const string &s) const
 Find a variable of the given type and name.
 
int iterate (const type_info &type, Iterator &it)
 Iterate over all variables of a specific type.
 

Public Attributes

MemCore::RefPtr< NodeRootNode
 The result of the parsing activity.
 

Additional Inherited Members

- Static Public Member Functions inherited from Eagle::Context
template<class Type >
static bool isVariable (Context &C, id_t &id)
 Look up the current getToken() of the Context if it is known as a valid variable in this Context, and of the certain type.
 

Detailed Description

Internal class for communicating with the Bison/Yacc Parser and Flexical Stanza Generator.