()
| 6 | public ASTree condition() { return child(0); } |
| 7 | public ASTree thenBlock() { return child(1); } |
| 8 | public ASTree elseBlock() { |
| 9 | return numChildren() > 2 ? child(2) : null; |
| 10 | } |
| 11 | public String toString() { |
| 12 | return "(if " + condition() + " " + thenBlock() |
| 13 | + " else " + elseBlock() + ")"; |