Revert "fix stream docs"

This reverts commit 53eb086840.
This commit is contained in:
Daniella / Tove 2022-05-23 20:15:36 +02:00
parent 53eb086840
commit ecd350ddf0

View file

@ -6,65 +6,65 @@
### `STREAM.stdin ::: -> path` ### `STREAM.stdin ::: -> path`
> Returns the path to the os-dependant unix-/dev/stdin equivalent Returns the path to the os-dependant unix-/dev/stdin equivalent
### `stream.write ::: data id -> ` ### `stream.write ::: data id -> `
> Writes data to a stream Writes data to a stream
### `stream ::: [DYN]` ### `stream ::: [DYN]`
> Native for actions related to streams Native for actions related to streams
### `stream.readline ::: id -> string` ### `stream.readline ::: id -> string`
> Returns the line that was read as a string. -1 means EOF. Returns the line that was read as a string. -1 means EOF.
## Variables ## Variables
### STREAM.create.file.out ### STREAM.create.file.out
> Constant to indicate create.file.out action: `filename STREAM.create.file.out stream -> id`. Constant to indicate create.file.out action: `filename STREAM.create.file.out stream -> id`.
> Creates an output stream. Creates an output stream.
### STREAM.create.file.in ### STREAM.create.file.in
> Constant to indicate create.file.in action: `filename STREAM.create.file.in stream -> id`. Constant to indicate create.file.in action: `filename STREAM.create.file.in stream -> id`.
> Creates an input stream. Creates an input stream.
### STREAM.close ### STREAM.close
> Constant to indicate close action: `id STREAM.close stream -> `. Constant to indicate close action: `id STREAM.close stream -> `.
> Closes a stream. Closes a stream.
### STREAM.create.socket ### STREAM.create.socket
> Constant to indicate create.socket action: `ip port STREAM.create.socket stream -> id`. Constant to indicate create.socket action: `ip port STREAM.create.socket stream -> id`.
> Creates an IO stream to a TCP server. Creates an IO stream to a TCP server.
### STREAM.create.server ### STREAM.create.server
> Constant to indicate create.server action: `port STREAM.create.server stream -> id`. Constant to indicate create.server action: `port STREAM.create.server stream -> id`.
> Creates an input stream. Each int read from it is a new IO socket stream id. Creates an input stream. Each int read from it is a new IO socket stream id.
### STREAM.read ### STREAM.read
> Constant to indicate read action: `id STREAM.read stream -> int`. Constant to indicate read action: `id STREAM.read stream -> int`.
> Reads a value from an input stream. Reads a value from an input stream.
### STREAM.write ### STREAM.write
> Constant to indicate write action: `int id STREAM.write stream -> `. Constant to indicate write action: `int id STREAM.write stream -> `.
> Writes a value to an output stream. Writes a value to an output stream.