|
cloudy
trunk
|
#include "cddefines.h"#include "parser.h"#include "called.h"#include "flux.h"#include "input.h"#include "elementnames.h"#include "service.h"#include "depth_table.h"#include "lines.h"#include <deque>
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) |
| Symbol | maybeNumber (bool numOK, const Symbol &s) |
| typedef std::map<string,double> symtab |
Definition at line 28 of file parser.cpp.
| STATIC bool doop | ( | vector< double > & | valstack, |
| const string & | op | ||
| ) |
Definition at line 607 of file parser.cpp.
References DEBUG_ENTRY, fprintf(), ioQQQ, and pow().
Referenced by ParseExp(), and ParseProduct().

| bool isBoundaryChar | ( | char | c | ) |
Definition at line 103 of file parser.cpp.
Referenced by Parser::nMatch1(), and nWord().
Definition at line 769 of file parser.cpp.
References DEBUG_ENTRY, Symbol::ERROR, fprintf(), ioQQQ, and Symbol::value.
Referenced by Parser::getSymbol().

| 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
| *chKey | |
| *chCard |
Definition at line 57 of file parser.cpp.
References ASSERT, DEBUG_ENTRY, and isBoundaryChar().
Referenced by Parser::nWord().

Definition at line 636 of file parser.cpp.
References DEBUG_ENTRY, doop(), and ParseNumber().
Referenced by ParseProduct().

| STATIC bool ParseExpr | ( | deque< Token > & | chTokens, |
| vector< double > & | valstack, | ||
| const symtab & | tab | ||
| ) |
Definition at line 696 of file parser.cpp.
References DEBUG_ENTRY, and ParseProduct().
Referenced by Parser::FFmtRead().

| STATIC bool ParseNumber | ( | deque< Token > & | chTokens, |
| vector< double > & | valstack, | ||
| const symtab & | tab | ||
| ) |
Definition at line 577 of file parser.cpp.
References cdEXIT, DEBUG_ENTRY, EXIT_FAILURE, fprintf(), and ioQQQ.
Referenced by ParseExp().

| STATIC bool ParseProduct | ( | deque< Token > & | chTokens, |
| vector< double > & | valstack, | ||
| const symtab & | tab | ||
| ) |
Definition at line 672 of file parser.cpp.
References DEBUG_ENTRY, doop(), and ParseExp().
Referenced by ParseExpr().

1.8.5