示例#1
0
        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();
 }
示例#3
0
 public static string Print(CodeUnitBlock block)
 {
     PrettyPrinter visitor = new PrettyPrinter();
     block.AcceptVisitor(visitor);
     return visitor.ToString();
 }