예제 #1
0
 public override void print(Node t, int n, bool p)
 {
     // if the element following define is not a cons, than this is the variable definition syntax of define
     // this syntax is virtually same as Regular
     if (!t.getCdr().getCar().isPair())
     {
         Special v = new Regular();
         v.print(t, n, p);
     }
     // function definition syntax of define
     // this syntax is virtually same as If
     else
     {
         Special v = new If();
         v.print(t, n, p);
     }
 }
예제 #2
0
       public override void print(Node t, int n, bool p)
       {
           // Lambda is virtually same as If
           Special v = new If();
           v.print(t, n, p);
 	}