comparison src/dil/semantic/Types.d @ 838:1ecf05e680ba

Changed build configuration. From now on, the executable will be placed in bin/. The postbuild.* scripts for Linux and Windows will place important files in bin/ and bin/data/. Added hasType() to class Expression. Added search() to class Scope. Added DontKnowYet to struct Types.
author Aziz K?ksal <aziz.koeksal@gmail.com>
date Wed, 20 Aug 2008 20:39:16 +0200
parents 1d06b4aed7cf
children
comparison
equal deleted inserted replaced
837:110f741dab45 838:1ecf05e680ba
357 TypeBasic Size_t; /// The size type. 357 TypeBasic Size_t; /// The size type.
358 TypeBasic Ptrdiff_t; /// The pointer difference type. 358 TypeBasic Ptrdiff_t; /// The pointer difference type.
359 TypePointer Void_ptr; /// The void pointer type. 359 TypePointer Void_ptr; /// The void pointer type.
360 TypeBasic Error; /// The error type. 360 TypeBasic Error; /// The error type.
361 TypeBasic Undefined; /// The undefined type. 361 TypeBasic Undefined; /// The undefined type.
362 TypeBasic DontKnowYet; /// The symbol is undefined but might be resolved.
362 363
363 /// Allocates an instance of TypeBasic and assigns it to typeName. 364 /// Allocates an instance of TypeBasic and assigns it to typeName.
364 template newTB(char[] typeName) 365 template newTB(char[] typeName)
365 { 366 {
366 const newTB = mixin(typeName~" = new TypeBasic(TYP."~typeName~")"); 367 const newTB = mixin(typeName~" = new TypeBasic(TYP."~typeName~")");
404 Ptrdiff_t = Int; 405 Ptrdiff_t = Int;
405 } 406 }
406 Void_ptr = Void.ptrTo; 407 Void_ptr = Void.ptrTo;
407 Error = new TypeBasic(TYP.Error); 408 Error = new TypeBasic(TYP.Error);
408 Undefined = new TypeBasic(TYP.Error); 409 Undefined = new TypeBasic(TYP.Error);
409 } 410 DontKnowYet = new TypeBasic(TYP.Error);
410 } 411 }
412 }