Changes in src/Parser/parser.yy [8f91c9ae:3007c0b]
- File:
-
- 1 edited
-
src/Parser/parser.yy (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/parser.yy
r8f91c9ae r3007c0b 10 10 // Created On : Sat Sep 1 20:22:55 2001 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Jul 12 13:47:44 201813 // Update Count : 37 5512 // Last Modified On : Wed Jul 11 11:55:24 2018 13 // Update Count : 3739 14 14 // 15 15 … … 1936 1936 | EXTENSION type_specifier field_declaring_list ';' // GCC 1937 1937 { distExt( $3 ); $$ = distAttr( $2, $3 ); } // mark all fields in list 1938 | INLINE type_specifier field_declaring_list ';' // CFA1939 {1940 if ( $2->type && ( $2->type->kind == TypeData::Aggregate || $2->type->kind == TypeData::AggregateInst ) ) {1941 if ( $2->type->kind == TypeData::Aggregate ) {1942 $2->type->aggregate.inLine = true;1943 } else {1944 $2->type->aggInst.inLine = true;1945 } // if1946 $$ = distAttr( $2, $3 );1947 } else {1948 SemanticError( yylloc, "inline qualifier only allowed for aggregate field declarations." ); $$ = nullptr;1949 } // if1950 }1951 1938 | typedef_declaration ';' // CFA 1952 1939 | cfa_field_declaring_list ';' // CFA, new style field declaration … … 2307 2294 { $$ = new ExpressionNode( new TypeExpr( maybeMoveBuildType( $1 ) ) ); } 2308 2295 | assignment_expression 2296 { SemanticError( yylloc, toString("Expression generic parameters are currently unimplemented: ", $1->build()) ); $$ = nullptr; } 2309 2297 | type_list ',' type 2310 2298 { $$ = (ExpressionNode *)( $1->set_last( new ExpressionNode( new TypeExpr( maybeMoveBuildType( $3 ) ) ) ) ); } 2311 2299 | type_list ',' assignment_expression 2312 { $$ = (ExpressionNode *)( $1->set_last( $3 )); } 2300 { SemanticError( yylloc, toString("Expression generic parameters are currently unimplemented: ", $3->build()) ); $$ = nullptr; } 2301 // { $$ = (ExpressionNode *)( $1->set_last( $3 )); } 2313 2302 ; 2314 2303
Note:
See TracChangeset
for help on using the changeset viewer.