Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(gsc): string literal sizeof #150

Merged
merged 1 commit into from
Sep 24, 2023
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
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
Loading