Mercurial > projects > ddmd
comparison dmd/ModExp.d @ 12:832f71e6f96c
*Exp and *AssignExp arrayOp implementation added (might be a bit incomplete)
Some unittest-specific functions implemented
author | korDen |
---|---|
date | Mon, 12 Apr 2010 15:13:00 +0400 |
parents | 10317f0c89a5 |
children | cab4c37afb89 |
comparison
equal
deleted
inserted
replaced
11:3356c90e9aac | 12:832f71e6f96c |
---|---|
77 assert(false); | 77 assert(false); |
78 } | 78 } |
79 | 79 |
80 void buildArrayIdent(OutBuffer buf, Expressions arguments) | 80 void buildArrayIdent(OutBuffer buf, Expressions arguments) |
81 { | 81 { |
82 assert(false); | 82 Exp_buildArrayIdent(buf, arguments, "Mod"); |
83 } | 83 } |
84 | 84 |
85 Expression buildArrayLoop(Arguments fparams) | 85 Expression buildArrayLoop(Arguments fparams) |
86 { | 86 { |
87 assert(false); | 87 /* Evaluate assign expressions left to right |
88 */ | |
89 Expression ex1 = e1.buildArrayLoop(fparams); | |
90 Expression ex2 = e2.buildArrayLoop(fparams); | |
91 Expression e = new ModExp(Loc(0), ex1, ex2); | |
92 return e; | |
88 } | 93 } |
89 | 94 |
90 Identifier opId() | 95 Identifier opId() |
91 { | 96 { |
92 return Id.mod; | 97 return Id.mod; |