Ignore:
Timestamp:
May 2, 2023, 3:44:31 AM (3 years ago)
Author:
Fangren Yu <f37yu@…>
Branches:
ast-experimental, master, stuck-waitfor-destruct
Children:
0c840fc
Parents:
1ab773e0
Message:

current progress

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/parser.yy

    r1ab773e0 r46da46b  
    905905                { $$ = new ExpressionNode( new VirtualCastExpr( maybeMoveBuild<Expression>( $5 ), maybeMoveBuildType( $3 ) ) ); }
    906906        | '(' RETURN type_no_function ')' cast_expression       // CFA
    907                 { SemanticError( yylloc, "Return cast is currently unimplemented." ); $$ = nullptr; }
     907                { $$ = new ExpressionNode( build_cast( $3, $5, CastExpr::Return ) ); }
    908908        | '(' COERCE type_no_function ')' cast_expression       // CFA
    909909                { SemanticError( yylloc, "Coerce cast is currently unimplemented." ); $$ = nullptr; }
Note: See TracChangeset for help on using the changeset viewer.