📜 Add better documentation across the compiler. #3
@@ -102,17 +102,17 @@ impl PartialEq for EvalError {
|
||||
EvalError::Linker(a) => match other {
|
||||
EvalError::Linker(b) => a == b,
|
||||
_ => false,
|
||||
}
|
||||
},
|
||||
|
||||
EvalError::ExitCode(a) => match other {
|
||||
EvalError::ExitCode(b) => a == b,
|
||||
_ => false,
|
||||
}
|
||||
},
|
||||
|
||||
EvalError::RuntimeOutput(a) => match other {
|
||||
EvalError::RuntimeOutput(b) => a == b,
|
||||
_ => false,
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -61,10 +61,10 @@
|
||||
//! for evaluating all expressions. The [`eval`] module provides some
|
||||
//! utility support for this work.
|
||||
//!
|
||||
pub mod syntax;
|
||||
pub mod ir;
|
||||
pub mod backend;
|
||||
pub mod eval;
|
||||
pub mod ir;
|
||||
pub mod syntax;
|
||||
|
||||
/// Implementation module for the high-level compiler.
|
||||
mod compiler;
|
||||
|
||||
@@ -63,7 +63,7 @@ impl Location {
|
||||
/// label (because that's where the error actually happened), but you'd
|
||||
/// probably want to make the first location the secondary label to help
|
||||
/// users find it.
|
||||
pub fn secondary_label(&self) -> Label<usize> {
|
||||
pub fn secondary_label(&self) -> Label<usize> {
|
||||
Label::secondary(self.file_idx, self.offset..self.offset)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user