pike.git/
src/
language.yacc
Branch:
Tag:
Non-build tags
All tags
No tags
2000-03-30
2000-03-30 19:39:12 by Henrik Grubbström (Grubba) <grubba@grubba.org>
7e71da5e5e6bb546b1a57d2e69e5647625d6d4c9 (
18
lines) (+
12
/-
6
)
[
Show
|
Annotate
]
Branch:
7.9
Oops, should work for real this time.
Rev: src/language.yacc:1.174
188:
/* This is the grammar definition of Pike. */ #include "global.h"
-
RCSID("$Id: language.yacc,v 1.
173
2000/03/30 19:
01
:
38
grubba Exp $");
+
RCSID("$Id: language.yacc,v 1.
174
2000/03/30 19:
39
:
12
grubba Exp $");
#ifdef HAVE_MEMORY_H #include <memory.h> #endif
1239:
{ if ($4) {
-
if (
!
$3) {
-
/* FIXME: Should this be a syntax error or not? */
-
push_type(T_MIXED);
-
yywarning("Implicit mixed type.");
-
}
+
if ($3) {
push_type(T_MANY); type_stack_reverse();
-
+
} else {
+
/* function_type_list ends with a comma, or is empty.
+
* FIXME: Should this be a syntax error or not?
+
*/
+
yywarning("Implicit mixed type.");
+
type_stack_reverse();
+
push_type(T_MANY);
+
push_type(T_MIXED);
+
}
}else{ type_stack_reverse(); push_type(T_MANY);