Skip to content

Commit

Permalink
Fix issue in Bison grammar.
Browse files Browse the repository at this point in the history
  • Loading branch information
rsmmr committed Jan 18, 2023
1 parent 218fd51 commit 712470f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spicy/toolchain/src/compiler/parser/parser.yy
Original file line number Diff line number Diff line change
Expand Up @@ -730,7 +730,7 @@ const_uint : CUINTEGER { $$ = $1; }
| '+' CUINTEGER { $$ = $2; }

unit_field_ctor
: ctor
: ctor { $$ = std::move($1); }
| UINT8 '(' const_uint ')' { $$ = hilti::ctor::UnsignedInteger($3, 8, __loc__); }
| UINT16 '(' const_uint ')' { $$ = hilti::ctor::UnsignedInteger($3, 16, __loc__); }
| UINT32 '(' const_uint ')' { $$ = hilti::ctor::UnsignedInteger($3, 32, __loc__); }
Expand Down

0 comments on commit 712470f

Please sign in to comment.