#include #include #include "types.h" #include "values.h" #include "runtime.h" val_t read_byte(void) { char c = getc(in); return (c == EOF) ? val_wrap_eof() : val_wrap_int(c); } val_t peek_byte(void) { char c = getc(in); ungetc(c, in); return (c == EOF) ? val_wrap_eof() : val_wrap_int(c); } val_t write_byte(val_t c) { putc((char) val_unwrap_int(c), out); return val_wrap_void(); }