Skip to content

Commit

Permalink
🎨 update
Browse files Browse the repository at this point in the history
  • Loading branch information
fennecdjay committed Mar 14, 2024
1 parent 716aaa6 commit 066c5b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/gwion.y
Original file line number Diff line number Diff line change
Expand Up @@ -825,7 +825,7 @@ var_decl: ID { $$ = (struct Var_Decl_) { .tag = MK_TAG($1, @1)}; };

arg_decl: ID { $$ = (struct Var_Decl_) { .tag = MK_TAG($1, @1)}; };
| %empty { $$ = (struct Var_Decl_) {
.tag = { .loc = {.first = arg->pos, .last = arg->pos }}};
.tag = { .sym = NULL, .loc = {.first = arg->pos, .last = arg->pos }}};
};

eq_op : "==" | "!=";
Expand Down
2 changes: 1 addition & 1 deletion src/parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -4018,7 +4018,7 @@ YYLTYPE yylloc = yyloc_default;
case 231: /* arg_decl: %empty */
#line 827 "src/gwion.y"
{ (yyval.var_decl) = (struct Var_Decl_) {
.tag = { .loc = {.first = arg->pos, .last = arg->pos }}};
.tag = { .sym = NULL, .loc = {.first = arg->pos, .last = arg->pos }}};
}
#line 4024 "src/parser.c"
break;
Expand Down

0 comments on commit 066c5b6

Please sign in to comment.