Mercurial > repos > rhope
view runtime/builtin.h @ 44:a7c79ac22efc
Beginning of basic type inference
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Sat, 31 Oct 2009 21:28:28 -0400 |
parents | 495dddadd058 |
children | d2f9b0a9403d |
line wrap: on
line source
#ifndef _BUILTIN_H_ #define _BUILTIN_H_ #include "plat_types.h" #include "object.h" #include "func.h" //Builtin Types enum { TYPE_UINT8 = 1, TYPE_UINT16, TYPE_UINT32, TYPE_UINT64, TYPE_INT8, TYPE_INT16, TYPE_INT32, TYPE_INT64, TYPE_BOOLEAN, TYPE_FLOAT32, TYPE_FLOAT64, TYPE_BLUEPRINT, TYPE_ARRAY, TYPE_METHODMISSINGEXCEPTION, TYPE_FIELDMISSINGEXCEPTION, TYPE_WRONGTYPEEXCEPTION, TYPE_FIRST_USER //Insert new builtin types before this one }; //Builtin Methods enum { METHOD_ADD=1, METHOD_SUB, METHOD_DIV, METHOD_MUL, METHOD_LSHIFT, METHOD_RSHIFT, METHOD_EQUALS, METHOD_GREATER, METHOD_LESS, METHOD_IF, METHOD_SETFIELDMISSING, METHOD_GETFIELDMISSING, METHOD_MISSING,//Insert new builtin methods before this one METHOD_FIRST_USER }; void register_builtin_types(); void register_builtin_type(uint32_t type); //TODO: Remove this when it's possible to write Print in Rhope FuncDef(Print) #endif //_BUILTIN_H_