Created
June 3, 2015 14:58
-
-
Save johannegger/ecc4c5a89f9363764046 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import scala.reflect.runtime.universe._ | |
import scala.tools.reflect.{ToolBox, ToolBoxError} | |
val toolbox = runtimeMirror(getClass.getClassLoader).mkToolBox() | |
val source = "class Foo" | |
val tree = toolbox.parse(source) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment