示例#1
0
 public abstract Template Visit(ExprBlock expr);
示例#2
0
 public override Template Visit(ExprBlock block)
 {
     Template template = new Template("({\n    <list; separator=\"\n\">})");
     List<Template> list = new List<Template>();
     foreach (var node in block.StmtList)
     {
         Template expr = new Template("<expr>;");
         expr.Add("expr", node.Accept(this));
         list.Add(expr);
     }
     template.Add("list", list);
     return template;
 }
示例#3
0
 public abstract Template Visit(ExprBlock expr);