Exemplo n.º 1
0
 //intitial print statement with no boolean,
 //in normal cases, this is only called once
 //at the start of the printing
 public override void print(int n)
 {
     flagListA(); //flips inList for interior lists
     flagListB(); //undoes inList flips for special cases
     if (form != null)
     {
         if (startsList)             //if the node starts a list
         {
             printSpaces(n);         //indent
             Console.Write("(");     //open paren
         }
         form.print(this, n, false); //call to form print
     }
 }
Exemplo n.º 2
0
 public override void print(int n)
 {
     form.print(this, n, false);
 }
Exemplo n.º 3
0
 public override void print(int n)
 {
     //Console.Write("(");
     form.print(car, n, true);
     form.print(cdr, n, false);
 }