Parses extression into a single operand or more generally, a tree of formulae that will evaluate to a single value.
| Return Type | Function name | Arguments |
|---|---|---|
| hzEcode | hzNumexp::Parse | (const char*,) |
Declared in file: hzNumexp.h
Defined in file : hzNumexp.cpp
Function Logic:
Function body:
hzEcode hzNumexp::Parse (const char* pExp)
{
// Parses extression into a single operand or more generally, a tree of formulae that will evaluate to a single value.
//
// Arguments: 1) pExp Numeric expression
//
// Returns: E_FORMAT If the expression could not be tokenized or could not be parsed.
// E_OK If the expression was parsed.
_hzfunc("hzNumexp::Parse_a") ;
hzEcode rc ; // Return code
// tokenize the expression
rc = TokenizeString(m_Tokens, pExp, TOK_MO_BOOL) ;
if (rc != E_OK)
return E_FORMAT ;
m_pRoot = Parse() ;
if (!m_pRoot)
return E_FORMAT ;
return E_OK ;
}