2009/4/9 Jay Tennant <hierand...@crazyleafgames.com>: > I've been working on interpreter data types since last week. It's a rewrite > of an earlier exploration into interpreter writing. > //data type definitions > enum DDTYPE > { > UNDEFINED = 0x0, > VARIABLE = 0x1, > STRUCTURE = 0x2, > CONSTANT = 0x4, > ARRAY = 0x8, > POINTER = 0x10, > GLOBAL = 0x20, > > INTEGER = 0x100, > SHORTINT = 0x200, > LONGINT = 0x400, > LONGLONGINT = 0x800, //64bit int > UNSIGNEDINT = 0x1000, > > SINGLEFLOAT = 0x10000, > DOUBLEFLOAT = 0x20000, > EXTENDEDFLOAT = 0x40000, //80bit mantissa?; equivalent to long double > > STRING = 0x100000, > }; > > So far it's possible to have any of these data types, including arrays of > structs, structs of structs, structs of arrays and simple data types, arrays > of arrays, etc. I haven't written the program flow or the script translator > definition list yet, nor the data management (including scope). But data can > be instantiated and accessed. Might this be helpful? > Links: > http://www.crazyleafgames.com/miscWork/programming/interpreter/DataDefinitionsBase.h > http://www.crazyleafgames.com/miscWork/programming/interpreter/DataDefinitionsBase.cpp
Hmm, interesting. What were you doing with this? Looks like an experimental interpreter geared to debugging, by the names everywhere? _______________________________________________ Ohrrpgce mailing list ohrrpgce@lists.motherhamster.org http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org