aboutsummaryrefslogblamecommitdiff
path: root/src/main/scala/scalam/m/interpretation/MInterpreter.scala
blob: b154cd705b7455300cb1b92d5ba05e49786569b6 (plain) (tree)
1
2
3
4
5
6
7
8
9


                      
 
            

                       

                                                                                 
                                                        
  
                
                                          


                 
 
 
package scalam
package m
package interpretation

import ast._
import scalax.file.Path

class MInterpreter(command: String, pwd: Path) extends Interpreter(command, pwd){
  
  def evaluate(root: ast.Root) = write(root.line + "\n")
  
  def exit() = {
    val cmd = Function(Identifier("exit"))
    evaluate(cmd)
    super.close()
  }

}