Differences From Artifact [3711e4a90323c649]:
- File
polemy/runtime.d
- 2010-11-07 10:32:59 - part of checkin [4198578702e] on branch trunk - Changed several documentation comments into ddoc compatible ones. (user: kinaba) [annotate]
To Artifact [c94ffd3733368117]:
- File
polemy/runtime.d
- 2010-11-07 12:20:47 - part of checkin [5d4cb856d8] on branch trunk - Added FuncallExpression (user: kinaba) [annotate]
25 25
26 class StrValue : Value 26 class StrValue : Value
27 { 27 {
28 string data; 28 string data;
29 mixin SimpleConstructor; 29 mixin SimpleConstructor;
30 mixin SimpleCompare; 30 mixin SimpleCompare;
31 } 31 }
> 32
> 33 abstract class FunValue : Value
> 34 {
> 35 Value call(Value[] args);
> 36 }
> 37
> 38 class PrimitiveFunction : FunValue
> 39 {
> 40 Value delegate(Value[]) data;
> 41 mixin SimpleConstructor;
> 42 override Value call(Value[] args) { return data(args); }
> 43 }
32 44
33 class Context 45 class Context
34 { 46 {
35 Context parent; 47 Context parent;
36 Value[string] table; 48 Value[string] table;
37 this(Context parent = null) { this.parent = parent; } 49 this(Context parent = null) { this.parent = parent; }
38 50