NEST  2.6.0,not_revisioned_source_dir@0
Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
Parser Class Reference

#include <parser.h>

Inheritance diagram for Parser:
AggregateDatum< Parser,&SLIInterpreter::Parsertype > ParserDatum

Public Member Functions

 Parser (void)
 
 Parser (std::istream &)
 
bool operator() (Token &)
 
bool readToken (std::istream &is, Token &t)
 
bool readSymbol (std::istream &is, Token &t)
 
Scanner const * scan (void) const
 
void clear_context ()
 

Private Types

enum  ParseResult {
  tokencontinue, scancontinue, tokencompleted, noopenproc,
  endprocexpected, noopenarray, endarrayexpected, unexpectedeof
}
 

Private Member Functions

void init (std::istream &)
 

Private Attributes

Scanners
 
Token arraytoken
 
Token proctoken
 
TokenStack ParseStack
 

Member Enumeration Documentation

enum Parser::ParseResult
private
Enumerator
tokencontinue 
scancontinue 
tokencompleted 
noopenproc 
endprocexpected 
noopenarray 
endarrayexpected 
unexpectedeof 

Constructor & Destructor Documentation

Parser::Parser ( void  )

References assert(), init(), and s.

Parser::Parser ( std::istream &  is)

References assert(), init(), and s.

Member Function Documentation

void Parser::clear_context ( )
inline
void Parser::init ( std::istream &  is)
private

References arraytoken, and s.

Referenced by Parser().

bool Parser::operator() ( Token t)
bool Parser::readSymbol ( std::istream &  is,
Token t 
)
inline

References s, and Scanner::source().

Referenced by Symbol_sFunction::execute().

bool Parser::readToken ( std::istream &  is,
Token t 
)
inline
Scanner const* Parser::scan ( void  ) const
inline

Member Data Documentation

Token Parser::arraytoken
private

Referenced by init().

TokenStack Parser::ParseStack
private

Referenced by operator()().

Token Parser::proctoken
private
Scanner* Parser::s
private

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