From d9e90ce46e9886973eeb60d123bb8d3e3ef45d14 Mon Sep 17 00:00:00 2001 From: Ryszard Glab Date: Thu, 6 Apr 2000 09:35:45 +0000 Subject: [PATCH] ChangeLog 20000406-10:55 --- harbour/ChangeLog | 6 ++++++ harbour/source/compiler/harbour.y | 5 +++-- 2 files changed, 9 insertions(+), 2 deletions(-) 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 ); }