Esempio n. 1
0
 /**
  * Print an indented description of this abstract syntax node, including a name for the node
  * itself at the specified level of indentation, plus more deeply indented descriptions of any
  * child nodes.
  */
 public void indent(IndentOutput out, int n) {
   out.indent(n, "Block");
   for (int i = 0; i < body.length; i++) {
     body[i].indent(out, n + 1);
   }
 }
Esempio n. 2
0
 /**
  * Print an indented description of this abstract syntax node, including a name for the node
  * itself at the specified level of indentation, plus more deeply indented descriptions of any
  * child nodes.
  */
 public void indent(IndentOutput out, int n) {
   out.indent(n, "Id(\"" + name + "\")");
 }
Esempio n. 3
0
 /**
  * Print an indented description of this abstract syntax node, including a name for the node
  * itself at the specified level of indentation, plus more deeply indented descriptions of any
  * child nodes.
  */
 public void indent(IndentOutput out, int n) {
   out.indent(n, "Assign");
   lhs.indent(out, n + 1);
   rhs.indent(out, n + 1);
 }
Esempio n. 4
0
 /**
  * Print an indented description of this abstract syntax node, including a name for the node
  * itself at the specified level of indentation, plus more deeply indented descriptions of any
  * child nodes.
  */
 public void indent(IndentOutput out, int n) {
   out.indent(n, "Empty");
 }
 /**
  * Print an indented description of this abstract syntax node, including a name for the node
  * itself at the specified level of indentation, plus more deeply indented descriptions of any
  * child nodes.
  */
 public void indent(IndentOutput out, int n) {
   out.indent(n, "IntToDouble");
   exp.indent(out, n + 1);
 }
Esempio n. 6
0
 /** Print an indented description of this formal parameter. */
 public void indent(IndentOutput out, int n) {
   out.indent(n, "Formal");
   out.indent(n + 1, type.toString());
   out.indent(n + 1, "\"" + name + "\"");
 }