//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 } }
public override void print(int n) { form.print(this, n, false); }
public override void print(int n) { //Console.Write("("); form.print(car, n, true); form.print(cdr, n, false); }