//
// Generated by JTB 1.1.2
//

package jtb.cparser.syntaxtree;

// Grammar production:
// f0 -> "{"
// f1 -> [ DeclarationList() ]
// f2 -> [ StatementList() ]
// f3 -> "}"
public class CompoundStatement implements Node {
  static final long serialVersionUID = 20050923L;

   public NodeToken f0;
   public NodeOptional f1;
   public NodeOptional f2;
   public NodeToken f3;

   public CompoundStatement(NodeToken n0, NodeOptional n1, NodeOptional n2, NodeToken n3) {
      f0 = n0;
      f1 = n1;
      f2 = n2;
      f3 = n3;
   }

   public CompoundStatement(NodeOptional n0, NodeOptional n1) {
      f0 = new NodeToken("{");
      f1 = n0;
      f2 = n1;
      f3 = new NodeToken("}");
   }

   public void accept(jtb.cparser.visitor.Visitor v) {
      v.visit(this);
   }
}
