Compile String to AST inside CompilerPlugin?
问题 I would like to create a templating plugin and as the first step convert an arbitrary string to it's "compiled" AST representation (as the scala interpreter does, I guess). So a compiler plugin could e.g assign someString to "HELLO WORLD": @StringAnnotation("""("hello world").toString.toUpperCase""") var someString = "" My current first shot plugin does in short: runafter parser create a new representation only compiler and a VirtualFile with the annotation content compile and print unit.body