Fix 3 shift/reduce conflicts

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9328 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Olly Betts 2006-09-23 06:23:41 +00:00
commit f4bc2780b1

View file

@ -5004,6 +5004,15 @@ rawtype : type_qualifier type_right {
SwigType_push($$,$1); SwigType_push($$,$1);
} }
| type_right { $$ = $1; } | type_right { $$ = $1; }
| type_right type_qualifier {
$$ = $1;
SwigType_push($$,$2);
}
| type_qualifier type_right type_qualifier {
$$ = $2;
SwigType_push($$,$3);
SwigType_push($$,$1);
}
; ;
type_right : primitive_type { $$ = $1; type_right : primitive_type { $$ = $1;
@ -5014,10 +5023,6 @@ type_right : primitive_type { $$ = $1;
| TYPE_TYPEDEF template_decl { $$ = NewStringf("%s%s",$1,$2); } | TYPE_TYPEDEF template_decl { $$ = NewStringf("%s%s",$1,$2); }
| ENUM idcolon { $$ = NewStringf("enum %s", $2); } | ENUM idcolon { $$ = NewStringf("enum %s", $2); }
| TYPE_RAW { $$ = $1; } | TYPE_RAW { $$ = $1; }
| type_right type_qualifier {
$$ = $1;
SwigType_push($$,$2);
}
| idcolon { | idcolon {
$$ = $1; $$ = $1;