From: Peter Verthez Date: Sun, 17 Mar 2002 14:38:29 +0000 (+0000) Subject: Graceful error handling on bogus input. X-Git-Url: https://git.dlugolecki.net.pl/?a=commitdiff_plain;h=79269c03d231d3d2a564f77072d466f23cfc42c0;p=gedcom-parse.git Graceful error handling on bogus input. --- diff --git a/gedcom/gedcom.y b/gedcom/gedcom.y index e4d8a70..4884719 100644 --- a/gedcom/gedcom.y +++ b/gedcom/gedcom.y @@ -420,6 +420,8 @@ int compat_mode(int flags); file : head_sect records trlr_sect { if (fail == 1) YYABORT; } + | error + { } ; records : /* empty */