From 82f72ebc4a57b7c651d7a468da7578ca5cf64fc4 Mon Sep 17 00:00:00 2001 From: Antonio Linares Date: Fri, 30 Jul 1999 08:57:31 +0000 Subject: [PATCH] Fixed support for a:b[ c ]:d = e statements --- harbour/source/compiler/harbour.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/harbour/source/compiler/harbour.y b/harbour/source/compiler/harbour.y index be1ce26ece..fa4e89166b 100644 --- a/harbour/source/compiler/harbour.y +++ b/harbour/source/compiler/harbour.y @@ -590,7 +590,7 @@ Statement : ExecFlow Crlf {} | AliasExp '=' Expression Crlf { /* TODO */ GenPCode1( HB_P_POP ); } | VarId ArrayIndex '=' Expression Crlf { GenPCode1( HB_P_ARRAYPUT ); GenPCode1( HB_P_POP ); } | FunArrayCall '=' Expression Crlf { GenPCode1( HB_P_ARRAYPUT ); GenPCode1( HB_P_POP ); } - | IdSend IDENTIFIER '=' { Message( SetData( $2 ) ); } Expression Crlf { Function( 1 ); } + | ObjectData '=' { MessageFix( SetData( $1 ) ); } Expression Crlf { Function( 1 ); GenPCode1( HB_P_POP ); } | ObjectData ArrayIndex '=' Expression Crlf { GenPCode1( HB_P_ARRAYPUT ); GenPCode1( HB_P_POP ); } | ObjectMethod ArrayIndex '=' Expression Crlf { GenPCode1( HB_P_ARRAYPUT ); GenPCode1( HB_P_POP ); }