Differences From Artifact [5b490c90826e242f]:
- File
polemy/eval.d
- 2010-11-07 16:33:34 - part of checkin [172a537bea] on branch trunk - operator < and > for integers, for writing Fibonacci function. (user: kinaba) [annotate]
To Artifact [bcefce47daacc4a5]:
- File
polemy/eval.d
- 2010-11-08 08:01:27 - part of checkin [b0d8d7875b] on branch trunk - polemy.runtime renamed into polemy.value. Also, in process of changes to use unittest helpers. (user: kinaba) [annotate]
5 5 * Evaluator for Polemy programming language.
6 6 */
7 7 module polemy.eval;
8 8 import polemy._common;
9 9 import polemy.lex : LexPosition;
10 10 import polemy.ast;
11 11 import polemy.parse;
12 -import polemy.runtime;
12 +import polemy.value;
13 13 import std.typecons;
14 14 import std.stdio;
15 15
16 16 Context createGlobalContext()
17 17 {
18 18 auto ctx = new Context;
19 19 ctx.add("+", new FunValue(delegate Value(immutable LexPosition pos, Value[] args){