/* Generated By:JJTree: Do not edit this line. ASTProgram.java */

public class ASTProgram extends SimpleNode {
  public ASTProgram(int id) {
    super(id);
  }
  
  public ASTProgram(drawphase2 p, int id) {
    super(p, id);
  }

/* Generates svg code, by looping through each child of the node */

  public void generate()
  {
    int i, k;
    k = jjtGetNumChildren();
  
    System.out.println("<svg width=\"" + ((ASTInt) jjtGetChild(0)).val +
                     "\" height=\"" + ((ASTInt) jjtGetChild(1)).val + "\">");
    for (i = 2;i < k; i++)
       jjtGetChild(i).generate();

    System.out.println("</svg>");
  }
}
