Skip to content

Commit

Permalink
feat(gsc): string literal sizeof (#150)
Browse files Browse the repository at this point in the history
  • Loading branch information
xensik authored Sep 24, 2023
1 parent 4721aca commit 32e168c
Show file tree
Hide file tree
Showing 6 changed files with 1,442 additions and 1,414 deletions.
2 changes: 2 additions & 0 deletions gen/arc/parser.ypp
Original file line number Diff line number Diff line change
Expand Up @@ -931,6 +931,8 @@ expr_field
expr_size
: expr_object DOT SIZE %prec SIZEOF
{ $$ = expr_size::make(@$, std::move($1)); }
| expr_string DOT SIZE %prec SIZEOF
{ $$ = expr_size::make(@$, std::move($1)); }
;

expr_paren
Expand Down
2 changes: 2 additions & 0 deletions gen/gsc/parser.ypp
Original file line number Diff line number Diff line change
Expand Up @@ -851,6 +851,8 @@ expr_field
expr_size
: expr_object DOT SIZE %prec SIZEOF
{ $$ = expr_size::make(@$, std::move($1)); }
| expr_string DOT SIZE %prec SIZEOF
{ $$ = expr_size::make(@$, std::move($1)); }
;

expr_paren
Expand Down
2 changes: 1 addition & 1 deletion include/xsk/arc/parser.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5439,7 +5439,7 @@ switch (yykind)
/// Constants.
enum
{
yylast_ = 3314, ///< Last index in yytable_.
yylast_ = 3327, ///< Last index in yytable_.
yynnts_ = 101, ///< Number of nonterminal symbols.
yyfinal_ = 28 ///< Termination state number.
};
Expand Down
2 changes: 1 addition & 1 deletion include/xsk/gsc/parser.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4981,7 +4981,7 @@ switch (yykind)
/// Constants.
enum
{
yylast_ = 2406, ///< Last index in yytable_.
yylast_ = 2420, ///< Last index in yytable_.
yynnts_ = 92, ///< Number of nonterminal symbols.
yyfinal_ = 23 ///< Termination state number.
};
Expand Down
Loading

0 comments on commit 32e168c

Please sign in to comment.