Parses extression into a single operand or more generally, a tree of formulae that will evaluate to a single value.

Return TypeFunction nameArguments
hzEcodehzNumexp::Parse(const char*,)

Declared in file: hzNumexp.h
Defined in file : hzNumexp.cpp

Function Logic:

0:START 1:rc 2:unknown 3:Return E_FORMAT 4:m_pRoot 5:unknown 6:Return E_FORMAT 7:Return E_OK

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 ;
}