Changes in src/Parser/parser.yy [3007c0b:8f91c9ae]
- File:
-
- 1 edited
-
src/Parser/parser.yy (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/parser.yy
r3007c0b r8f91c9ae 10 10 // Created On : Sat Sep 1 20:22:55 2001 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Wed Jul 11 11:55:24 201813 // Update Count : 37 3912 // Last Modified On : Thu Jul 12 13:47:44 2018 13 // Update Count : 3755 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 ';' // CFA 1939 { 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 } // if 1946 $$ = distAttr( $2, $3 ); 1947 } else { 1948 SemanticError( yylloc, "inline qualifier only allowed for aggregate field declarations." ); $$ = nullptr; 1949 } // if 1950 } 1938 1951 | typedef_declaration ';' // CFA 1939 1952 | cfa_field_declaring_list ';' // CFA, new style field declaration … … 2294 2307 { $$ = new ExpressionNode( new TypeExpr( maybeMoveBuildType( $1 ) ) ); } 2295 2308 | assignment_expression 2296 { SemanticError( yylloc, toString("Expression generic parameters are currently unimplemented: ", $1->build()) ); $$ = nullptr; }2297 2309 | type_list ',' type 2298 2310 { $$ = (ExpressionNode *)( $1->set_last( new ExpressionNode( new TypeExpr( maybeMoveBuildType( $3 ) ) ) ) ); } 2299 2311 | type_list ',' assignment_expression 2300 { SemanticError( yylloc, toString("Expression generic parameters are currently unimplemented: ", $3->build()) ); $$ = nullptr; } 2301 // { $$ = (ExpressionNode *)( $1->set_last( $3 )); } 2312 { $$ = (ExpressionNode *)( $1->set_last( $3 )); } 2302 2313 ; 2303 2314
Note:
See TracChangeset
for help on using the changeset viewer.