Changes in src/Parser/parser.yy [1528a2c:1b54b54]
- File:
-
- 1 edited
-
src/Parser/parser.yy (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/parser.yy
r1528a2c r1b54b54 10 10 // Created On : Sat Sep 1 20:22:55 2001 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Fri Mar 15 14:25:43201913 // Update Count : 42 4812 // Last Modified On : Thu Feb 21 08:45:07 2019 13 // Update Count : 4232 14 14 // 15 15 … … 265 265 %token RESTRICT // C99 266 266 %token ATOMIC // C11 267 %token FORALL MUTEX VIRTUAL COERCE// CFA267 %token FORALL MUTEX VIRTUAL // CFA 268 268 %token VOID CHAR SHORT INT LONG FLOAT DOUBLE SIGNED UNSIGNED 269 269 %token BOOL COMPLEX IMAGINARY // C99 … … 795 795 | '(' type_no_function ')' cast_expression 796 796 { $$ = new ExpressionNode( build_cast( $2, $4 ) ); } 797 // keyword cast cannot be grouped because of reduction in aggregate_key798 797 | '(' COROUTINE '&' ')' cast_expression // CFA 799 798 { $$ = new ExpressionNode( build_keyword_cast( KeywordCastExpr::Coroutine, $5 ) ); } … … 807 806 | '(' VIRTUAL type_no_function ')' cast_expression // CFA 808 807 { $$ = new ExpressionNode( new VirtualCastExpr( maybeMoveBuild< Expression >( $5 ), maybeMoveBuildType( $3 ) ) ); } 809 | '(' RETURN type_no_function ')' cast_expression // CFA810 { SemanticError( yylloc, "Return cast is currently unimplemented." ); $$ = nullptr; }811 | '(' COERCE type_no_function ')' cast_expression // CFA812 { SemanticError( yylloc, "Coerce cast is currently unimplemented." ); $$ = nullptr; }813 | '(' qualifier_cast_list ')' cast_expression // CFA814 { SemanticError( yylloc, "Qualifier cast is currently unimplemented." ); $$ = nullptr; }815 808 // | '(' type_no_function ')' tuple 816 809 // { $$ = new ExpressionNode( build_cast( $2, $4 ) ); } 817 ;818 819 qualifier_cast_list:820 cast_modifier type_qualifier_name821 | cast_modifier MUTEX822 | qualifier_cast_list cast_modifier type_qualifier_name823 | qualifier_cast_list cast_modifier MUTEX824 ;825 826 cast_modifier:827 '-'828 | '+'829 810 ; 830 811
Note:
See TracChangeset
for help on using the changeset viewer.