예제 #1
0
 /*
  * Since it is not allowed to reference `this' before the
  * super type constructor has been called, we can not
  * write `super(All(this),v)'
  * Instead, we set the first argument first to `null', and
  * set it to its proper value afterwards.
  */
 public BottomUp(IVisitor v)
     : base(null, v)
 {
     first = new All(this);
 }
예제 #2
0
 /*
  * Since it is not allowed to reference `this' before the
  * super type constructor has been called, we can not
  * write `super(v,All(this))'
  * Instead, we set the second argument first to `null', and
  * set it to its proper value afterwards.
  */
 public TopDown(IVisitor v)
     : base(v, null)
 {
     then = new All(this);
 }