Mercurial > projects > ldc
comparison dmd/expression.h @ 1195:e961851fb8be
Merged DMD 1.042.
author | Tomas Lindquist Olsen <tomas.l.olsen gmail.com> |
---|---|
date | Fri, 03 Apr 2009 17:59:34 +0200 |
parents | ab186e535e72 |
children | 78038e540342 |
comparison
equal
deleted
inserted
replaced
1194:1853dcd9b944 | 1195:e961851fb8be |
---|---|
1 | 1 |
2 // Compiler implementation of the D programming language | 2 // Compiler implementation of the D programming language |
3 // Copyright (c) 1999-2008 by Digital Mars | 3 // Copyright (c) 1999-2009 by Digital Mars |
4 // All Rights Reserved | 4 // All Rights Reserved |
5 // written by Walter Bright | 5 // written by Walter Bright |
6 // http://www.digitalmars.com | 6 // http://www.digitalmars.com |
7 // License for redistribution is by either the Artistic License | 7 // License for redistribution is by either the Artistic License |
8 // in artistic.txt, or the GNU General Public License in gnu.txt. | 8 // in artistic.txt, or the GNU General Public License in gnu.txt. |
103 virtual void rvalue(); | 103 virtual void rvalue(); |
104 | 104 |
105 static Expression *combine(Expression *e1, Expression *e2); | 105 static Expression *combine(Expression *e1, Expression *e2); |
106 static Expressions *arraySyntaxCopy(Expressions *exps); | 106 static Expressions *arraySyntaxCopy(Expressions *exps); |
107 | 107 |
108 virtual integer_t toInteger(); | 108 virtual dinteger_t toInteger(); |
109 virtual uinteger_t toUInteger(); | 109 virtual uinteger_t toUInteger(); |
110 virtual real_t toReal(); | 110 virtual real_t toReal(); |
111 virtual real_t toImaginary(); | 111 virtual real_t toImaginary(); |
112 virtual complex_t toComplex(); | 112 virtual complex_t toComplex(); |
113 virtual void toCBuffer(OutBuffer *buf, HdrGenState *hgs); | 113 virtual void toCBuffer(OutBuffer *buf, HdrGenState *hgs); |
173 #endif | 173 #endif |
174 }; | 174 }; |
175 | 175 |
176 struct IntegerExp : Expression | 176 struct IntegerExp : Expression |
177 { | 177 { |
178 integer_t value; | 178 dinteger_t value; |
179 | 179 |
180 IntegerExp(Loc loc, integer_t value, Type *type); | 180 IntegerExp(Loc loc, dinteger_t value, Type *type); |
181 IntegerExp(integer_t value); | 181 IntegerExp(dinteger_t value); |
182 int equals(Object *o); | 182 int equals(Object *o); |
183 Expression *semantic(Scope *sc); | 183 Expression *semantic(Scope *sc); |
184 Expression *interpret(InterState *istate); | 184 Expression *interpret(InterState *istate); |
185 char *toChars(); | 185 char *toChars(); |
186 void dump(int indent); | 186 void dump(int indent); |
187 integer_t toInteger(); | 187 dinteger_t toInteger(); |
188 real_t toReal(); | 188 real_t toReal(); |
189 real_t toImaginary(); | 189 real_t toImaginary(); |
190 complex_t toComplex(); | 190 complex_t toComplex(); |
191 int isConst(); | 191 int isConst(); |
192 int isBool(int result); | 192 int isBool(int result); |
210 RealExp(Loc loc, real_t value, Type *type); | 210 RealExp(Loc loc, real_t value, Type *type); |
211 int equals(Object *o); | 211 int equals(Object *o); |
212 Expression *semantic(Scope *sc); | 212 Expression *semantic(Scope *sc); |
213 Expression *interpret(InterState *istate); | 213 Expression *interpret(InterState *istate); |
214 char *toChars(); | 214 char *toChars(); |
215 integer_t toInteger(); | 215 dinteger_t toInteger(); |
216 uinteger_t toUInteger(); | 216 uinteger_t toUInteger(); |
217 real_t toReal(); | 217 real_t toReal(); |
218 real_t toImaginary(); | 218 real_t toImaginary(); |
219 complex_t toComplex(); | 219 complex_t toComplex(); |
220 Expression *castTo(Scope *sc, Type *t); | 220 Expression *castTo(Scope *sc, Type *t); |
238 ComplexExp(Loc loc, complex_t value, Type *type); | 238 ComplexExp(Loc loc, complex_t value, Type *type); |
239 int equals(Object *o); | 239 int equals(Object *o); |
240 Expression *semantic(Scope *sc); | 240 Expression *semantic(Scope *sc); |
241 Expression *interpret(InterState *istate); | 241 Expression *interpret(InterState *istate); |
242 char *toChars(); | 242 char *toChars(); |
243 integer_t toInteger(); | 243 dinteger_t toInteger(); |
244 uinteger_t toUInteger(); | 244 uinteger_t toUInteger(); |
245 real_t toReal(); | 245 real_t toReal(); |
246 real_t toImaginary(); | 246 real_t toImaginary(); |
247 complex_t toComplex(); | 247 complex_t toComplex(); |
248 Expression *castTo(Scope *sc, Type *t); | 248 Expression *castTo(Scope *sc, Type *t); |