sysio.def 624 B

12345678910111213141516171819202122
  1. DEFINITION MODULE SysIO;
  2. (* Minimal system I/O, bound to the runtime shim (libc write). *)
  3. PROCEDURE Write(VAR s : ARRAY OF CHAR);
  4. (* Writes the string to standard output (no newline). *)
  5. PROCEDURE WriteLn;
  6. (* Writes a newline to standard output. *)
  7. PROCEDURE WriteInt(n : INTEGER);
  8. (* Writes n in decimal to standard output. *)
  9. PROCEDURE WriteChar(c : CHAR);
  10. (* Writes a single character to standard output. *)
  11. PROCEDURE ReadChar() : CHAR;
  12. (* Reads one character from standard input (0C at end of file). *)
  13. PROCEDURE ReadInt() : INTEGER;
  14. (* Reads a signed decimal integer, skipping leading whitespace. *)
  15. END SysIO.