Beispiel #1
0
 public object Visit(ASTCharge node, object data)
 {
     System.Console.Out.WriteLine(IndentString() + node + " " + node.Charge);
     ++indent;
     data = node.ChildrenAccept(this, data);
     --indent;
     return(data);
 }
Beispiel #2
0
 public object Visit(ASTCharge node, object data)
 {
     if (node.IsPositive)
     {
         return(new FormalChargeAtom(node.Charge, builder));
     }
     else
     {
         return(new FormalChargeAtom(0 - node.Charge, builder));
     }
 }
Beispiel #3
0
 public object Visit(ASTCharge node, object data)
 {
     //      TODO: a property? not sure. just making things up here :)
     return(data);
 }