Plan with Code: Comparing approaches for robust NL to DSL generation