コード例 #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
     }
 }
コード例 #2
0
ファイル: Cons.cs プロジェクト: taythib/Project-1
 public override void print(int n)
 {
     form.print(this, n, false);
 }
コード例 #3
0
 public override void print(int n)
 {
     //Console.Write("(");
     form.print(car, n, true);
     form.print(cdr, n, false);
 }