diff --git a/harbour/ChangeLog b/harbour/ChangeLog index d4ba0e37d7..04b9d7e541 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -1,3 +1,9 @@ +20000406-10:55 GMT+1 Ryszard Glab + + *source/compiler/harbour.y + * the parser resumes parsing after 'parse errors' (parsing errors + are non-fatal now) + 20000406-08:52 GMT+1 Victor Szakats * config/dos/dir.cf diff --git a/harbour/source/compiler/harbour.y b/harbour/source/compiler/harbour.y index ec4fff3bf6..558993b743 100644 --- a/harbour/source/compiler/harbour.y +++ b/harbour/source/compiler/harbour.y @@ -252,6 +252,7 @@ Source : Crlf | Source FieldsDef | Source MemvarDef | Source Line + | Source error Crlf { yyclearin; } ; Line : LINE NUM_INTEGER LITERAL Crlf @@ -1478,9 +1479,9 @@ int hb_compYACCMain( char * szName ) void yyerror( char * s ) { if( yytext[ 0 ] == '\n' ) - hb_compGenError( hb_comp_szErrors, 'F', HB_COMP_ERR_YACC, s, "" ); + hb_compGenError( hb_comp_szErrors, 'E', HB_COMP_ERR_YACC, s, "" ); else - hb_compGenError( hb_comp_szErrors, 'F', HB_COMP_ERR_YACC, s, yytext ); + hb_compGenError( hb_comp_szErrors, 'E', HB_COMP_ERR_YACC, s, yytext ); }