Skip to content

Instantly share code, notes, and snippets.

Created June 3, 2015 14:58
What would you like to do?
import scala.reflect.runtime.universe._
import{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