How GOTO statement in Groovy?
I saw this nice blog post about a Scala continuations that 'emulates' a GOTO statement in the Scala language. (read more about Continuations here ) I would like to have the same in the programming language Groovy. I think it's possible within a Groovy compiler phase transformation . I'm working on an Domain-Specific Language (DSL), and preferred embedded in Groovy. I would like to have the GOTO statement, because the DSL is an unstructured language (and is generated from workflow diagrams). I need a 'labeled' goto statement, not to line numbers. The DSL is a language for workflow definitions,