--- parser3/src/include/Attic/code.h 2001/02/20 18:45:51 1.1 +++ parser3/src/include/Attic/code.h 2001/02/21 06:21:18 1.2 @@ -1,10 +1,13 @@ /* - $Id: code.h,v 1.1 2001/02/20 18:45:51 paf Exp $ + $Id: code.h,v 1.2 2001/02/21 06:21:18 paf Exp $ */ #ifndef CODE_H #define CODE_H +#include "pa_string.h" +#include "pa_array.h" + enum OPCODE { OP_STRING, OP_CODE_ARRAY, @@ -12,7 +15,6 @@ enum OPCODE { OP_CONSTRUCT, OP_EXPRESSION_EVAL, OP_MODIFY_EVAL, OP_WRITE, - OP_REPLACE_RESULT, OP_GET_ELEMENT, OP_GET_ELEMENT__WRITE, OP_CREATE_EWPOOL, OP_REDUCE_EWPOOL, OP_CREATE_RWPOOL, OP_REDUCE_RWPOOL, @@ -22,4 +24,12 @@ enum OPCODE { OP_CALL }; +union Operation { + void *cast; // casting helper + + OPCODE code; + String *string; + Array *array; +}; + #endif