Skip to content
Snippets Groups Projects
Commit 33b82c83 authored by Henrik (Grubba) Grubbström's avatar Henrik (Grubba) Grubbström
Browse files

Improved error-recovery?

Rev: src/language.yacc:1.154
parent 841d36b7
No related branches found
No related tags found
No related merge requests found
......@@ -185,7 +185,7 @@
/* This is the grammar definition of Pike. */
#include "global.h"
RCSID("$Id: language.yacc,v 1.153 1999/12/18 02:28:13 grubba Exp $");
RCSID("$Id: language.yacc,v 1.154 1999/12/19 01:30:15 grubba Exp $");
#ifdef HAVE_MEMORY_H
#include <memory.h>
#endif
......@@ -754,9 +754,12 @@ def: modifiers type_or_error optional_stars F_IDENTIFIER push_compiler_frame0
free_node($4);
}
| modifiers type_or_error optional_stars bad_identifier
'(' arguments ')' block_or_semi
{
free_string(compiler_pop_type());
}
'(' arguments ')' block_or_semi
{
if ($9) free_node($9);
}
| modifiers type_or_error name_list ';' {}
| inheritance {}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment