Exemple #1
0
 public override void Dump(TextWriter w, int indent)
 {
     w.WriteLine($"{Utils.Indent(indent)}- {_macroOrDataTypeName} {SourcePosition.AstDesc()}");
     foreach (var o in _operands)
     {
         o.Dump(w, indent + 1);
     }
 }
Exemple #2
0
 public override void Dump(TextWriter w, int indent)
 {
     w.WriteLine($"{Utils.Indent(indent)}- {_mnemonic.ToUpperInvariant()} {SourcePosition.AstDesc()}");
     foreach (var o in _operands)
     {
         o.Dump(w, indent + 1);
     }
 }
Exemple #3
0
 public override void Dump(TextWriter w, int indent)
 {
     w.WriteLine($"{Utils.Indent(indent)}- CONTAINER {Name} {SourcePosition.AstDesc()}");
     foreach (var e in _elements)
     {
         e.Dump(w, indent + 1);
     }
 }
Exemple #4
0
 public override void Dump(TextWriter w, int indent)
 {
     w.WriteLine($"{Utils.Indent(indent)}- STRUCT: '{_name}' {SourcePosition.AstDesc()}");
     foreach (var f in _fields)
     {
         f.Dump(w, indent + 1);
     }
 }
Exemple #5
0
 public override void Dump(TextWriter w, int indent)
 {
     w.WriteLine($"{Utils.Indent(indent)}- BITMAP {SourcePosition.AstDesc()}");
     _width.Dump(w, indent + 1);
     _height.Dump(w, indent + 1);
     foreach (var v in _strings)
     {
         w.WriteLine($"{Utils.Indent(indent + 1)} '{v}'");
     }
 }
Exemple #6
0
 public override void Dump(TextWriter w, int indent)
 {
     if (_warning)
     {
         w.WriteLine($"{Utils.Indent(indent)}- WARNING: '{_message}' {SourcePosition.AstDesc()}");
     }
     else
     {
         w.WriteLine($"{Utils.Indent(indent)}- ERROR: '{_message}' {SourcePosition.AstDesc()}");
     }
 }
Exemple #7
0
        public override void Dump(TextWriter w, int indent)
        {
            w.WriteLine($"{Utils.Indent(indent)}- CONDITIONAL {SourcePosition.AstDesc()}");
            Condition.Dump(w, indent + 1);

            w.WriteLine($"{Utils.Indent(indent + 1)}- TRUE BLOCK");
            TrueBlock.Dump(w, indent + 2);

            if (FalseBlock != null)
            {
                w.WriteLine($"{Utils.Indent(indent + 1)}- FALSE BLOCK");
                FalseBlock.Dump(w, indent + 2);
            }
        }
Exemple #8
0
        public override void Dump(TextWriter w, int indent)
        {
            w.WriteLine($"{Utils.Indent(indent)}- EQU '{_name}' {SourcePosition.AstDesc()}");

            if (ParameterNames != null)
            {
                w.WriteLine($"{Utils.Indent(indent + 1)}- PARAMETERS");
                foreach (var p in ParameterNames)
                {
                    w.WriteLine($"{Utils.Indent(indent + 2)}- '{p}'");
                }
            }

            _value.Dump(w, indent + 1);
        }
Exemple #9
0
        public override void Dump(TextWriter w, int indent)
        {
            w.Write($"{Utils.Indent(indent)}- INCBIN '{_filename}' {SourcePosition.AstDesc()}");

            for (int i = 0; i < _data.Length; i++)
            {
                if ((i % 16) == 0)
                {
                    w.Write($"\n{Utils.Indent(indent + 1)}- ");
                }
                w.Write("{0:X2} ", _data[i]);
            }

            if (_data.Length > 0)
            {
                w.WriteLine();
            }
        }
Exemple #10
0
 public override void Dump(TextWriter w, int indent)
 {
     w.WriteLine($"{Utils.Indent(indent)}- INCLUDE '{_filename}' {SourcePosition.AstDesc()}");
     _content.Dump(w, indent + 1);
 }
Exemple #11
0
 public override void Dump(TextWriter w, int indent)
 {
     w.WriteLine($"{Utils.Indent(indent)}- LABEL '{_name}' {SourcePosition.AstDesc()}");
 }
Exemple #12
0
 public override void Dump(TextWriter w, int indent)
 {
     w.WriteLine($"{Utils.Indent(indent)}- DW {SourcePosition.AstDesc()}");
     _bytesExpression.Dump(w, indent + 1);
 }
Exemple #13
0
 public override void Dump(TextWriter w, int indent)
 {
     w.WriteLine($"{Utils.Indent(indent)}- SEEK {SourcePosition.AstDesc()}");
     _expr.Dump(w, indent + 1);
 }
Exemple #14
0
 public override void Dump(TextWriter w, int indent)
 {
     w.WriteLine($"{Utils.Indent(indent)}- DEFBITS '{_character}' = '{_bitPattern}' {SourcePosition.AstDesc()}");
 }