Sfoglia il codice sorgente

Remove the modification on the compiler to prevent a identifier alone, Fagiano says that this is a language feature, for instance to have the side effect in case the _get method is implemented, also this modification makes the stack grow by one element all the time.

mingodad 13 anni fa
parent
commit
c1bdfe7919
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  1. 4 0
      squirrel/sqcompiler.cpp

+ 4 - 0
squirrel/sqcompiler.cpp

@@ -326,12 +326,16 @@ public:
 		default:
 		default:
 			CommaExpr();
 			CommaExpr();
 			_fs->DiscardTarget();
 			_fs->DiscardTarget();
+/*
+//Fagiano says that this is not a bug
+//and with this modification stack grow by one lement all the time
             if(_token == TK_IDENTIFIER){
             if(_token == TK_IDENTIFIER){
                 CommaExpr();
                 CommaExpr();
                 if(_token == TK_IDENTIFIER){
                 if(_token == TK_IDENTIFIER){
                     Error(_SC(" '=' expected near '%s'"), _lex._svalue);
                     Error(_SC(" '=' expected near '%s'"), _lex._svalue);
                 }
                 }
             }
             }
+*/
 			//_fs->PopTarget();
 			//_fs->PopTarget();
 			break;
 			break;
 		}
 		}