Ejemplo n.º 1
0
        //	Identify self
        public override void Identify(ref string szData)
        {
            szData += "<";
            szData += "IFStatement";
            szData += ">";

            szData += "<";
            szData += "Expression";
            szData += ">";
            if (m_pExpression != null)
            {
                m_pExpression.Identify(ref szData);
            }
            szData += "</";
            szData += "Expression";
            szData += ">";
            if (m_pStatement != null)
            {
                m_pStatement.Identify(ref szData);
            }

            szData += "</";
            szData += "IFStatement";
            szData += ">";

            if (m_pElse != null)
            {
                m_pElse.Identify(ref szData);
            }
        }
Ejemplo n.º 2
0
        //	Identify self
        public override void Identify(ref string szData)
        {
            szData += "<";
            szData += "WHILEStatement";
            szData += ">";

            szData += "<";
            szData += "Expression";
            szData += ">";
            if (expressionNodeType == GRAMMAR_NODE_TYPE.NODE_TYPE_EXPRESSION)
            {
                m_pExpression.Identify(ref szData);
            }
            else
            {
                m_pExpressionStatement.Identify(ref szData);
            }
            szData += "</";
            szData += "Expression";
            szData += ">";
            m_pStatement.Identify(ref szData);

            szData += "</";
            szData += "WHILEStatement";
            szData += ">";
        }
Ejemplo n.º 3
0
        //	Identify self
        public override void Identify(ref string szData)
        {
            szData += "<";
            szData += "ELSEStatement";
            szData += ">";

            if (m_pStatement != null)
            {
                m_pStatement.Identify(ref szData);
            }
            szData += "</";
            szData += "ELSEStatement";
            szData += ">";
        }