print_ast ref suppresses output when set to false (closes #7)