📜 Add better documentation across the compiler. #3

Merged
acw merged 19 commits from acw/better-docs into develop 2023-05-13 12:34:48 -07:00
Showing only changes of commit d0a0fdacfe - Show all commits

View File

@@ -16,18 +16,30 @@ fn main() -> Result<(), BackendError> {
":quit" => break, ":quit" => break,
_ => state.process_input(line_no, command), _ => state.process_input(line_no, command),
}, },
// it's not clear to me what this could be, but OK
Err(ReadlineError::Io(e)) => { Err(ReadlineError::Io(e)) => {
eprintln!("IO error: {}", e); eprintln!("IO error: {}", e);
break; break;
} }
// Control-D and Control-C
Err(ReadlineError::Eof) => break, Err(ReadlineError::Eof) => break,
Err(ReadlineError::Interrupted) => break, Err(ReadlineError::Interrupted) => break,
// For some reason this doesn't exist on Windows. I also don't quite know
// what would cause this, but ...
#[cfg(not(windows))] #[cfg(not(windows))]
Err(ReadlineError::Errno(e)) => { Err(ReadlineError::Errno(e)) => {
eprintln!("Unknown syscall error: {}", e); eprintln!("Unknown syscall error: {}", e);
break; break;
} }
// We don't actually do any reflow-ing if we change the terminal size,
// so we can just ignore this.
Err(ReadlineError::WindowResized) => continue, Err(ReadlineError::WindowResized) => continue,
// Why on earth are there so many error types?
Err(e) => { Err(e) => {
eprintln!("Unknown internal error: {}", e); eprintln!("Unknown internal error: {}", e);
break; break;