--- parser3/src/include/Attic/code.h 2001/02/20 18:45:51 1.1 +++ parser3/src/include/Attic/code.h 2001/02/22 09:14:24 1.4 @@ -1,19 +1,20 @@ /* - $Id: code.h,v 1.1 2001/02/20 18:45:51 paf Exp $ + $Id: code.h,v 1.4 2001/02/22 09:14:24 paf Exp $ */ #ifndef CODE_H #define CODE_H +#include "pa_string.h" +#include "pa_array.h" + enum OPCODE { - OP_STRING, - OP_CODE_ARRAY, + OP_STRING, OP_VSTRING, OP_CODE_ARRAY, OP_WITH_ROOT, OP_WITH_SELF, OP_WITH_READ, OP_WITH_WRITE, OP_CONSTRUCT, OP_EXPRESSION_EVAL, OP_MODIFY_EVAL, - OP_WRITE, - OP_REPLACE_RESULT, - OP_GET_ELEMENT, OP_GET_ELEMENT__WRITE, + OP_WRITE_STRING, OP_WRITE_VALUE, + OP_GET_ELEMENT, OP_GET_ELEMENT__WRITE_VALUE, OP_CREATE_EWPOOL, OP_REDUCE_EWPOOL, OP_CREATE_RWPOOL, OP_REDUCE_RWPOOL, OP_GET_METHOD_FRAME, @@ -22,4 +23,12 @@ enum OPCODE { OP_CALL }; +union Operation { + void *cast; // casting helper + + OPCODE code; + String *string; + Array *array; +}; + #endif