cloudy trunk
Loading...
Searching...
No Matches
parser.cpp File Reference
#include "cddefines.h"
#include "parser.h"
#include "called.h"
#include "energy.h"
#include "flux.h"
#include "input.h"
#include "elementnames.h"
#include <deque>
Include dependency graph for parser.cpp:

Go to the source code of this file.

Typedefs

typedef std::map< string, double > symtab

Functions

STATIC bool ParseExpr (deque< Token > &chTokens, vector< double > &valstack, const symtab &tab)
const char * nWord (const char *chKey, const char *chCard)
bool isBoundaryChar (char c)
STATIC bool ParseNumber (deque< Token > &chTokens, vector< double > &valstack, const symtab &tab)
STATIC bool doop (vector< double > &valstack, const string &op)
STATIC bool ParseExp (deque< Token > &chTokens, vector< double > &valstack, const symtab &tab)
STATIC bool ParseProduct (deque< Token > &chTokens, vector< double > &valstack, const symtab &tab)

Typedef Documentation

◆ symtab

typedef std::map<string,double> symtab

Definition at line 26 of file parser.cpp.

Function Documentation

◆ doop()

STATIC bool doop ( vector< double > & valstack,
const string & op )

Definition at line 496 of file parser.cpp.

References ioQQQ, and STATIC.

Referenced by ParseExp(), and ParseProduct().

◆ isBoundaryChar()

bool isBoundaryChar ( char c)

Definition at line 83 of file parser.cpp.

Referenced by Parser::nMatch1(), and nWord().

◆ nWord()

const char * nWord ( const char * chKey,
const char * chCard )

nWord determine whether match to a keyword occurs on command line, return value is 0 if no match, and position of match within string if hit

Parameters
*chKey
*chCard

Definition at line 37 of file parser.cpp.

References ASSERT, DEBUG_ENTRY, and isBoundaryChar().

Here is the call graph for this function:

◆ ParseExp()

STATIC bool ParseExp ( deque< Token > & chTokens,
vector< double > & valstack,
const symtab & tab )

Definition at line 524 of file parser.cpp.

References doop(), ParseNumber(), and STATIC.

Referenced by ParseProduct().

Here is the call graph for this function:

◆ ParseExpr()

STATIC bool ParseExpr ( deque< Token > & chTokens,
vector< double > & valstack,
const symtab & tab )

Definition at line 582 of file parser.cpp.

References ParseProduct(), and STATIC.

Referenced by Parser::FFmtRead().

Here is the call graph for this function:

◆ ParseNumber()

STATIC bool ParseNumber ( deque< Token > & chTokens,
vector< double > & valstack,
const symtab & tab )

Definition at line 466 of file parser.cpp.

References cdEXIT, DEBUG_ENTRY, EXIT_FAILURE, ioQQQ, and STATIC.

Referenced by ParseExp().

◆ ParseProduct()

STATIC bool ParseProduct ( deque< Token > & chTokens,
vector< double > & valstack,
const symtab & tab )

Definition at line 559 of file parser.cpp.

References doop(), ParseExp(), and STATIC.

Referenced by ParseExpr().

Here is the call graph for this function: