# HG changeset patch # User Aziz K?ksal # Date 1201021537 -3600 # Node ID 276e2866f5fd37eb5bb56b8bf938d4802932858f # Parent eaf6444b6284d5bc6c33a2557e6ee5b7a90d7318 Added static interpret() method to Interpreter. diff -r eaf6444b6284 -r 276e2866f5fd trunk/src/dil/semantic/Interpreter.d --- a/trunk/src/dil/semantic/Interpreter.d Tue Jan 22 15:40:27 2008 +0100 +++ b/trunk/src/dil/semantic/Interpreter.d Tue Jan 22 18:05:37 2008 +0100 @@ -35,8 +35,14 @@ CantInterpret.type = Types.Error; } - this(InfoManager infoMan) + static Expression interpret(Expression e, InfoManager infoMan, Scope scop) { + return (new Interpreter(scop, infoMan)).start(e); + } + + this(Scope scop, InfoManager infoMan) + { + this.scop = scop; this.infoMan = infoMan; }