Changes in / [617b4b2:1155718]
- Location:
- src
- Files:
-
- 2 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/parser.yy
r617b4b2 r1155718 10 10 // Created On : Sat Sep 1 20:22:55 2001 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Sat Sep 23 17:43:15 201713 // Update Count : 28 2912 // Last Modified On : Mon Oct 2 18:18:55 2017 13 // Update Count : 2835 14 14 // 15 15 … … 456 456 | '(' compound_statement ')' // GCC, lambda expression 457 457 { $$ = new ExpressionNode( new StmtExpr( dynamic_cast< CompoundStmt * >(maybeMoveBuild< Statement >($2) ) ) ); } 458 | primary_expression '{' argument_expression_list '}' // CFA, constructor call459 {460 Token fn;461 fn.str = new std::string( "?{}" ); // location undefined - use location of '{'?462 $$ = new ExpressionNode( new ConstructorExpr( build_func( new ExpressionNode( build_varref( fn ) ), (ExpressionNode *)( $1 )->set_last( $3 ) ) ) );463 }464 458 | type_name '.' no_attr_identifier // CFA, nested type 465 459 { $$ = nullptr; } // FIX ME … … 476 470 // equivalent to the old x[i,j]. 477 471 { $$ = new ExpressionNode( build_binary_val( OperKinds::Index, $1, $4 ) ); } 472 | postfix_expression '{' argument_expression_list '}' // CFA, constructor call 473 { 474 Token fn; 475 fn.str = new std::string( "?{}" ); // location undefined - use location of '{'? 476 $$ = new ExpressionNode( new ConstructorExpr( build_func( new ExpressionNode( build_varref( fn ) ), (ExpressionNode *)( $1 )->set_last( $3 ) ) ) ); 477 } 478 478 | postfix_expression '(' argument_expression_list ')' 479 479 { $$ = new ExpressionNode( build_func( $1, $3 ) ); }
Note: See TracChangeset
for help on using the changeset viewer.