title: How to invoke the Scala compiler programmatically?
body: <p>I want my Scala code to take a Scala class as input, compile and execute that class. How can I programmatically invoke a Scala compiler? I will be using the latest Scala version, i.e. 2.10.</p>