pike.git/
src/
language.yacc
Branch:
Tag:
Non-build tags
All tags
No tags
1998-04-30
1998-04-30 16:30:37 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>
5b6acd9b5aeed3816f847792c687f65b41bf42a4 (
9
lines) (+
6
/-
3
)
[
Show
|
Annotate
]
Branch:
7.9
fixed some error productions so they will not coredump
Rev: src/language.yacc:1.95
177:
/* This is the grammar definition of Pike. */ #include "global.h"
-
RCSID("$Id: language.yacc,v 1.
94
1998/04/30
06
:
32
:
36
hubbe Exp $");
+
RCSID("$Id: language.yacc,v 1.
95
1998/04/30
16
:
30
:
37
hubbe Exp $");
#ifdef HAVE_MEMORY_H #include <memory.h> #endif
966:
$$=mknode(F_ASSIGN,mkintnode(0),mklocalnode(islocal($2->u.sval.u.string))); free_node($2); }
-
| optional_stars bad_identifier
{}
+
| optional_stars bad_identifier
{ $$=0; }
| optional_stars F_IDENTIFIER '=' expr0 { push_finished_type($<n>0->u.sval.u.string);
978:
| optional_stars bad_identifier '=' expr0 { free_node($4);
+
$$=0;
} | optional_stars F_IDENTIFIER '=' error { free_node($2); /* No yyerok here since we aren't done yet. */
-
+
$$=0;
} ;