43
44
45
46
47
48
49
50
51
52
|
auto testHole = sema::HoleFromIRExpr( holeExpr1 );
cout << testHole.has_value() << endl;
cout << sema::HoleToIRExpr( *testHole ) << endl;
testHole = sema::HoleFromIRExpr( holeExpr2 );
cout << testHole.has_value() << endl;
cout << sema::HoleToIRExpr( *testHole ) << endl;
return EXIT_SUCCESS;
}
|
>
>
>
>
>
>
>
>
>
>
|
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
auto testHole = sema::HoleFromIRExpr( holeExpr1 );
cout << testHole.has_value() << endl;
cout << sema::HoleToIRExpr( *testHole ) << endl;
testHole = sema::HoleFromIRExpr( holeExpr2 );
cout << testHole.has_value() << endl;
cout << sema::HoleToIRExpr( *testHole ) << endl;
cout << "\n===================================\n\n";
sema::FunDecl fdecl1( TVEC(), TSID( retType ), TVEC() );
auto ruleSet = make_shared< sema::FunRuleSet >();
auto fun = sema::BuildFun( FunDeclToIRExpr( fdecl1 ), ruleSet );
if( fun )
cout << *fun << endl;
return EXIT_SUCCESS;
}
|