--- parser3/src/main/compile_tools.C 2001/03/09 08:19:50 1.22 +++ parser3/src/main/compile_tools.C 2001/03/11 08:16:34 1.26 @@ -1,5 +1,9 @@ /* - $Id: compile_tools.C,v 1.22 2001/03/09 08:19:50 paf Exp $ + Parser + Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com) + Author: Alexander Petrosyan (http://design.ru/paf) + + $Id: compile_tools.C,v 1.26 2001/03/11 08:16:34 paf Exp $ */ #include "compile_tools.h" @@ -38,7 +42,7 @@ Array *VL(Value *value) { return result; } -String *SLA2S(Array *literal_string_array, int offset) { +const String *SLA2S(Array *literal_string_array, int offset) { Operation op; op.cast=literal_string_array->get(offset+0); if(op.code!=OP_VALUE) @@ -52,7 +56,10 @@ void change_string_literal_to_double_lit Value *value=vstring->get_expr_result(); literal_string_array->put(1, value); } - +void change_string_literal_to_write_string_literal(Array *literal_string_array) { + Operation op; op.code=OP_STRING__WRITE; + literal_string_array->put(0, op.cast); +} void push_LS(struct parse_control *pc, lexical_state new_state) { if(pc->sp