--- parser3/src/main/compile.y 2002/04/15 06:45:58 1.183 +++ parser3/src/main/compile.y 2002/04/16 08:41:05 1.185 @@ -5,7 +5,7 @@ Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com) Author: Alexander Petrosyan (http://design.ru/paf) - $Id: compile.y,v 1.183 2002/04/15 06:45:58 paf Exp $ + $Id: compile.y,v 1.185 2002/04/16 08:41:05 paf Exp $ */ /** @@ -239,8 +239,11 @@ action: get | put | call; /* get */ get: get_value { - $$=$1; /* stack: resulting value */ - O($$, OP_WRITE_VALUE); /* value=pop; wcontext.write(value) */ + $$=$1; /* stack: resulting value */ + changetail_or_append($$, + OP_GET_ELEMENT, OP_GET_ELEMENT__WRITE, + OP_WRITE_VALUE + ); /* value=pop; wcontext.write(value) */ }; get_value: '$' get_name_value { $$=$2 }; get_name_value: name_without_curly_rdive EON | name_in_curly_rdive; @@ -350,7 +353,10 @@ codes__excluding_sole_str_literal: actio call: call_value { $$=$1; /* stack: value */ - O($$, OP_WRITE_VALUE); /* value=pop; wcontext.write(value) */ + changetail_or_append($$, + OP_CALL, OP_CALL__WRITE, + OP_WRITE_VALUE + ); /* value=pop; wcontext.write(value) */ }; call_value: '^' { PC.in_call_value=true;