One thing that really helped me get my first tree walker "out the door" was to use the AST frame. Helps to visualize the second dimension. ASTFrame frame = new ASTFrame("AST", tree.getAST()); frame.setVisible(true);