Fix 3 shift/reduce conflicts
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9328 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
97e9f07120
commit
407b791c23
1 changed files with 12 additions and 7 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue