aboutsummaryrefslogtreecommitdiff
path: root/src/main/scala/scalam/m/MatlabInterpreter.scala
diff options
context:
space:
mode:
authorJakob Odersky <jodersky@gmail.com>2012-10-30 21:14:35 +0100
committerJakob Odersky <jodersky@gmail.com>2012-10-30 21:14:35 +0100
commitcf87abecddbded2561b29c555cb4c1d1a180b4ca (patch)
tree6c766cb4099e92e87646355591e3ed8100a2b12a /src/main/scala/scalam/m/MatlabInterpreter.scala
parent9dd20a4165e5fffdd397612ddf02d313222adcdd (diff)
downloadscalam-cf87abecddbded2561b29c555cb4c1d1a180b4ca.tar.gz
scalam-cf87abecddbded2561b29c555cb4c1d1a180b4ca.tar.bz2
scalam-cf87abecddbded2561b29c555cb4c1d1a180b4ca.zip
adaptions required by ast refactoring
Diffstat (limited to 'src/main/scala/scalam/m/MatlabInterpreter.scala')
-rw-r--r--src/main/scala/scalam/m/MatlabInterpreter.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/scala/scalam/m/MatlabInterpreter.scala b/src/main/scala/scalam/m/MatlabInterpreter.scala
index 88667e8..2b055e2 100644
--- a/src/main/scala/scalam/m/MatlabInterpreter.scala
+++ b/src/main/scala/scalam/m/MatlabInterpreter.scala
@@ -4,9 +4,9 @@ import ast._
import scalax.file.Path
class MatlabInterpreter(pwd: Path) extends Interpreter("matlab -nosplash -nodesktop", pwd) {
- def evaluate(statement: ast.Statement) = write(statement.m + "\n")
+ def evaluate(root: ast.Root) = write(root.line + "\n")
def exit() = {
- val cmd = Evaluate(Function(Identifier("exit")))
+ val cmd = Function(Identifier("exit"))
evaluate(cmd)
super.close()
}