LARA

package minijava
 
import java.io.{FileInputStream,IOException}
 
object Main {
  def main(args: Array[String]) {
    val compUnit = new Compiler()
 
    if (args.length != 1)
      compUnit.fatalError("usage: scala minijava.Main <File.java>")
    try {
      val in = new FileInputStream(args(0))
      compUnit.setInputStream(in)
 
      compUnit.printTokens
 
      in.close()
    } catch {
      case e: IOException => compUnit.fatalError(e.getMessage)
    }
 
    compUnit.terminateIfErrors
  }
}