--- parser3/src/main/compile.y 2001/08/10 12:36:56 1.160 +++ parser3/src/main/compile.y 2001/08/10 12:53:32 1.161 @@ -6,7 +6,7 @@ Author: Alexander Petrosyan (http://design.ru/paf) */ %{ -static char *RCSId="$Id: compile.y,v 1.160 2001/08/10 12:36:56 parser Exp $"; +static char *RCSId="$Id: compile.y,v 1.161 2001/08/10 12:53:32 parser Exp $"; /** @todo parser4: @@ -671,6 +671,9 @@ static int yylex(YYSTYPE *lvalp, void *p RC; } break; + case '(': + lexical_brackets_nestage++; + break; } break; @@ -948,7 +951,10 @@ static int yylex(YYSTYPE *lvalp, void *p RC; case '(': // $name.<(>code) - if(PC.col>1/*not first column*/ && end[-1]=='.'/*was dot */) { + if(PC.col>1/*not first column*/ && ( + end[-1]=='.'/*was dot */ || + end[-1]=='$'/*was start of get*/ + )) { push_LS(PC, LS_USER); lexical_brackets_nestage=1; RC; @@ -1036,7 +1042,10 @@ static int yylex(YYSTYPE *lvalp, void *p RC; case '(': // $name.<(>code) - if(PC.col>1/*not first column*/ && end[-1]=='.'/*was dot */) { + if(PC.col>1/*not first column*/ && ( + end[-1]=='.'/*was dot */ || + end[-1]=='^'/*was start of call*/ + )) { push_LS(PC, LS_USER); lexical_brackets_nestage=1; RC;