public override void EvaluateStatement(Document doc)
        {
            string name = doc.Resolve(m_name);

            doc.AppendLineFormat("{0}", name);
            doc.AppendLine("{"); EvaluateStatementInner(doc);
            doc.AppendLine("}");
        }
        public override void EvaluateStatement(Document doc)
        {
            string name = doc.Resolve(m_name);

            doc.AppendLineFormat("{0}", name);
            doc.AppendLine("{"); EvaluateStatementInner(doc);
            doc.AppendLine("}");
        }
        public override void EvaluateStatement(Document doc)
        {
            string name        = doc.Resolve( m_name        );
            string baseAddress = doc.Resolve( m_baseAddress );
            string options     = doc.Resolve( m_options     );
            string size        = doc.Resolve( m_size        );

            doc.AppendLineFormat( "{0} {1} {2} {3}", name, baseAddress, options, size );
            doc.AppendLine      ( "{"                                               ); EvaluateStatementInner( doc );
            doc.AppendLine      ( "}"                                               );
        }
Exemple #4
0
        public override void EvaluateStatement(Document doc)
        {
            string name        = doc.Resolve(m_name);
            string baseAddress = doc.Resolve(m_baseAddress);
            string options     = doc.Resolve(m_options);
            string size        = doc.Resolve(m_size);

            doc.AppendLineFormat("{0} {1} {2} {3}", name, baseAddress, options, size);
            doc.AppendLine("{"); EvaluateStatementInner(doc);
            doc.AppendLine("}");
        }
        public void EvaluateStatement(Document doc)
        {
            string   file = doc.Resolve(m_file);
            Document doc2 = Document.Load(file, doc);

            foreach (string res in doc2.Execute())
            {
                doc.AppendLine(res);
            }
        }
        public override void EvaluateStatement(Document doc)
        {
            string name = doc.Resolve(m_name);
            string baseAddress = doc.Resolve(m_baseAddress);
            string align = doc.Resolve(m_align);
            string options = doc.Resolve(m_options);
            string size = doc.Resolve(m_size);

            if (align.Length > 0)
            {
                doc.AppendLineFormat("    {0} {1} : ALIGN({2})", name, baseAddress, align);
            }
            else
            {
                doc.AppendLineFormat("    {0} {1} :", name, baseAddress);
            }

            doc.AppendLine("    {"); EvaluateStatementInner(doc);
            doc.AppendLineFormat("    }}{0}", options);
        }
        public override void EvaluateStatement(Document doc)
        {
            string name        = doc.Resolve(m_name);
            string baseAddress = doc.Resolve(m_baseAddress);
            string align       = doc.Resolve(m_align);
            string options     = doc.Resolve(m_options);
            string size        = doc.Resolve(m_size);

            if (align.Length > 0)
            {
                doc.AppendLineFormat("    {0} {1} : ALIGN({2})", name, baseAddress, align);
            }
            else
            {
                doc.AppendLineFormat("    {0} {1} :", name, baseAddress);
            }

            doc.AppendLine("    {"); EvaluateStatementInner(doc);
            doc.AppendLineFormat("    }}{0}", options);
        }
        public void EvaluateStatement( Document doc )
        {
            string   file = doc     .Resolve( m_file      );
            Document doc2 = Document.Load   (   file, doc );

            foreach(string res in doc2.Execute())
            {
                doc.AppendLine( res );
            }
        }