@@ -888,50 +888,74 @@ int interactive_python_repl(
888888 }
889889
890890 switch (r.type ) {
891+ case (LCompilers::PythonCompiler::EvalResult::integer1) : {
892+ if (verbose) std::cout << " Return type: i8" << std::endl;
893+ if (verbose) section (" Result:" );
894+ std::cout << r.i32 << std::endl;
895+ break ;
896+ }
897+ case (LCompilers::PythonCompiler::EvalResult::integer2) : {
898+ if (verbose) std::cout << " Return type: i16" << std::endl;
899+ if (verbose) section (" Result:" );
900+ std::cout << r.i64 << std::endl;
901+ break ;
902+ }
891903 case (LCompilers::PythonCompiler::EvalResult::integer4) : {
892- if (verbose) std::cout << " Return type: integer " << std::endl;
904+ if (verbose) std::cout << " Return type: i32 " << std::endl;
893905 if (verbose) section (" Result:" );
894906 std::cout << r.i32 << std::endl;
895907 break ;
896908 }
897909 case (LCompilers::PythonCompiler::EvalResult::integer8) : {
898- if (verbose) std::cout << " Return type: integer(8) " << std::endl;
910+ if (verbose) std::cout << " Return type: i64 " << std::endl;
899911 if (verbose) section (" Result:" );
900912 std::cout << r.i64 << std::endl;
901913 break ;
902914 }
915+ case (LCompilers::PythonCompiler::EvalResult::unsignedInteger1) : {
916+ if (verbose) std::cout << " Return type: u8" << std::endl;
917+ if (verbose) section (" Result:" );
918+ std::cout << r.u32 << std::endl;
919+ break ;
920+ }
921+ case (LCompilers::PythonCompiler::EvalResult::unsignedInteger2) : {
922+ if (verbose) std::cout << " Return type: u16" << std::endl;
923+ if (verbose) section (" Result:" );
924+ std::cout << r.u64 << std::endl;
925+ break ;
926+ }
903927 case (LCompilers::PythonCompiler::EvalResult::unsignedInteger4) : {
904- if (verbose) std::cout << " Return type: unsigned integer " << std::endl;
928+ if (verbose) std::cout << " Return type: u32 " << std::endl;
905929 if (verbose) section (" Result:" );
906930 std::cout << r.u32 << std::endl;
907931 break ;
908932 }
909933 case (LCompilers::PythonCompiler::EvalResult::unsignedInteger8) : {
910- if (verbose) std::cout << " Return type: unsigned integer(8) " << std::endl;
934+ if (verbose) std::cout << " Return type: u64 " << std::endl;
911935 if (verbose) section (" Result:" );
912936 std::cout << r.u64 << std::endl;
913937 break ;
914938 }
915939 case (LCompilers::PythonCompiler::EvalResult::real4) : {
916- if (verbose) std::cout << " Return type: real " << std::endl;
940+ if (verbose) std::cout << " Return type: f32 " << std::endl;
917941 if (verbose) section (" Result:" );
918942 std::cout << std::setprecision (8 ) << r.f32 << std::endl;
919943 break ;
920944 }
921945 case (LCompilers::PythonCompiler::EvalResult::real8) : {
922- if (verbose) std::cout << " Return type: real(8) " << std::endl;
946+ if (verbose) std::cout << " Return type: f64 " << std::endl;
923947 if (verbose) section (" Result:" );
924948 std::cout << std::setprecision (17 ) << r.f64 << std::endl;
925949 break ;
926950 }
927951 case (LCompilers::PythonCompiler::EvalResult::complex4) : {
928- if (verbose) std::cout << " Return type: complex " << std::endl;
952+ if (verbose) std::cout << " Return type: c32 " << std::endl;
929953 if (verbose) section (" Result:" );
930954 std::cout << std::setprecision (8 ) << " (" << r.c32 .re << " , " << r.c32 .im << " )" << std::endl;
931955 break ;
932956 }
933957 case (LCompilers::PythonCompiler::EvalResult::complex8) : {
934- if (verbose) std::cout << " Return type: complex(8) " << std::endl;
958+ if (verbose) std::cout << " Return type: c64 " << std::endl;
935959 if (verbose) section (" Result:" );
936960 std::cout << std::setprecision (17 ) << " (" << r.c64 .re << " , " << r.c64 .im << " )" << std::endl;
937961 break ;
0 commit comments