public void Step1() { MalStepsRunner.ExecuteTest("../../../MalSteps/step1_read_print.mal", verbose: this.verbose, (text, env) => Reader.ReadText(text) .Pipe(mal => Printer.PrintStr(mal, true)) , MalStepsRunner.Option.Deferrable, MalStepsRunner.Option.Optional ); }
private void ExecuteFile(string fileName) { MalStepsRunner.ExecuteTest($"../../../MalSteps/{fileName}", verbose: this.verbose, (text, env) => Reader.ReadText(text) .Pipe(mal => mal != null ? EvalM.Eval(mal !, env) : null) .Pipe(mal => Printer.PrintStr(mal, true)) , MalStepsRunner.Option.Deferrable, MalStepsRunner.Option.Optional ); }
public void Step0() { // var steps = MalStepsRunner.ReadTestCases("../../../MalSteps/step0_repl.mal"); // Console.WriteLine(string.Join(Environment.NewLine, // steps.Select(t => (t.Input, string.Join(",", t.Output), string.Join(",", t.Options))))); MalStepsRunner.ExecuteTest("../../../MalSteps/step0_repl.mal", verbose: this.verbose, (text, env) => text); }