--- parser3/src/main/compile_tools.C 2001/02/23 12:37:58 1.12 +++ parser3/src/main/compile_tools.C 2001/02/25 08:12:22 1.14 @@ -1,5 +1,5 @@ /* - $Id: compile_tools.C,v 1.12 2001/02/23 12:37:58 paf Exp $ + $Id: compile_tools.C,v 1.14 2001/02/25 08:12:22 paf Exp $ */ #include "compile_tools.h" @@ -17,7 +17,17 @@ void PVS(Array/**/ *result, VString *result+=vstring; } -Array *L(VString *vstring) { +void PCA(Array/**/ *result, Array/**/ *code_array) { + // append OP_CODE + Operation op; op.code=OP_CODE; + *result+=op.cast; + + // append 'vstring' + *result+=code_array; +} + + +Array *SL(VString *vstring) { // empty ops array Array *result=N(vstring->pool()); @@ -26,8 +36,21 @@ Array *L(VString *vstring) { return result; } +Array *CL(VClass *vclass) { + // empty ops array + Array *result=N(vclass->pool()); + + // append OP_CLASS + Operation op; op.code=OP_CLASS; + *result+=op.cast; + + // append 'vclass' + *result+=vclass; + + return result; +} -String *LA2S(Array *literal_string_array, int offset) { +String *SLA2S(Array *literal_string_array, int offset) { Operation op; op.cast=literal_string_array->get(offset+0); if(op.code!=OP_STRING)