lean4-htt/src/runtime/io.cpp
Leonardo de Moura 3a7d407d6c feat(library/compiler/builtin): register io primitives
TODO: implement `io` primitives in the new runtime
2018-11-15 16:14:50 -08:00

48 lines
1.3 KiB
C++

/*
Copyright (c) 2018 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
*/
#include "runtime/io.h"
namespace lean {
obj_res io_prim_put_str(b_obj_arg /* s */, obj_arg /* w */) {
// not implemented yet
lean_unreachable();
}
obj_res io_prim_get_line(obj_arg /* w */) {
// not implemented yet
lean_unreachable();
}
/* handle.mk (s : string) (m : mode) (bin : bool := ff) : eio handle */
obj_res io_prim_handle_mk(b_obj_arg /* s */, uint8 /* mode */, uint8 /* bin */, obj_arg /* w */) {
// not implemented yet
lean_unreachable();
}
/* handle.is_eof : handle → eio bool */
obj_res io_prim_handle_is_eof(b_obj_arg /* h */, obj_arg /* w */) {
// not implemented yet
lean_unreachable();
}
/* handle.flush : handle → eio bool */
obj_res io_prim_handle_flush(b_obj_arg /* h */, obj_arg /* w */) {
// not implemented yet
lean_unreachable();
}
/* handle.close : handle → eio unit */
obj_res io_prim_handle_close(b_obj_arg /* h */, obj_arg /* w */) {
// not implemented yet
lean_unreachable();
}
/* handle.get_line : handle → eio unit */
obj_res io_prim_handle_get_line(b_obj_arg /* h */, obj_arg /* w */) {
// not implemented yet
lean_unreachable();
}
}