public override void Emit(EmissionStream stream) { stream.WriteLine(";DCPUB FUNCTION " + functionName + " " + entranceLabel + " " + parameterCount); base.Emit(stream); stream.WriteLine(";END FUNCTION"); stream.WriteLine(""); }
public virtual void EmitIR(EmissionStream stream, bool Tidy) { if (!Tidy) stream.WriteLine("[generic node]"); stream.indentDepth += 1; foreach (var child in children) child.EmitIR(stream, Tidy); stream.indentDepth -= 1; if (!Tidy) stream.WriteLine("[/generic node]"); }
public override void EmitIR(EmissionStream stream, bool Tidy) { if (!Tidy) stream.WriteLine("[function node]"); stream.WriteLine(";DCPUB FUNCTION " + functionName + " " + entranceLabel + " " + parameterCount); base.EmitIR(stream, Tidy); stream.WriteLine(";END FUNCTION"); if (!Tidy) stream.WriteLine("[/function node]"); stream.WriteLine(""); }
public override void EmitIR(EmissionStream stream, bool Tidy) { if (Tidy) return; var commentLines = comment.Split(new char[] { '\n', '\r' }, StringSplitOptions.RemoveEmptyEntries); foreach (var line in commentLines) stream.WriteLine("[a /] ; " + line); }
public override void Emit(EmissionStream stream) { var commentLines = comment.Split(new char[] { '\n', '\r' }, StringSplitOptions.RemoveEmptyEntries); foreach (var line in commentLines) stream.WriteLine("; " + line); }
public override void EmitIR(EmissionStream stream, bool Tidy) { if (!Tidy) stream.WriteLine("[transient node]"); stream.indentDepth += 1; foreach (var child in children) child.EmitIR(stream, Tidy); stream.indentDepth -= 1; if (!Tidy) stream.WriteLine("[/transient node]"); }
public override void EmitIR(EmissionStream stream, bool Tidy) { var str = "DAT " + String.Join(" ", data); stream.WriteLine(str); }