Create a diff-viewer for comparing code after a compiler phase (-Xprint:phase)
It would be useful to have a diff-viewer integrated with Eclipse to understand how each compiler's phase affects the original source file.
For example, if a user wants to check how a source file containing CPS is transformed, he needs to open a terminal and execute the following command:
$ scalac -P:continuations:enable SomeFile.scala -Xprint:selectivecps
This will output the tree produced by the compilert after the `selectivecps`phase is ran. The idea is to allow the user to open a diff-viewer within Eclipse where it could compare the original file with the transformed one up to some compiler phase. This would be pretty useful to understand how the compiler desugarize and transforms the orginal source code after each compiler's phase.
For example, if a user wants to check how a source file containing CPS is transformed, he needs to open a terminal and execute the following command:
$ scalac -P:continuations:enable SomeFile.scala -Xprint:selectivecps
This will output the tree produced by the compilert after the `selectivecps`phase is ran. The idea is to allow the user to open a diff-viewer within Eclipse where it could compare the original file with the transformed one up to some compiler phase. This would be pretty useful to understand how the compiler desugarize and transforms the orginal source code after each compiler's phase.
Leave a comment
on 2012-01-30 17:02 *
By skyluc
Version changed from 2.0.0-beta09-29 to 2.0.0-final-29
Eclipse version changed from Helios to All
Assigned to changed from Mirco Dotta to -none-
Permission type changed from None to Public
on 2014-01-24 17:36 *
By Simon Schäfer
Version changed from 2.0.0-final-29 to 3.0.2-210
Description changed from It would be useful to have ... to It would be useful to have ...
Status changed from New to Accepted
on 2015-03-13 22:15 *
By Simon Schäfer
Eclipse version changed from All to Luna - Eclipse 4.4
Version changed from 4.0.0-211 to 4.0.0
Milestone changed from Enhancements to -none-