pub(crate) fn read_input(
name: impl Into<String>,
input: &mut impl BufRead,
) -> Result<String, CompileError>
Expand description
Reads a “file” from the input.
This is either an entire file, or everything up to a ’<– FILE –>` line.
§Arguments
name
: The name of the gived reader. Used for debugging only.handle
: The handle to read.
§Returns
The string that we’ve read.
§Errors
This function errors if we failed to read the given input.