Changeset 8a9a3ab for src/Parser
- Timestamp:
- Sep 1, 2023, 3:54:42 PM (2 years ago)
- Branches:
- master
- Children:
- 4b30318b
- Parents:
- 4269d1b (diff), 4c0fa03 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/parser.yy
r4269d1b r8a9a3ab 2691 2691 | ENUM '(' cfa_abstract_parameter_declaration ')' attribute_list_opt identifier attribute_list_opt 2692 2692 { 2693 if ( $3 ->storageClasses.any() || $3->type->qualifiers.val != 0) {2693 if ( $3 && ($3->storageClasses.any() || $3->type->qualifiers.val != 0 )) { 2694 2694 SemanticError( yylloc, "syntax error, storage-class and CV qualifiers are not meaningful for enumeration constants, which are const." ); 2695 2695 } … … 2829 2829 2830 2830 cfa_abstract_parameter_declaration: // CFA, new & old style parameter declaration 2831 abstract_parameter_declaration 2831 // empty 2832 { $$ = nullptr; } 2833 | abstract_parameter_declaration 2832 2834 | cfa_identifier_parameter_declarator_no_tuple 2833 2835 | cfa_abstract_tuple … … 3854 3856 // { SemanticError( yylloc, "New array dimension is currently unimplemented." ); $$ = nullptr; } 3855 3857 | '[' push array_type_list pop ']' // CFA 3856 { SemanticError( yylloc, "Type array dimension is currently unimplemented." ); $$ = nullptr; }3858 { $$ = DeclarationNode::newArray( $3, nullptr, false ); } 3857 3859 | multi_array_dimension 3858 3860 ;
Note:
See TracChangeset
for help on using the changeset viewer.