Changes in / [633c711:fb31cb8]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/parser.yy
r633c711 rfb31cb8 10 10 // Created On : Sat Sep 1 20:22:55 2001 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Mon Oct 16 11:07:29201713 // Update Count : 28 9212 // Last Modified On : Mon Oct 2 18:18:55 2017 13 // Update Count : 2835 14 14 // 15 15 … … 250 250 %type<sn> exception_statement handler_clause finally_clause 251 251 %type<catch_kind> handler_key 252 %type<sn> mutex_statement253 252 %type<en> when_clause when_clause_opt waitfor timeout 254 253 %type<sn> waitfor_statement … … 808 807 | jump_statement 809 808 | with_statement 810 | mutex_statement811 809 | waitfor_statement 812 810 | exception_statement … … 1033 1031 ; 1034 1032 1035 // If MUTEX becomes a general qualifier, there are shift/reduce conflicts, so change syntax to "with mutex".1036 mutex_statement:1037 MUTEX '(' argument_expression_list ')' statement1038 { $$ = nullptr; } // FIX ME1039 ;1040 1041 1033 when_clause: 1042 1034 WHEN '(' comma_expression ')' … … 1557 1549 | VOLATILE 1558 1550 { $$ = DeclarationNode::newTypeQualifier( Type::Volatile ); } 1551 | MUTEX 1552 { $$ = DeclarationNode::newTypeQualifier( Type::Mutex ); } 1559 1553 | ATOMIC 1560 1554 { $$ = DeclarationNode::newTypeQualifier( Type::Atomic ); } … … 2709 2703 paren_identifier attribute_list_opt 2710 2704 { $$ = $1->addQualifiers( $2 ); } 2711 | '&' MUTEX paren_identifier attribute_list_opt2712 { $$ = $3->addPointer( DeclarationNode::newPointer( DeclarationNode::newTypeQualifier( Type::Mutex ), OperKinds::AddressOf ) )->addQualifiers( $4 ); }2713 2705 | identifier_parameter_ptr 2714 2706 | identifier_parameter_array attribute_list_opt … … 2751 2743 // 2752 2744 // typedef int foo; 2753 // forall( otype T ) foo( T );2754 2745 // int f( int foo ); // redefine typedef name in new scope 2755 2746 // … … 2759 2750 typedef attribute_list_opt 2760 2751 { $$ = $1->addQualifiers( $2 ); } 2761 | '&' MUTEX typedef attribute_list_opt2762 { $$ = $3->addPointer( DeclarationNode::newPointer( DeclarationNode::newTypeQualifier( Type::Mutex ), OperKinds::AddressOf ) )->addQualifiers( $4 ); }2763 2752 | type_parameter_ptr 2764 2753 | type_parameter_array attribute_list_opt … … 2907 2896 abstract_parameter_declarator: 2908 2897 abstract_parameter_ptr 2909 | '&' MUTEX attribute_list_opt2910 { $$ = DeclarationNode::newPointer( DeclarationNode::newTypeQualifier( Type::Mutex ), OperKinds::AddressOf )->addQualifiers( $3 ); }2911 2898 | abstract_parameter_array attribute_list_opt 2912 2899 { $$ = $1->addQualifiers( $2 ); }
Note: See TracChangeset
for help on using the changeset viewer.