Example #1
0
 private void leaf(AstNode node, String s) {
   String text = getClassName(node);
   if (s != null) {
     text += " " + s;
   }
   printer.print(text + "\n");
 }
Example #2
0
 private void endNode() {
   printer.print("}\n");
 }
Example #3
0
 private void node(AstNode node) {
   printer.print(getClassName(node) + "{\n");
 }
Example #4
0
 private void prop(String name, AstNode node) {
   printer.print(name + ": ");
   node.accept(this);
 }
Example #5
0
 private void prop(String name, String s) {
   printer.print(name + ": " + s + "\n");
 }