Initial support for statically-sized arrays (#1158)

This commit is contained in:
Geoff Romer authored and GitHub committed 2022-03-31 10:55:34 -07:00
1 parent 0b8a96af6d
commit 8f9638d759
16 files changed
+302 -22

No files matched your search

+2
View File
@@ -312,6 +312,8 @@ primary_expression:
| paren_expression { $$ = $1; }
| struct_literal { $$ = $1; }
| struct_type_literal { $$ = $1; }
| LEFT_SQUARE_BRACKET expression SEMICOLON expression RIGHT_SQUARE_BRACKET
{ $$ = arena->New<ArrayTypeLiteral>(context.source_loc(), $2, $4); }
;
postfix_expression:
primary_expression