public override Value Execute(Args args, Environment environment, SourcePos pos) { var obj = args.GetAsString("obj"); var output = args.GetOutput("out", environment.Get("stdout", pos).AsOutput()); output.Write(obj.GetValue()); return(ValueNull.NULL); }
public override Value Execute(Args args, Environment environment, SourcePos pos) { ValueString obj; if (args.HasArg("obj")) { obj = args.GetAsString("obj"); } else { obj = new ValueString(""); } var output = args.GetOutput("out", environment.Get("stdout", pos).AsOutput()); output.WriteLine(obj.GetValue()); return(ValueNull.NULL); }
public override Value Execute(Args args, Environment environment, SourcePos pos) { var output = args.GetOutput("output"); return(new ValueString(output.GetStringOutput())); }