feat(gsc): string literal sizeof (#150)
This commit is contained in:
parent
aa2a2d36d9
commit
891d3e32a3
@ -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
|
||||
|
@ -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
|
||||
|
@ -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.
|
||||
};
|
||||
|
@ -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.
|
||||
};
|
||||
|
1557
src/arc/parser.cpp
1557
src/arc/parser.cpp
File diff suppressed because it is too large
Load Diff
1369
src/gsc/parser.cpp
1369
src/gsc/parser.cpp
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user