示例#1
0
 public void Accept(ITokenVisitor visitor)
 {
     LineStart.Token start = new LineStart.Token(1);
     LineEnd.Token end = new LineEnd.Token(1);
     foreach(Line line in lines) {
         visitor.Visit(start); start++;
         line.Accept(visitor);
         visitor.Visit(end); end++;
     }
 }
示例#2
0
 public void Accept(ITokenVisitor visitor)
 {
     LineStart.Token start = new LineStart.Token(1);
     LineEnd.Token   end   = new LineEnd.Token(1);
     foreach (Line line in lines)
     {
         visitor.Visit(start); start++;
         line.Accept(visitor);
         visitor.Visit(end); end++;
     }
 }