--- parser3/src/main/compile.y 2009/04/17 09:11:15 1.231 +++ parser3/src/main/compile.y 2009/04/17 12:00:08 1.232 @@ -5,7 +5,7 @@ Copyright (c) 2001-2005 ArtLebedev Group (http://www.artlebedev.com) Author: Alexander Petrosyan (http://design.ru/paf) - $Id: compile.y,v 1.231 2009/04/17 09:11:15 misha Exp $ + $Id: compile.y,v 1.232 2009/04/17 12:00:08 misha Exp $ */ /** @@ -251,7 +251,6 @@ maybe_string: empty | STRING; code_method: '@' STRING bracketed_maybe_strings maybe_bracketed_strings maybe_comment '\n' { PC.class_add(); PC.explicit_result=false; - PC.write_to_result=false; YYSTYPE params_names_code=$3; ArrayString* params_names=0; @@ -294,9 +293,6 @@ code_method: '@' STRING bracketed_maybe_ // fill in the code method.parser_code=$8; - // write to $result was detected in method's code during compilation - method.write_to_result=PC.write_to_result; - // register in class const String& name=*LA2S(*$2); PC.cclass->add_method(PC.alias_method(name), method); @@ -379,8 +375,6 @@ name_expr_wdive_root: name_expr_dive_cod /* skip over... */ diving_code->count()>=4?4/*OP::OP_VALUE+origin+string+OP::OP_GET_ELEMENTx*/:3/*OP::OP_+origin+string*/); } else { - if(first_name && *first_name==RESULT_VAR_NAME) - PC.write_to_result=true; O(*$$, OP::OP_WITH_ROOT); /* stack: starting context */ P(*$$, *diving_code); }