/// <summary> /// Dumps the contents of this parse node to the ParseNode XML /// output under the specified parent node. /// </summary> /// <param name="root">The parent XML node</param> public override void Dump(ParseNodeXML root) { ParseNodeXML blockNode = root.Node("Array"); Identifier.Dump(blockNode); blockNode.Write("StartRange", StartRange.ToString()); blockNode.Write("EndRange", EndRange.ToString()); blockNode.Write("RangeValue", RangeValue.ToString()); }
/// <summary> /// Dumps the contents of this parse node to the ParseNode XML /// output under the specified parent node. /// </summary> /// <param name="root">The parent XML node</param> public override void Dump(ParseNodeXML root) { ParseNodeXML blockNode = root.Node("Switch"); CompareExpression.Dump(blockNode); for (int c = 0; c < _caseList.Count; ++c) { ParseNode node = _caseList[c]; if (node != null) { node.Dump(blockNode); } node = _labelList[c]; if (node != null) { node.Dump(blockNode); } } }
/// <summary> /// Dumps the contents of this parse node to the ParseNode XML /// output under the specified parent node. /// </summary> /// <param name="root">The parent XML node</param> public override void Dump(ParseNodeXML root) { ParseNodeXML blockNode = root.Node("Program"); blockNode.Attribute("Name", Name); blockNode.Attribute("IsExecutable", IsExecutable.ToString()); Globals.Dump(blockNode); Root.Dump(blockNode); }
/// <summary> /// Dumps the contents of this parse node to the ParseNode XML /// output under the specified parent node. /// </summary> /// <param name="root">The parent XML node</param> public override void Dump(ParseNodeXML root) { ParseNodeXML blockNode = root.Node("Return"); if (ReturnExpression != null) { ReturnExpression.Dump(blockNode); } }
/// <summary> /// Dumps the contents of this parse node to the ParseNode XML /// output under the specified parent node. /// </summary> /// <param name="root">The parent XML node</param> public override void Dump(ParseNodeXML root) { root.Node("Null"); }
/// <summary> /// Dumps the contents of this parse node to the ParseNode XML /// output under the specified parent node. /// </summary> /// <param name="root">The parent XML node</param> public override void Dump(ParseNodeXML root) { ParseNodeXML blockNode = root.Node("BinaryOp"); blockNode.Attribute("ID", ID.ToString()); Left.Dump(blockNode); Right.Dump(blockNode); }
/// <summary> /// Dumps the contents of this parse node to the ParseNode XML /// output under the specified parent node. /// </summary> /// <param name="root">The parent XML node</param> public override void Dump(ParseNodeXML root) { ParseNodeXML subNode = root.Node("Line"); subNode.Attribute("Number", LineNumber.ToString()); }
/// <summary> /// Dumps the contents of this parse node to the ParseNode XML /// output under the specified parent node. /// </summary> /// <param name="root">The parent XML node</param> public override void Dump(ParseNodeXML root) { ParseNodeXML blockNode = root.Node("Loop"); if (LoopVariable != null) { LoopVariable.Dump(blockNode.Node("LoopVariable")); } if (LoopValue != null) { LoopValue.Dump(blockNode.Node("LoopValue")); } if (StartExpression != null) { StartExpression.Dump(blockNode.Node("StartExpression")); } if (EndExpression != null) { EndExpression.Dump(blockNode.Node("EndExpression")); } if (StepExpression != null) { StepExpression.Dump(blockNode.Node("StepExpression")); } if (LoopBody != null) { blockNode = blockNode.Node("LoopBody"); foreach (ParseNode node in LoopBody.Nodes) { node.Dump(blockNode); } } }
/// <summary> /// Dumps the contents of this parse node to the ParseNode XML /// output under the specified parent node. /// </summary> /// <param name="root">The parent XML node</param> public override void Dump(ParseNodeXML root) { ParseNodeXML subNode = root.Node("Local"); subNode.Attribute("Index", _local.Index.ToString()); }
/// <summary> /// Dumps the contents of this parse node to the ParseNode XML /// output under the specified parent node. /// </summary> /// <param name="root">The parent XML node</param> public override void Dump(ParseNodeXML root) { ParseNodeXML blockNode = root.Node("Call"); ProcName.Dump(blockNode); Parameters.Dump(blockNode); }
/// <summary> /// Dumps the contents of this parse node to the ParseNode XML /// output under the specified parent node. /// </summary> /// <param name="root">The parent XML node</param> public override void Dump(ParseNodeXML root) { ParseNodeXML blockNode = root.Node("ExtCall"); blockNode.Attribute("Inline", Inline.ToString()); blockNode.Write("LibraryName", LibraryName); blockNode.Write("Name", Name); Parameters.Dump(blockNode); }
/// <summary> /// Dumps the contents of this parse node to the ParseNode XML /// output under the specified parent node. /// </summary> /// <param name="root">The parent XML node</param> public override void Dump(ParseNodeXML root) { ParseNodeXML blockNode = root.Node("Parameter"); _paramNode.Dump(blockNode); if (_symbol != null) { _symbol.Dump(blockNode); } }
/// <summary> /// Dumps the contents of this parse node to the ParseNode XML /// output under the specified parent node. /// </summary> /// <param name="root">The parent XML node</param> public override void Dump(ParseNodeXML root) { ParseNodeXML blockNode = root.Node("Identifier"); blockNode.Attribute("Name", Symbol.Name); if (HasIndexes) { ParseNodeXML subNode = blockNode.Node("Indexes"); foreach (ParseNode index in Indexes) { index.Dump(subNode); } } if (HasSubstring) { ParseNodeXML subNode = blockNode.Node("Substring"); SubstringStart.Dump(subNode); if (SubstringEnd != null) { SubstringEnd.Dump(subNode); } } }
/// <summary> /// Dumps the contents of this parse node to the ParseNode XML /// output under the specified parent node. /// </summary> /// <param name="root">The parent XML node</param> public override void Dump(ParseNodeXML root) { ParseNodeXML blockNode = root.Node("WriteItem"); WriteParamsNode.Dump(blockNode); }
/// <summary> /// Dumps the contents of this parse node to the ParseNode XML /// output under the specified parent node. /// </summary> /// <param name="root">The parent XML node</param> public override void Dump(ParseNodeXML root) { ParseNodeXML blockNode = root.Node("Write"); blockNode.Attribute("FirstColumnSpecial", FirstColumnSpecial.ToString()); WriteManagerParamsNode.Dump(blockNode.Node("WriteManagerParams")); WriteParamsNode.Dump(blockNode.Node("WriteParams")); if (ArgList != null) { ArgList.Dump(blockNode); } }
/// <summary> /// Dumps the contents of this parse node to the ParseNode XML /// output under the specified parent node. /// </summary> /// <param name="root">The parent XML node</param> public override void Dump(ParseNodeXML root) { ParseNodeXML blockNode = root.Node("ReadItem"); ReadParamsNode.Dump(blockNode); }
/// <summary> /// Dumps the contents of this parse node to the ParseNode XML /// output under the specified parent node. /// </summary> /// <param name="root">The parent XML node</param> public override void Dump(ParseNodeXML root) { ParseNodeXML blockNode = root.Node("Read"); ReadManagerParamsNode.Dump(blockNode.Node("ReadManagerParams")); ReadParamsNode.Dump(blockNode.Node("ReadParams")); ArgList.Dump(blockNode); }
/// <summary> /// Dumps the contents of this parse node to the ParseNode XML /// output under the specified parent node. /// </summary> /// <param name="root">The parent XML node</param> public abstract void Dump(ParseNodeXML root);
/// <summary> /// Dumps the contents of this parse node to the ParseNode XML /// output under the specified parent node. /// </summary> /// <param name="root">The parent XML node</param> public override void Dump(ParseNodeXML root) { ParseNodeXML blockNode = root.Node("Conditional"); for (int c = 0; c < _exprList.Count; ++c) { ParseNode expr = _exprList[c]; if (expr != null) { expr.Dump(blockNode); } ParseNode body = _bodyList[c]; if (body != null) { body.Dump(blockNode); } } }
/// <summary> /// Dumps the contents of this parse node to the ParseNode XML /// output under the specified parent node. /// </summary> /// <param name="root">The parent XML node</param> public override void Dump(ParseNodeXML root) { ParseNodeXML blockNode = root.Node("Symbols"); foreach (Symbol symbol in Symbols) { symbol.Dump(blockNode); } }
/// <summary> /// Dumps the contents of this parse node to the ParseNode XML /// output under the specified parent node. /// </summary> /// <param name="root">The parent XML node</param> public override void Dump(ParseNodeXML root) { ParseNodeXML subNode = root.Node("Label"); subNode.Attribute("Name", Label.Name); }
/// <summary> /// Dumps the contents of this parse node to the ParseNode XML /// output under the specified parent node. /// </summary> /// <param name="root">The parent XML node</param> public override void Dump(ParseNodeXML root) { ParseNodeXML blockNode = root.Node("Block"); foreach (ParseNode node in Nodes) { node.Dump(blockNode); } }
/// <summary> /// Dumps the contents of this parse node to the ParseNode XML /// output under the specified parent node. /// </summary> /// <param name="root">The parent XML node</param> public override void Dump(ParseNodeXML root) { ParseNodeXML subNode = root.Node("Filename"); subNode.Attribute("Name", Filename); }
/// <summary> /// Dumps the contents of this parse node to the ParseNode XML /// output under the specified parent node. /// </summary> /// <param name="root">The parent XML node</param> public override void Dump(ParseNodeXML root) { ParseNodeXML blockNode = root.Node("UnaryOp"); blockNode.Attribute("ID", ID.ToString()); Operand.Dump(blockNode); }
/// <summary> /// Dumps the contents of this parse node to the ParseNode XML /// output under the specified parent node. /// </summary> /// <param name="root">The parent XML node</param> public override void Dump(ParseNodeXML root) { ParseNodeXML subNode = root.Node("Number"); subNode.Attribute("Value", Value.ToString()); }
/// <summary> /// Dumps the contents of this parse node to the ParseNode XML /// output under the specified parent node. /// </summary> /// <param name="root">The parent XML node</param> public override void Dump(ParseNodeXML root) { ParseNodeXML blockNode = root.Node("Goto"); blockNode.Attribute("IsZeroBased", IsZeroBased.ToString()); if (ValueExpression != null) { ValueExpression.Dump(blockNode); } foreach (ParseNode node in Nodes) { node.Dump(blockNode); } }
/// <summary> /// Dumps the contents of this parse node to the ParseNode XML /// output under the specified parent node. /// </summary> /// <param name="root">The parent XML node</param> public override void Dump(ParseNodeXML root) { ParseNodeXML blockNode = root.Node("Assign"); Identifier.Dump(blockNode); ValueExpression.Dump(blockNode); }
/// <summary> /// Dumps the contents of this parse node to the ParseNode XML /// output under the specified parent node. /// </summary> /// <param name="root">The parent XML node</param> public override void Dump(ParseNodeXML root) { ParseNodeXML blockNode = root.Node("Procedure"); blockNode.Attribute("Name", ProcedureSymbol.Name); blockNode.Attribute("IsMainProgram", IsMainProgram.ToString()); LocalSymbols.Dump(blockNode); ParseNodeXML initNode = blockNode.Node("InitList"); foreach (ParseNode init in InitList.Nodes) { init.Dump(initNode); } ParseNodeXML statementNode = blockNode.Node("Statements"); foreach (ParseNode statement in Nodes) { statement.Dump(statementNode); } }