Пример #1
0
 public void Visit(ClauseNode programNode)
 {
     programNode.subject.Accept(this);
     Print(" :- ");
     programNode.predicate.Accept(this);
     PrintLine(".");
 }
Пример #2
0
 public void Visit(ClauseNode programNode)
 {
     PrintLine("<program>");
     indent();
     programNode.subject.Accept(this);
     unindent();
     PrintLine(":-");
     indent();
     programNode.predicate.Accept(this);
     unindent();
     PrintLine(".");
     PrintLine("</program>");
 }
Пример #3
0
 public void Visit(ClauseNode programNode)
 {
     programNode.subject.Accept(this);
     programNode.predicate.Accept(this);
 }
Пример #4
0
 public void Visit(ClauseNode programNode)
 {
     throw new NotImplementedException ();
 }
 public void Visit(ClauseNode programNode)
 {
     programNode.predicate.Accept(this);
     PrinterVisitor xpr = new PrinterVisitor(Console.Out);
     programNode.Accept(xpr);
 }