Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file added 06-c-syntax-analyzer/func.h
Empty file.
2 changes: 1 addition & 1 deletion 06-c-syntax-analyzer/y.tab.c
Original file line number Diff line number Diff line change
Expand Up @@ -1667,7 +1667,7 @@ yyparse (void)

case 9: /* @2: %empty */
#line 38 "yacc.y"
{yyval = setFunctionDeclaratorSpecifier(yyvsp[0], makeSpecifier(int_type, 0);)}
{yyval = setFunctionDeclaratorSpecifier(yyvsp[0], makeSpecifier(int_type, 0));}
#line 1672 "y.tab.c"
break;

Expand Down
2 changes: 1 addition & 1 deletion 06-c-syntax-analyzer/yacc.y
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ external_declaration
function_definition
: declaration_specifiers declarator {$$ = setFunctionDeclaratorSpecifier($2, $1);}
compound_statement {$$ = setFunctionDeclaratorBody($3, $4);}
| declarator {$$ = setFunctionDeclaratorSpecifier($1, makeSpecifier(int_type, 0);)}
| declarator {$$ = setFunctionDeclaratorSpecifier($1, makeSpecifier(int_type, 0));}
compound_statement {$$ = setFunctionDeclaratorBody($2, $3);}
;
declaration_list_opt
Expand Down