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