public static string Print(CodeUnitBlock block) { PrettyPrinter visitor = new PrettyPrinter(); block.AcceptVisitor(visitor); return(visitor.ToString()); }
public void UpdateGeneratedCode() { pp.Clear(); pp.Visit(CodeUnit); generatedCode.Code = pp.ToString(); }
public static string Print(CodeUnitBlock block) { PrettyPrinter visitor = new PrettyPrinter(); block.AcceptVisitor(visitor); return visitor.ToString(); }