示例#1
0
 //	Identify self
 public override void Identify(ref string szData)
 {
     szData += "<Program>";
     m_pDeclarations.Identify(ref szData);
     m_pStmtList.Identify(ref szData);
     szData += "</Program>";
 }
示例#2
0
        //	Identify self
        public override void Identify(ref string szData)
        {
            szData += "<";
            szData += "CompoundStatement";
            szData += ">";

            if (m_pStmtList != null)
            {
                m_pStmtList.Identify(ref szData);
            }

            szData += "</";
            szData += "CompoundStatement";
            szData += ">";
        }
示例#3
0
        //	Identify self
        public override void Identify(ref string szData)
        {
            if (m_bIsDefaultCase)
            {
                szData += "<";
                szData += "DEFAULT";
                szData += ">";
            }
            else
            {
                szData += "<";
                szData += "CASEStatement";
                szData += ">";
            }


            if (m_pExpression != null)
            {
                m_pExpression.Identify(ref szData);
            }

            if (m_pStatementList != null)
            {
                m_pStatementList.Identify(ref szData);
            }

            if (m_bIsDefaultCase)
            {
                szData += "</";
                szData += "DEFAULT";
                szData += ">";
            }
            else
            {
                szData += "</";
                szData += "CASEStatement";
                szData += ">";
            }
        }