- Timestamp:
- Feb 3, 2021, 6:41:45 PM (4 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 29c9b23
- Parents:
- 4b393ba
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/parser.yy
r4b393ba r6a99803 10 10 // Created On : Sat Sep 1 20:22:55 2001 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Wed Jan 27 08:58:56202113 // Update Count : 4 68012 // Last Modified On : Wed Feb 3 18:30:12 2021 13 // Update Count : 4700 14 14 // 15 15 … … 618 618 postfix_expression: 619 619 primary_expression 620 | postfix_expression '[' assignment_expression ',' comma_expression ']' 621 // { $$ = new ExpressionNode( build_binary_val( OperKinds::Index, $1, new ExpressionNode( build_binary_val( OperKinds::Index, $3, $5 ) ) ) ); } 622 { SemanticError( yylloc, "New array subscript is currently unimplemented." ); $$ = nullptr; } 620 623 | postfix_expression '[' assignment_expression ']' 621 624 // CFA, comma_expression disallowed in this context because it results in a common user error: subscripting a … … 3187 3190 | '[' ']' multi_array_dimension 3188 3191 { $$ = DeclarationNode::newArray( 0, 0, false )->addArray( $3 ); } 3192 | '[' push assignment_expression pop ',' comma_expression ']' 3193 { $$ = DeclarationNode::newArray( $3, 0, false )->addArray( DeclarationNode::newArray( $6, 0, false ) ); } 3194 // { SemanticError( yylloc, "New array dimension is currently unimplemented." ); $$ = nullptr; } 3189 3195 | multi_array_dimension 3190 3196 ;
Note: See TracChangeset
for help on using the changeset viewer.