Example #1
0
    /// <summary>
    /// InitFunctions(): Creates all operation functions recognized by the compiler.
    /// </summary>
    private void InitFunctions()
    {
        m_aOps = new COperator[11];

        m_aOps[0]  = new CAdd();
        m_aOps[1]  = new CSubtract();
        m_aOps[2]  = new CMultiply();
        m_aOps[3]  = new CDivide();
        m_aOps[4]  = new CGreaterThan();
        m_aOps[5]  = new CGreaterThanEq();
        m_aOps[6]  = new CLessThan();
        m_aOps[7]  = new CLessThanEq();
        m_aOps[8]  = new CEqual();
        m_aOps[9]  = new CNotEqual();
        m_aOps[10] = new CPower();
    }
        /// <summary>
        /// InitFunctions(): Creates all operation functions recognized by the compiler.
        /// </summary>
        private void InitFunctions()
        {
            m_aOps = new COperator[11];

            m_aOps[0] = new CAdd();
            m_aOps[1] = new CSubtract();
            m_aOps[2] = new CMultiply();
            m_aOps[3] = new CDivide();
            m_aOps[4] = new CGreaterThan();
            m_aOps[5] = new CGreaterThanEq();
            m_aOps[6] = new CLessThan();
            m_aOps[7] = new CLessThanEq();
            m_aOps[8] = new CEqual();
            m_aOps[9] = new CNotEqual();
            m_aOps[10] = new CPower();
        }