Commit ee2897ef by Richard Kenner

Adjust number of shift/reduce conflicts.

(parm): Support attributes.

From-SVN: r9638
parent 3232050c
...@@ -27,10 +27,10 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ ...@@ -27,10 +27,10 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
written by AT&T, but I have never seen it. */ written by AT&T, but I have never seen it. */
ifobjc ifobjc
%expect 42 %expect 46
end ifobjc end ifobjc
ifc ifc
%expect 30 %expect 34
/* These are the 23 conflicts you should get in parse.output; /* These are the 23 conflicts you should get in parse.output;
the state numbers may vary if minor changes in the grammar are made. the state numbers may vary if minor changes in the grammar are made.
...@@ -2118,16 +2118,27 @@ parms: ...@@ -2118,16 +2118,27 @@ parms:
/* A single parameter declaration or parameter type name, /* A single parameter declaration or parameter type name,
as found in a parmlist. */ as found in a parmlist. */
parm: parm:
typed_declspecs parm_declarator typed_declspecs parm_declarator maybe_attribute
{ $$ = build_tree_list ($1, $2) ; } { $$ = build_tree_list (build_tree_list ($1, $2),
| typed_declspecs notype_declarator build_tree_list (prefix_attributes,
{ $$ = build_tree_list ($1, $2) ; } $3)); }
| typed_declspecs absdcl | typed_declspecs notype_declarator maybe_attribute
{ $$ = build_tree_list ($1, $2); } { $$ = build_tree_list (build_tree_list ($1, $2),
| declmods notype_declarator build_tree_list (prefix_attributes,
{ $$ = build_tree_list ($1, $2) ; } $3)); }
| declmods absdcl | typed_declspecs absdcl maybe_attribute
{ $$ = build_tree_list ($1, $2); } { $$ = build_tree_list (build_tree_list ($1, $2),
build_tree_list (prefix_attributes,
$3)); }
| declmods notype_declarator maybe_attribute
{ $$ = build_tree_list (build_tree_list ($1, $2),
build_tree_list (prefix_attributes,
$3)); }
| declmods absdcl maybe_attribute
{ $$ = build_tree_list (build_tree_list ($1, $2),
build_tree_list (prefix_attributes,
$3)); }
; ;
/* This is used in a function definition /* This is used in a function definition
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment