I am currently doing a lot of compiler research. This not only entails to writing compiler plugins but also modifying the dotty compiler, from the parser to the typer. Therefore I need to constantly look at the raw ASTs to sketch the necessary transformations.
In Scala 2, the reflection library provided the following functionality:
val expression = ....
val tree = reify{expression}.tree
showRaw(tree)
Now from what I understand from the docs, the final step has been replaced by Printer.TreeStructure.show(tree)
However, I can not find anything in the meta programming docs for an alternative to reify. Now I can obviously use various meta programming techniques inside a Scala program and print the tree to stdout but this is a very time consuming process compared to expanding in the REPL for a quick manual verification.
Is there a way to do this in the Scala 3 REPL?