groovy-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paolo Di Tommaso <paolo.ditomm...@gmail.com>
Subject Transform a Gstring to a lazy Gstring
Date Wed, 13 May 2015 22:34:43 GMT
Hi,

Does anybody have a suggestion how to write an AST transformation to
convert any Gstring to a lazy Gstring?

For example, given:

"$foo and ${bar +2}"


I would have it transformed to

"${-> foo} and ${-> bar +2}"



Any idea?


Cheers,
Paolo

Mime
View raw message