loops2recursion Java library. This Java library implements an algorithm able to automatically transform an iterative loop into an equivalent recursive method. The transformation implements the changes needed to transform all (possibly nested) Java loops, namely while, do, for and foreach, into recursion. Each kind of loop requires a particular treatment that is transparent for the programmer. The transformation also includes a treatment for the statements break and continue with or without the use of labels (e.g., break loop1). One important property of our transformation is that it always produces tail recursive methods. This means that they can be compiled to efficient code because the compiler only needs to keep two activation records in the stack to execute the whole loop.

References in zbMATH (referenced in 1 article )

Showing result 1 of 1.
Sorted by year (citations)

  1. González, Juan; Insa, David; Silva, Josep: A new hybrid debugging architecture for eclipse (2014)