On 12/26/2015 4:05 AM, Jacob Carlborg wrote:
There's a lot of stuff that Java doesn't have ;). In theory, all the lowerings that the compiler already does could be implemented with AST macros. "scope" is lowered to try-catch-finally, "foreach" is lowered to a "for" loop and so on.
Many of the lowerings require semantic information that is not available from ASTs.